/* =====================================================================
   TRIGGERS MEDIA — Digital Front Door
   Design system. DNA extracted from weslaco.triggers.media (System B).
   Bebas Neue (display) + Comfortaa (body). Blue + orange on white,
   lavender-gray wash bands, dark-slate ink.
   ===================================================================== */

/* ------------------------------ TOKENS ------------------------------ */
:root {
  /* Brand color */
  --ink:          #15303F;   /* dark slate — headings + body */
  --ink-soft:     #3B5261;   /* muted body */
  --ink-faint:    #566472;   /* captions, meta — darkened to clear WCAG AA on light */

  --blue:         #00689D;   /* primary blue — H2s, text-links, buttons */
  --blue-bright:  #198FC7;   /* accent blue — large display, borders */
  --blue-deep:    #0A4C74;   /* hero gradient deep end */
  --blue-hero-1:  #1A93CC;   /* hero gradient bright end */
  --blue-hero-2:  #0A4C74;   /* hero gradient deep end */

  --orange:       #F99B1C;   /* CTA / accent */
  --orange-deep:  #E07E00;   /* orange hover */
  --orange-tint:  #FFF4E3;   /* callout card bg */

  --green:        #27A84A;   /* checkmarks, "good" */
  --pink:         #ED3693;   /* rotating card accent (Weslaco --bandida) */

  --grad-hero: linear-gradient(150deg, #00689D 0%, #024e75 55%, #063A53 100%);

  /* Neutrals */
  --white:        #FFFFFF;
  --paper:        #F8F9FE;   /* card bg */
  --wash:         #EAECF5;   /* lavender-gray band */
  --wash-deep:    #DDE0EF;
  --line:         #E3E6F2;   /* hairlines */

  /* Pillar accent rotation */
  --pillar-1: var(--blue-bright);
  --pillar-2: var(--green);
  --pillar-3: var(--orange);
  --pillar-4: var(--pink);
  --pillar-5: var(--blue);

  /* Type */
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Comfortaa", ui-rounded, "Segoe UI", system-ui, sans-serif;

  /* Fluid type scale (clamp: min, vw, max) */
  --fs-eyebrow: 0.8125rem;                         /* 13px */
  --fs-body:    clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lead:    clamp(1.125rem, 1.05rem + 0.5vw, 1.375rem);
  --fs-h4:      clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem);
  --fs-h3:      clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  --fs-h2:      clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-h1:      clamp(2.9rem, 1.9rem + 4.6vw, 5.5rem);
  --fs-display: clamp(3.6rem, 2rem + 7vw, 8rem);   /* giant numerals */

  /* Spacing */
  --space-section: clamp(3.75rem, 2.5rem + 5vw, 7rem);
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.25rem);
  --maxw: 1200px;
  --maxw-narrow: 760px;

  /* Radii */
  --r-pill: 50px;
  --r-card: 18px;
  --r-lg: 28px;
  --r-sm: 12px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(21,48,63,.06);
  --shadow-md: 0 12px 30px rgba(21,48,63,.09);
  --shadow-lg: 0 24px 60px rgba(21,48,63,.14);
  --shadow-blue: 0 18px 40px rgba(10,76,116,.22);
  --shadow-card: 0 8px 26px rgba(2,78,117,.08);

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --header-h: 76px;
}

/* ------------------------------ RESET ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;   /* clip (not hidden) so the sticky header keeps working */
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------ TYPE -------------------------------- */
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.02; font-weight: 400; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: .01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.05; }
h4 { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-h4); line-height: 1.25; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: 1.55; }
.display-num { font-family: var(--font-display); font-size: var(--fs-display); line-height: .82; }

/* Eyebrow chip */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body); font-weight: 700;
  font-size: var(--fs-eyebrow); letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
  background: var(--wash);
  padding: .5em 1em; border-radius: var(--r-pill);
  margin: 0 0 1.1rem;
}
.eyebrow--orange { color: var(--orange-deep); background: var(--orange-tint); }
.on-dark .eyebrow, .band--dark .eyebrow, .band--blue .eyebrow, .eyebrow--on-dark {
  color: #fff; background: rgba(255,255,255,.14);
}

/* ---------------------------- LAYOUT -------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--maxw-narrow); }
section { padding-block: var(--space-section); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.band { background: var(--wash); }
.band--paper { background: var(--paper); }
.band--dark { background: var(--ink); color: #E6EDF2; }
.band--dark h1, .band--dark h2, .band--dark h3 { color: #fff; }
.band--blue { background: var(--grad-hero); color: #EAF4FA; }
.band--blue h1, .band--blue h2, .band--blue h3 { color: #fff; }
.grid { display: grid; gap: clamp(1rem, .5rem + 1.6vw, 1.75rem); }
@media (min-width: 720px)  { .cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px)  { .cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px)  { .cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px)  { .cols-5 { grid-template-columns: repeat(5, 1fr); } }
.split { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.15fr .85fr; } }
/* Overflow guards: let grid/flex children shrink & wrap instead of forcing horizontal scroll on mobile */
.hero__grid > *, .split > *, .grid > *, .footer-grid > *, .scorecard__head > *, .cta-row > * { min-width: 0; }

/* ---------------------------- BUTTONS ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1;
  text-align: center; text-decoration: none; cursor: pointer;
  padding: 1.05em 1.9em; border-radius: var(--r-pill); border: 2px solid transparent;
  min-height: 48px;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
/* Primary = orange pill, DARK-INK label (white on #F99B1C = 2.2:1, fails WCAG) */
.btn--primary { background: var(--orange); color: var(--ink); box-shadow: 0 10px 24px rgba(249,155,28,.34); }
.btn--primary:hover { background: var(--orange-deep); color: var(--ink); box-shadow: 0 14px 30px rgba(224,126,0,.4); }
/* Secondary = solid blue, white label (5.9:1) */
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); color: #fff; }
/* Ghost — adapts to ground */
.btn--ghost { background: transparent; color: var(--blue); border-color: currentColor; }
.btn--ghost:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.on-dark .btn--ghost, .band--dark .btn--ghost, .band--blue .btn--ghost, .hero .btn--ghost, .pagehero .btn--ghost { color: #fff; }
.on-dark .btn--ghost:hover, .band--dark .btn--ghost:hover, .band--blue .btn--ghost:hover, .hero .btn--ghost:hover, .pagehero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--lg { font-size: 1.075rem; padding: 1.2em 2.3em; }
.btn--block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.cta-note { font-size: .8rem; color: var(--ink-faint); margin-top: 1rem; }
/* On phones, stack the hero/CTA buttons full-width — bigger tap targets, no overflow */
@media (max-width: 560px) {
  .hero .cta-row, .pagehero .cta-row, .auditcta .cta-row { flex-direction: column; align-items: stretch; }
  .hero .cta-row > .btn, .pagehero .cta-row > .btn, .auditcta .cta-row > .btn { width: 100%; }
  .hero--center .cta-row .arrow-link { justify-content: center; }
}
/* ---- Legibility on dark/blue surfaces ----
   Muted components (.lead/.cta-note/.checklist/.pillar__q/.step p/.crumbs) default to
   dark ink for light backgrounds; on dark/blue bands + heroes they must flip to light. */
.band--dark .cta-note, .band--blue .cta-note, .on-dark .cta-note,
.hero .cta-note, .pagehero .cta-note { color: rgba(255,255,255,.72); }
.band--dark .lead, .band--blue .lead, .on-dark .lead { color: rgba(255,255,255,.88); }
.band--dark .checklist li, .band--blue .checklist li, .on-dark .checklist li { color: rgba(255,255,255,.85); }
.band--dark .pillar__q, .on-dark .pillar__q { color: rgba(255,255,255,.8); }
.band--dark .step p, .band--blue .step p, .on-dark .step p { color: rgba(255,255,255,.84); }
.band--dark .step__num, .on-dark .step__num { color: #7FCDEC; }
.hero .crumbs, .pagehero .crumbs, .on-dark .crumbs { color: rgba(255,255,255,.8); }
.hero .crumbs a, .pagehero .crumbs a, .on-dark .crumbs a { color: #fff; }
.band--dark .tag, .band--blue .tag, .on-dark .tag { background: rgba(255,255,255,.16); color: #fff; }
.band--dark .arrow-link, .band--blue .arrow-link, .on-dark .arrow-link, .hero .arrow-link, .pagehero .arrow-link { color: #fff; }

/* Text link with arrow */
.arrow-link { font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: .4em; }
.arrow-link svg { transition: transform 200ms var(--ease-out); }
@media (hover: hover) { .arrow-link:hover svg { transform: translateX(4px); } }
.arrow-link:hover { text-decoration: none; }

/* ----------------------------- CARDS -------------------------------- */
.card {
  background: var(--white); border-radius: var(--r-card);
  padding: clamp(1.4rem, 1rem + 1.4vw, 2.1rem);
  box-shadow: var(--shadow-card); border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.card--top {                    /* colored top border, rotating accents */
  border-top: 6px solid var(--accent, var(--blue-bright));
}
@media (hover: hover) and (pointer: fine) {
  .card--hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
}
.card h3, .card h4 { color: var(--ink); }
.icon-tile {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent, var(--blue-bright)) 14%, white);
  color: var(--accent, var(--blue-bright)); margin-bottom: 1rem;
}
.icon-tile svg { width: 26px; height: 26px; }

/* Callout */
.callout {
  background: var(--orange-tint); border-radius: var(--r-card);
  padding: clamp(1.4rem, 1rem + 1.4vw, 2.1rem);
  border-left: 5px solid var(--orange);
  font-size: var(--fs-lead); font-weight: 700; color: var(--ink); line-height: 1.4;
}

/* -------------------------- FIVE PILLARS ---------------------------- */
.pillar {
  background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--accent);
  border-radius: var(--r-card); padding: clamp(1.4rem,1rem + 1.2vw,1.9rem);
  box-shadow: var(--shadow-card); position: relative;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); } }
.pillar__num {
  font-family: var(--font-display); font-size: 2.6rem; line-height: 1;
  color: var(--accent); letter-spacing: .02em;
}
.pillar__name { font-family: var(--font-display); font-size: 1.85rem; line-height: 1; margin: .15em 0 .35em; color: var(--ink); }
.pillar__q { color: var(--ink-soft); font-size: .98rem; }

/* --------------------------- SCORECARD ------------------------------ */
.scorecard {
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  width: 100%; max-width: 460px;
}
.scorecard__tag {
  position: absolute; top: 1rem; right: 1rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); background: var(--wash); padding: .35em .8em; border-radius: var(--r-pill);
}
.scorecard { position: relative; }
.scorecard__head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.4rem; padding-right: 92px; }
.ring {
  --val: 51; --size: 96px;
  width: var(--size); height: var(--size); flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--blue-bright) calc(var(--val) * 3.6deg), var(--wash) 0);
  position: relative;
}
.ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.ring__num { position: relative; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--ink); }
.ring__num small { display: block; font-family: var(--font-body); font-size: .6rem; font-weight: 700; letter-spacing: .1em; color: var(--ink-faint); }
.scorecard__title { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--ink); }
.scorecard__sub { font-size: .82rem; color: var(--ink-faint); }
.score-row { margin-bottom: .95rem; }
.score-row:last-child { margin-bottom: 0; }
.score-row__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .3rem; }
.score-row__label { font-weight: 700; font-size: .92rem; }
.score-row__val { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink-soft); }
.bar { height: 9px; border-radius: 50px; background: var(--wash); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 50px; background: var(--accent); width: var(--pct, 50%); }

/* --------------------------- PROCESS -------------------------------- */
.step { position: relative; padding-left: 0; }
.step__num {
  font-family: var(--font-display); font-size: 3.4rem; line-height: .8; color: var(--blue-bright);
  display: block; margin-bottom: .3rem;
}
.step h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; margin-bottom: .35rem; }
.step p { color: var(--ink-soft); font-size: .98rem; }

/* ------------------------- CHECK / LIST ----------------------------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.35rem; height: 1.35rem;
  background: color-mix(in srgb, var(--green) 16%, white); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327A84A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: .8rem;
}
/* Balanced two-column checklist (even rows, no ragged auto-fit) */
.checklist--cols { max-width: 880px; margin-inline: auto; }
@media (min-width: 720px) { .checklist--cols { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.warnlist li::before {
  background: color-mix(in srgb, var(--orange) 18%, white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E07E00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='8' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: .95rem;
}

/* --------------------------- TRUST BAR ------------------------------ */
.trustbar { border-block: 1px solid var(--line); background: var(--white); }
.trustbar .wrap { padding-block: 2rem; }
.trustbar__label { text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1.3rem; }
.logos { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; justify-content: center; }
.logos span {
  font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .03em;
  color: var(--ink-faint); opacity: .85; white-space: nowrap;
  transition: color 200ms ease, opacity 200ms ease;
}
@media (hover: hover) { .logos a:hover span { color: var(--blue); opacity: 1; } }
@media (max-width: 640px) {
  .logos { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: .5rem; }
  .logos > * { scroll-snap-align: start; flex: none; }
}
/* Desktop: balanced 4-per-row grid so no name orphans onto its own line */
@media (min-width: 900px) {
  .logos { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; column-gap: clamp(2.5rem, 1rem + 4vw, 4.5rem); row-gap: 1.1rem; }
}
/* Footnote variant: quiet strip at the very bottom, before the footer */
.trustbar--footnote { background: var(--paper); border-bottom: 0; }
.trustbar--footnote .wrap { padding-block: 1.75rem; }
.trustbar--footnote .trustbar__label { margin-bottom: 1rem; letter-spacing: .1em; }
.trustbar--footnote .logos span { font-size: 1.1rem; opacity: .55; }

/* -------------------------- TESTIMONIAL ----------------------------- */
.quote { font-family: var(--font-body); font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); font-weight: 600; }
.quote__mark { font-family: var(--font-display); font-size: 3rem; color: var(--blue-bright); line-height: .5; display: block; }
.quote__who { margin-top: 1rem; font-size: .9rem; color: var(--ink-faint); font-weight: 700; }

/* ----------------------------- FAQ ---------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.3rem 3rem 1.3rem 0; position: relative;
  font-weight: 700; font-size: 1.08rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .3rem; top: 1.5rem; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300689D' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 240ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1rem 1.4rem 0; color: var(--ink-soft); max-width: 68ch; }

/* ----------------------------- FORM --------------------------------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
.field .req { color: var(--orange-deep); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .85em 1em; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); transition: border-color 160ms ease, box-shadow 160ms ease;
  min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(25,143,199,.16);
}
.field__hint { font-size: .78rem; color: var(--ink-faint); margin-top: .35rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .field-row.two { grid-template-columns: 1fr 1fr; } }
.form-consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); }
.form-consent input { width: auto; min-height: 0; margin-top: .25rem; }
.hp { position: absolute; left: -9999px; }

/* --------------------------- BEFORE/AFTER --------------------------- */
.ba { display: grid; gap: 1rem; }
@media (min-width: 640px) { .ba { grid-template-columns: 1fr 1fr; } }
.ba__panel { border-radius: var(--r-card); padding: 1.4rem; border: 1px solid var(--line); }
.ba__panel--before { background: var(--wash); }
.ba__panel--after { background: color-mix(in srgb, var(--green) 8%, white); border-color: color-mix(in srgb, var(--green) 30%, white); }
.ba__tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .6rem; display: block; }
.ba__panel--after .ba__tag { color: var(--green); }
/* Inside 3-up card grids the side-by-side panels squash; stack them instead */
.grid.cols-3 .ba { grid-template-columns: 1fr; }
.grid .card .ba__panel { padding: 1rem 1.1rem; font-size: .95rem; }

/* --------------------------- HEADER --------------------------------- */
.utility {
  background: var(--ink); color: rgba(255,255,255,.82); font-size: .8rem;
}
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .5rem; min-height: 38px; }
.utility a { color: rgba(255,255,255,.9); font-weight: 700; }
.utility__right { display: flex; gap: 1.2rem; align-items: center; }
.lang-switch { display: inline-flex; align-items: center; font-weight: 700; }
.lang-switch a { opacity: .55; padding: 0 .1rem; transition: opacity .15s ease; }
.lang-switch a:hover, .lang-switch a:focus-visible { opacity: 1; }
.lang-switch a[aria-current="true"] { opacity: 1; color: var(--orange); }
.lang-switch a + a { margin-left: .5rem; padding-left: .6rem; border-left: 1px solid rgba(255,255,255,.3); }
@media (max-width: 640px) { .utility__hide-sm { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line);
  transition: box-shadow 200ms ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 34px; flex: none; }
.brand small { font-family: var(--font-body); font-size: .58rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); display: block; margin-top: -3px; }
.nav { display: none; }
@media (min-width: 940px) {
  .nav { display: flex; align-items: center; gap: 1.6rem; }
  .nav a { color: var(--ink); font-weight: 700; font-size: .95rem; position: relative; }
  .nav a:hover { color: var(--blue); text-decoration: none; }
  .nav a[aria-current="page"] { color: var(--blue); }
  .nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--orange); border-radius: 2px; }
}
.header-cta { display: none; }
@media (min-width: 940px) { .header-cta { display: inline-flex; } }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  background: var(--wash); border: none; border-radius: 12px; cursor: pointer; color: var(--ink);
}
@media (min-width: 940px) { .nav-toggle { display: none; } }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; overflow: hidden; }
.drawer[data-open="true"] { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(21,48,63,.5); opacity: 0; transition: opacity 240ms ease; }
.drawer[data-open="true"] .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 360px);
  background: #fff; padding: 1.25rem; display: flex; flex-direction: column; gap: .2rem;
  transform: translateX(100%); transition: transform 300ms var(--ease-out);
  overflow-y: auto;
}
.drawer[data-open="true"] .drawer__panel { transform: translateX(0); }
.drawer__panel a.drawer-link { padding: .95rem .4rem; font-weight: 700; font-size: 1.1rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.drawer__panel .btn { margin-top: 1rem; }
@media (prefers-reduced-motion: reduce) { .drawer__panel { transition: none; } .drawer__scrim { transition: none; } }

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: .6rem; padding: .7rem var(--gutter);
  padding-bottom: calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mobile-cta .btn { flex: 1; padding: .9em 1em; font-size: .95rem; }
.mobile-cta .btn--call { flex: 0 0 52px; padding: 0; }
@media (min-width: 940px) { .mobile-cta { display: none; } }
@media (max-width: 939px) { body { padding-bottom: 74px; } }

/* --------------------------- FOOTER --------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-block: clamp(3rem,2rem + 3vw,4.5rem) 2rem; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-brand .brand { color: #fff; }
.footer-statement { max-width: 34ch; margin-top: 1rem; font-size: .92rem; line-height: 1.55; }
.footer-col h5 { font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; font-size: .95rem; }
.footer-social { display: flex; gap: .7rem; margin-top: 1.3rem; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255,255,255,.08); border-radius: 10px; color: #fff; }
.footer-social a:hover { background: var(--blue); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .82rem; }
.footer-bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.ai-note { font-size: .72rem; color: rgba(255,255,255,.4); margin-top: 1rem; }
@media (max-width: 600px) { .ai-note { display: none; } }

/* -------------------------- AUDIT CTA BLOCK ------------------------- */
.auditcta { text-align: center; }
.auditcta .wrap { max-width: 720px; }
.auditcta h2 { margin-bottom: .5rem; }
.auditcta p { color: var(--ink-soft); font-size: var(--fs-lead); }
.band--dark .auditcta p, .band--blue .auditcta p { color: rgba(255,255,255,.85); }

/* --------------------------- HERO ----------------------------------- */
.hero { position: relative; overflow: hidden; color: #EAF4FA; background: var(--grad-hero); }
.hero::before { /* faint doorway/threshold motif */
  content: ""; position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: 46vw; max-width: 620px; aspect-ratio: 3/4; opacity: .12; pointer-events: none;
  border: 3px solid #fff; border-radius: 300px 300px 0 0;
}
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(3.5rem, 2rem + 7vw, 7rem); }
.hero h1 { color: #fff; }
/* Centered, stacked hero (Weslaco-style direct response) */
.hero--center { text-align: center; }
.hero--center .wrap { max-width: 920px; padding-block: clamp(4rem, 2.5rem + 8vw, 8.5rem); }
.hero--center::before {  /* the brand door mark, faint, behind the headline */
  right: 50%; top: 52%; transform: translate(50%, -50%);
  width: min(52vw, 500px); aspect-ratio: 30 / 34; opacity: 1;
  border: 0; border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 34' fill='none'%3E%3Cpath d='M4 33V8.5L15 2l11 6.5V33' stroke='%23FFFFFF' stroke-opacity='.1' stroke-width='.7' stroke-linejoin='round'/%3E%3Cpath d='M11 33V17h8v16' stroke='%23F99B1C' stroke-opacity='.16' stroke-width='.7' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hero--center .lead { max-width: 620px; margin-inline: auto; }
.hero--center .cta-row { justify-content: center; margin-top: 2rem; }
.hero .accent-line { color: var(--orange); }
.hero__grid { display: grid; gap: clamp(2rem,1rem + 4vw,4rem); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero p.lead { color: rgba(255,255,255,.9); }

/* Page hero (interior, compact) */
.pagehero { background: var(--grad-hero); color: #fff; position: relative; overflow: hidden; }
.pagehero .wrap { padding-block: clamp(3rem, 2rem + 4vw, 5rem); position: relative; z-index: 2; max-width: 820px; }
.pagehero p.lead { color: rgba(255,255,255,.9); }
.pagehero--slate { background: linear-gradient(155deg, #24485C, var(--ink)); }

/* Breadcrumb */
.crumbs { font-size: .82rem; color: var(--ink-faint); margin-bottom: 0; padding-block: 1rem; }
.crumbs a { color: var(--ink-faint); } .crumbs a:hover { color: var(--blue); }

/* --------------------------- REVEAL --------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* --------------------------- UTIL ----------------------------------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.text-blue { color: var(--blue); } .text-orange { color: var(--orange-deep); }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue); background: var(--wash); padding: .3em .8em; border-radius: var(--r-pill);
}
.pillar-tag { display:inline-flex; gap:.4em; flex-wrap:wrap; }
.pillar-tag span { font-size:.72rem; font-weight:700; padding:.25em .7em; border-radius:50px; background: var(--wash); color: var(--blue); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color:#fff; padding:.6rem 1rem; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* =====================================================================
   ALIVE HOMEPAGE COMPONENTS  (index.html only — additive, namespaced)
   Ported from index-alive-concept.html into the shared design system.
   Reuses shared tokens + .wrap/.btn/.eyebrow/.ring/.bar/.reveal.
   Accessibility: bright fills that failed WCAG in the concept were
   deepened or flipped to dark ink here (see .pcard, .ahero h1).
   ===================================================================== */

/* ---- Duotone recipe (whites -> hi color via SVG filter, blacks -> --duo-lo).
   Usage: <div class="duotone duotone--signature"><img src="photo.jpg"></div> ---- */
.duotone { position: relative; overflow: hidden; background: var(--duo-lo, #04324a); }
.duotone > img { display: block; width: 100%; height: 100%; object-fit: cover; filter: var(--duo-filter) contrast(1.05) brightness(1.03); }
.duotone--signature { --duo-lo:#04324a; --duo-filter:url(#duo-signature); }  /* blue + amber house look */
.duotone--blue      { --duo-lo:#03283b; --duo-filter:url(#duo-blue); }
.duotone--magenta   { --duo-lo:#4a0a2a; --duo-filter:url(#duo-magenta); }
.duotone--orange    { --duo-lo:#5e2f00; --duo-filter:url(#duo-orange); }
.duotone--green     { --duo-lo:#063017; --duo-filter:url(#duo-green); }

/* ---- lowercase brand refrain: engage. connect. convert. ---- */
.cc { letter-spacing:.24em; text-transform:lowercase; font-weight:700; color:var(--blue); }
.cc b { color:var(--orange); font-weight:700; }

/* ---- animated sunburst rays (desktop only, motion-safe) ----
   The hero + blog-hero ray fields share one registered <angle> custom property
   so their repeating-conic-gradient START angle can animate, which spins the rays
   around their real origin point (no transforms / oversized layers, look unchanged).
   Browsers without @property fall back to the static 210deg via the var() fallback,
   so the sunburst always renders. Speed is one number below (160s per revolution). */
@property --ray-angle { syntax: "<angle>"; inherits: false; initial-value: 210deg; }
@keyframes ray-spin { to { --ray-angle: 570deg; } }
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .ahero::before, .posthero::before { animation: ray-spin 160s linear infinite; }
}

/* ============================ ALIVE HERO ============================= */
.ahero { position: relative; overflow: hidden; padding-block: 0;
  background: linear-gradient(180deg,#fff 0%, var(--paper) 100%); }
.ahero::before { content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background: repeating-conic-gradient(from var(--ray-angle, 210deg) at 82% 38%, rgba(25,143,199,.05) 0deg 6deg, transparent 6deg 12deg); }
.ahero .wrap { position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,1fr);
  gap: clamp(1.5rem,1rem + 3vw,2.5rem); align-items:center; padding-block: clamp(2.6rem,1.6rem + 4vw,4.4rem); }
.ahero .wrap > * { min-width:0; }
.ahero h1 { overflow-wrap:break-word; }
@media (min-width:960px){ .ahero .wrap { grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr); } }
.ahero__eyebrow { margin-bottom: 1rem; font-size:.8rem; }
.ahero h1 { color: var(--ink); }
.ahero h1 .tone-b { color: var(--blue-bright); }   /* "front doors." */
.ahero h1 .tone-a { color: var(--orange); }         /* "We build the second one." (concept look, Daniel-approved) */
.ahero__sub { max-width: 42ch; margin: 1.2rem 0 1.6rem; }
.ahero .cta-row { margin-top: .4rem; }
.ahero__note { margin-top: 1rem; font-size:.82rem; color: var(--ink-faint); }

/* hero media: duotone photo panel + floating phone with the Score */
.ahero__stage { position: relative; min-height: 474px; }
.ahero__photo { position:absolute; inset:10px 70px 30px 0; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.ahero__photo, .ahero__photo > img { border-radius: var(--r-lg); }
.ahero__photo > img { height:100%; }
.device { position:absolute; right:-4px; bottom:-8px; width:238px; height:476px; z-index:3;
  background:#0f1a23; border-radius:40px; padding:9px; border:1px solid rgba(255,255,255,.07);
  box-shadow: 0 30px 62px rgba(6,58,83,.42); }
.device::before { content:""; position:absolute; top:17px; left:50%; transform:translateX(-50%);
  width:58px; height:6px; border-radius:6px; background:#2b3a47; z-index:2; }
.device__screen { height:100%; border-radius:32px; overflow:hidden; background:#fff; display:flex; flex-direction:column; }
.device__bar { background: linear-gradient(125deg, var(--blue-bright), var(--blue-deep)); color:#fff; padding:1.5rem 1rem .85rem; text-align:center; }
.device__bar b { display:block; font-family: var(--font-display); font-weight:400; font-size:1.3rem; letter-spacing:.14em; }
.device__bar span { display:block; font-size:.52rem; letter-spacing:.2em; text-transform:uppercase; opacity:.85; margin-top:3px; }
.device__body { padding:1rem .95rem 1.05rem; flex:1; display:flex; flex-direction:column; }
.device__cta { margin-top:auto; background: var(--orange); color: var(--ink); text-align:center; font-weight:700; font-size:.82rem; padding:.6rem; border-radius:11px; }
.device__cta:hover { background: var(--orange-deep); text-decoration:none; }
/* compact score inside the phone (reuses .ring/.bar so main.js still animates it) */
.device .scorecard__head { display:flex; align-items:center; gap:.7rem; margin:.1rem 0 1rem; padding-right:0; }
.device .ring { --size:60px; }
.device .ring__num { font-size:1.5rem; }
.device .ring__num small { display:none; }
.dscore__ov { font-family: var(--font-display); font-size:1.15rem; color: var(--ink); line-height:1; }
.dscore__sub { font-size:.56rem; color: var(--ink-faint); margin-top:3px; line-height:1.35; }
.device .score-row { margin-bottom:.5rem; }
.device .score-row__top { margin-bottom:2px; }
.device .score-row__label { font-size:.66rem; font-weight:600; }
.device .score-row__val { font-family: var(--font-body); font-size:.66rem; font-weight:700; color: var(--ink-faint); }
.device .bar { height:6px; }
@media (max-width:880px){ .ahero__stage{ min-height:430px; } .ahero__photo{ inset:6px 46px 20px 0; } .device{ width:208px; height:416px; } }
@media (max-width:420px){ .device{ width:186px; height:372px; } .ahero__photo{ inset:6px 40px 16px 0; } }

/* ========================== PROOF WALL (auto-scrolling marquee) ============================== */
.proofwall { background: var(--ink); color:#fff; text-align:center; padding-block: clamp(2rem,1.4rem + 2vw,3rem); overflow:hidden; }
.proofwall__lead { color: rgba(255,255,255,.7); font-size:.82rem; letter-spacing:.16em; text-transform:uppercase; margin-bottom:1.3rem; }
.proofwall__marquee {
  position: relative; overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.proofwall__track { display:flex; align-items:center; width:max-content; gap:.9rem; animation: proofwall-scroll 46s linear infinite; }
.proofwall__marquee:hover .proofwall__track { animation-play-state: paused; }
.proofwall__track span { font-family: var(--font-display); font-size: clamp(1.2rem,2.4vw,1.7rem); letter-spacing:.03em; color:#dbe8f0; white-space:nowrap; }
.proofwall__track span.dot { color: rgba(255,255,255,.3); font-size:1rem; }
@keyframes proofwall-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .proofwall__track { animation: none; }
  .proofwall__marquee { overflow-x: auto; -webkit-mask-image:none; mask-image:none; }
}

/* ====================== EXPLAINER + SEARCH MOCK ===================== */
.aexplain .wrap { display:grid; grid-template-columns:minmax(0,1fr); gap: clamp(1.5rem,1rem + 3vw,3rem); align-items:center; }
.aexplain .wrap > * { min-width:0; }
@media (min-width:900px){ .aexplain .wrap { grid-template-columns:minmax(0,1fr) minmax(0,1fr); } }
.chips { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.4rem; }
.chips span { font-size:.82rem; font-weight:700; color: var(--ink); background: var(--wash); border:1px solid var(--line); padding:.45rem .85rem; border-radius: var(--r-pill); }
.aexplain__media { border-radius: var(--r-lg); overflow:hidden; min-height:360px; box-shadow: var(--shadow-md); }
.gbp { height:100%; min-height:inherit; display:flex; align-items:center; justify-content:center; padding:1.5rem;
  background: radial-gradient(120% 120% at 18% 8%, #eef6fb, #caddeb); }
.gbp__win { width:100%; max-width:372px; background:#fff; border-radius:14px; overflow:hidden; box-shadow: 0 16px 40px rgba(6,58,83,.24); }
.gbp__top { display:flex; align-items:center; gap:.34rem; padding:.55rem .7rem; background:#eef3f7; border-bottom:1px solid #e2eaf0; }
.gbp__top i { width:9px; height:9px; border-radius:50%; display:block; }
.gbp__url { margin-left:.5rem; flex:1; background:#fff; border-radius:6px; font-size:.6rem; color:#8494a0; padding:.3rem .6rem; }
.gbp__photos { display:grid; grid-template-columns:2fr 1fr; grid-template-rows:1fr 1fr; gap:2px; height:146px; }
.gbp__photos > div { background-size:cover; background-position:center; }
.gbp__photos .p1 { grid-row:span 2; }
.gbp__info { padding:.95rem 1.05rem 1.1rem; }
.gbp__name { font-family: var(--font-display); font-size:1.45rem; color: var(--ink); line-height:1; display:flex; align-items:center; gap:.4rem; }
.gbp__name svg { color: var(--blue-bright); }
.gbp__stars { display:flex; align-items:center; gap:.45rem; margin:.4rem 0 .15rem; font-size:.76rem; color:#5a6b74; }
.gbp__stars b { color:#f5a623; letter-spacing:1px; font-size:.85rem; }
.gbp__meta { font-size:.71rem; color:#5a6b74; }
.gbp__open { color: var(--green); font-weight:700; }
.gbp__btns { display:flex; gap:.45rem; margin-top:.85rem; }
.gbp__btn { flex:1; text-align:center; font-size:.68rem; font-weight:700; padding:.5rem .3rem; border-radius:8px; border:1.5px solid #d9e4eb; color: var(--blue); }
.gbp__btn--call { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.gbp__btn--web { position:relative; }
.gbp__tag { position:absolute; top:-2.4rem; right:-.4rem; background: var(--ink); color:#fff; font-size:.6rem; font-weight:700; padding:.3rem .55rem; border-radius:7px; white-space:nowrap; }
.gbp__tag::after { content:""; position:absolute; bottom:-4px; left:50%; transform:translateX(-50%) rotate(45deg); width:8px; height:8px; background: var(--ink); }

/* ========================= POSTER PILLARS ========================== */
.pgrid { display:grid; grid-template-columns: repeat(5,1fr); gap:1rem; }
@media (max-width:880px){ .pgrid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:480px){ .pgrid { grid-template-columns:1fr; } }
.pcard { position:relative; border-radius: var(--r-card); padding:1.5rem 1.15rem; color:#fff;
  min-height:210px; display:flex; flex-direction:column; overflow:hidden; isolation:isolate; }
.pcard::after { content:""; position:absolute; inset:0; z-index:-1; background: var(--c); }
.pcard .num { font-family: var(--font-display); font-size:1.05rem; letter-spacing:.1em; opacity:.75; }
.pcard h3 { font-size:2.3rem; margin:.25rem 0 .6rem; color:#fff; }
.pcard p { font-size:.83rem; line-height:1.45; opacity:.96; margin:0; }
.pcard .big { position:absolute; right:-4px; bottom:-20px; font-family: var(--font-display); font-size:5.4rem; opacity:.13; z-index:-1; }
/* Vibrant poster fills (concept palette, Daniel-approved 2026-08-12) */
.pcard--find      { --c: var(--blue-bright); }
.pcard--trust     { --c: var(--green); }
.pcard--understand{ --c: var(--orange); }
.pcard--act       { --c: var(--pink); }
.pcard--improve   { --c: var(--blue); }

/* ===================== PORTFOLIO / TESTIMONIALS ==================== */
.awork { background: var(--wash); }
.feature { display:grid; grid-template-columns:1fr 1fr; gap:0; background:#fff; border-radius: var(--r-lg);
  overflow:hidden; box-shadow: var(--shadow-md); margin-bottom:1.8rem; }
.feature:last-child { margin-bottom:0; }
.feature__media { position:relative; min-height:400px; }
.feature__media .duotone { position:absolute; inset:0; }
.feature--alt .feature__media { order:2; }
.feature__body { padding: clamp(2rem,1.4rem + 2.8vw,3.4rem); display:flex; flex-direction:column; justify-content:center; }
.feature__logo { height:52px; margin-bottom:1.3rem; }
.feature__logo img { height:100%; width:auto; object-fit:contain; }
.feature__quote { font-family: var(--font-display); font-size: clamp(1.7rem,2.6vw,2.3rem); line-height:1.06; color: var(--ink); letter-spacing:.01em; margin:0; }
.feature__quote .mk { color: var(--orange); }
.feature__by { margin-top:1.2rem; font-weight:700; color: var(--ink); }
.feature__by small { display:block; font-weight:600; color: var(--ink-soft); font-size:.85rem; margin-top:2px; }
.feature__did { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.5rem; padding-top:1.3rem; border-top:1px solid var(--line); }
.feature__did span { font-size:.74rem; font-weight:700; letter-spacing:.04em; color: var(--blue);
  background: color-mix(in srgb, var(--blue-bright) 12%, white); padding:.35rem .75rem; border-radius: var(--r-pill); }
.draft-flag { display:inline-block; font-size:.62rem; letter-spacing:.12em; text-transform:uppercase; color:#B02338;
  background:#FDE8EC; padding:.2rem .5rem; border-radius:5px; margin-bottom:1rem; font-weight:700; }
@media (max-width:880px){ .feature, .feature--alt { grid-template-columns:1fr; } .feature__media{ min-height:260px; } .feature--alt .feature__media{ order:0; } }

/* ========================== INSIGHTS FEED ========================== */
.feed__head { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:1.8rem; gap:1rem; flex-wrap:wrap; }
.feed__grid { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:1.1rem; }
.post { border-radius:14px; overflow:hidden; background:#fff; border:1px solid var(--line);
  box-shadow: var(--shadow-card); transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
  display:flex; flex-direction:column; }
@media (hover:hover){ .post:hover { transform:translateY(-4px); box-shadow: var(--shadow-md); text-decoration:none; } }
.post--feature { grid-row: span 2; }
.post__img { background: var(--wash); overflow:hidden; flex:1; min-height:200px; }
.post--feature .post__img img { width:100%; height:100%; object-fit:cover; }
.post__thumb { aspect-ratio:16/10; overflow:hidden; background: var(--wash); }
.post__thumb img { width:100%; height:100%; object-fit:cover; }
.post__icon { aspect-ratio:16/10; display:grid; place-items:center; background: var(--c); overflow:hidden; }
.post__icon img { width:82px; height:82px; object-fit:contain; filter: brightness(0) invert(1); }
.post__meta { padding:1rem 1.1rem 1.2rem; }
.post__tag { font-size:.66rem; letter-spacing:.14em; text-transform:uppercase; color: var(--blue); font-weight:700; }
.post__title { font-size:1rem; margin:.35rem 0 0; color: var(--ink); line-height:1.3; font-weight:700; }
.post--feature .post__title { font-family: var(--font-display); font-weight:400; font-size:1.7rem; letter-spacing:.01em; line-height:1.05; }
.post__by { margin-top:.7rem; font-size:.72rem; color: var(--ink-faint); font-weight:700; display:flex; align-items:center; gap:.45rem; flex-wrap:wrap; }
.post__by .dot { width:4px; height:4px; border-radius:50%; background: var(--wash-deep); flex:none; }
.post__by .post__date { font-weight:600; color: var(--ink-faint); }
@media (max-width:880px){ .feed__grid { grid-template-columns:1fr 1fr; } .post--feature{ grid-column: span 2; } }
@media (max-width:560px){ .feed__grid { grid-template-columns:1fr; } .post--feature{ grid-column: span 1; } }

/* quarterly-guide feature card (static promo in the homepage feed) */
.post--guide { background: var(--grad-hero); border-color: transparent; }
.post__guide { display:flex; flex-direction:column; justify-content:center; height:100%; min-height:260px; padding: clamp(1.6rem,1rem + 2vw,2.4rem); }
.guide-badge { align-self:flex-start; background: var(--orange); color: var(--ink); font-weight:700; font-size:.68rem; letter-spacing:.12em; text-transform:uppercase; padding:.4rem .85rem; border-radius: var(--r-pill); }
.post--guide .post__title { color:#fff; font-family: var(--font-display); font-weight:400; letter-spacing:.01em; font-size: clamp(1.7rem,1.2rem + 1.6vw,2.5rem); line-height:1.03; margin:1.1rem 0 0; }
.guide-dek { color: rgba(255,255,255,.85); margin:.8rem 0 0; font-size:.95rem; line-height:1.5; }
.guide-cta { margin-top:1.3rem; font-weight:700; color:#fff; display:inline-flex; align-items:center; gap:.4rem; }
.guide-cta svg { transition: transform .15s ease; }
@media (hover:hover){ .post--guide:hover .guide-cta svg { transform: translateX(4px); } }

/* ===================== BLOG ARTICLE (magazine layout) ===================== */
.posthero { position:relative; overflow:hidden; background: linear-gradient(180deg,#fff 0%, var(--paper) 100%); }
.posthero::before { content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background: repeating-conic-gradient(from var(--ray-angle, 210deg) at 84% 26%, rgba(25,143,199,.05) 0deg 6deg, transparent 6deg 12deg); }
.posthero .wrap { position:relative; z-index:1; padding-block: clamp(2.4rem,1.6rem + 3vw,4rem) 0; }
.post-article .crumbs { padding-block:0 .6rem; }
.post-kicker { display:inline-block; font-family: var(--font-body); font-weight:700; letter-spacing:.18em; text-transform:uppercase; font-size:.78rem; color: var(--orange-deep); }
.posthero h1 { color: var(--ink); margin:.45rem 0 0; font-size: clamp(2.4rem,1.5rem + 4.2vw,4.6rem); line-height:.98; letter-spacing:.005em; }
.post-standfirst { font-size: clamp(1.2rem,1rem + 1vw,1.6rem); line-height:1.5; color: var(--ink-soft); font-weight:600; max-width:42ch; margin-top:1.2rem; }
.post-meta-row { display:flex; align-items:center; gap:.7rem; flex-wrap:wrap; margin-top:1.6rem; padding-top:1.2rem; border-top:1px solid var(--line); font-size:.9rem; font-weight:700; color: var(--ink-faint); }
.post-meta-row .post-author { color: var(--ink); }
.post-meta-row .dot { width:4px; height:4px; border-radius:50%; background: var(--wash-deep); }

.post-hero { max-width:1040px; margin:2.2rem auto 0; }
.post-hero img { width:100%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.post-body { padding-block: clamp(2.8rem,1.8rem + 3vw,4.4rem); }

/* long-form reading column */
.prose { max-width: 42rem; margin-inline:auto; font-size:1.19rem; line-height:1.85; color:#243642; }
.prose > * + * { margin-top:1.75em; }
.prose p { margin:0; }
/* subtle mid-article ornament to break long runs */
.prose-break { display:flex; justify-content:center; align-items:center; gap:.6rem; margin:2.6em auto !important; }
.prose-break span { width:6px; height:6px; border-radius:50%; background: var(--wash-deep); }
.prose-break span:nth-child(2){ background: var(--orange); transform: translateY(-1px); }
.prose > p:first-of-type { font-size:1.32rem; line-height:1.62; color: var(--ink); }
.prose > p:first-of-type::first-letter { float:left; font-family: var(--font-display); font-weight:400; font-size:4.6rem; line-height:.72; margin:.02em .12em 0 0; color: var(--blue); }
.prose h2 { font-family: var(--font-display); font-weight:400; letter-spacing:.01em; font-size: clamp(1.9rem,1.4rem + 1.8vw,2.7rem); line-height:1.02; color: var(--ink); margin-top:2.1em; }
.prose h2::before { content:""; display:block; width:48px; height:4px; border-radius:4px; background: var(--orange); margin-bottom:.7rem; }
.prose h3 { font-family: var(--font-body); font-weight:700; font-size:1.3rem; color: var(--ink); margin-top:1.7em; }
.prose a { color: var(--blue); text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:2px; }
.prose strong { color: var(--ink); font-weight:700; }
.prose ul, .prose ol { padding-left:1.4em; }
.prose li { margin:.5em 0; }
.prose li::marker { color: var(--blue-bright); }
.prose img { border-radius: var(--r-card); box-shadow: var(--shadow-card); margin-block:2em; }
.prose hr { border:0; border-top:1px solid var(--line); margin:2.3em 0; }
.prose blockquote { margin:1.6em 0; border-left:4px solid var(--orange); background: var(--paper); padding:1rem 1.3rem; border-radius:0 var(--r-sm) var(--r-sm) 0; color: var(--ink); font-size:1.15rem; }
.prose blockquote p { margin:0; }

/* pull quote (a lifted line, big decorative quote mark + accent bar) */
.pullquote { margin:2.9em auto; text-align:center; }
.pullquote::before { content:"\201C"; display:block; font-family: Georgia, "Times New Roman", serif; font-weight:700; font-size:5.2rem; line-height:.75; color: var(--orange); }
.pullquote p { margin:.25rem 0 0; font-family: var(--font-body); font-weight:700; font-size: clamp(1.55rem,1.15rem + 1.6vw,2.35rem); line-height:1.26; letter-spacing:.003em; color: var(--blue-deep); }
.pullquote::after { content:""; display:block; width:56px; height:4px; border-radius:4px; background: var(--orange); margin:1.15rem auto 0; }

/* end-mark divider + author signature + preserved credit */
.post-divider { max-width:42rem; margin:2.9rem auto 0; display:flex; align-items:center; gap:1.1rem; }
.post-divider span { flex:1; height:1px; background: var(--line); }
.post-divider svg { width:24px; height:27px; flex:none; opacity:.95; }
.post-signature { max-width:42rem; margin:1.6rem auto 0; }
.post-signature__by { display:block; font-size:.74rem; letter-spacing:.18em; text-transform:uppercase; color: var(--ink-faint); font-weight:700; }
.post-signature__name { display:block; font-family: var(--font-display); font-size:2.1rem; line-height:1; color: var(--ink); margin-top:.3rem; }
.post-signature__role { display:block; font-size:.9rem; color: var(--ink-soft); font-weight:600; margin-top:.25rem; }
.post-credit { max-width:42rem; margin:1.3rem auto 0; font-size:.9rem; color: var(--ink-faint); }
.post-credit em { font-style:italic; }
.post-more { max-width:42rem; margin:2.2rem auto 0; }
@media (max-width:560px){ .prose { font-size:1.12rem; } .prose > p:first-of-type::first-letter { font-size:3.6rem; } }

/* ===================== PROCESS STEPPER (interactive Audit -> Plan -> Project -> Scorecard) ===================== */
.pstepper { margin-top: 2rem; }
.pstepper__track { position:relative; display:flex; justify-content:space-between; gap:.5rem; max-width:640px; margin:0 auto; }
.pstepper__track::before { content:''; position:absolute; top:26px; left:8%; right:8%; height:2px; background:var(--line); z-index:0; }
.pstepper__node { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:.6rem; background:none; border:none; padding:.3rem; cursor:pointer; flex:1; font-family:inherit; min-height:44px; }
.pstepper__dot {
  width:52px; height:52px; border-radius:50%; display:grid; place-items:center; margin:0 auto;
  background:#fff; border:2px solid var(--line); color: var(--ink-faint);
  font-family: var(--font-display); font-size:1.3rem;
  transition: background-color 220ms var(--ease-out), border-color 220ms var(--ease-out), color 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.pstepper__label { font-size:.85rem; font-weight:700; color: var(--ink-faint); transition: color 220ms ease; }
.pstepper__node.is-active .pstepper__dot { background: var(--accent); border-color: var(--accent); color:#fff; transform:scale(1.08); }
.pstepper__node.is-active .pstepper__label { color: var(--ink); }
@media (hover:hover) and (pointer:fine) {
  .pstepper__node:not(.is-active):hover .pstepper__dot { border-color: var(--accent); color: var(--accent); }
}
.pstepper__node:focus-visible .pstepper__dot { outline:3px solid var(--blue-bright); outline-offset:3px; }
.pstepper__panel { position:relative; max-width:640px; margin:1.8rem auto 0; min-height:4.6em; text-align:center; }
.pstepper__panel > div {
  position:absolute; inset:0;
  opacity:0; transform:translateY(6px); transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); pointer-events:none;
}
.pstepper__panel > div.is-active { opacity:1; transform:translateY(0); pointer-events:auto; position:relative; }
.pstepper__subtitle { display:block; font-family: var(--font-display); font-size:1.15rem; letter-spacing:.02em; color: var(--accent); margin-bottom:.35rem; }
.pstepper__panel p { margin:0; font-size:1.05rem; color: var(--ink-soft); }
@media (max-width:640px) {
  .pstepper__label { font-size:.72rem; }
  .pstepper__dot { width:44px; height:44px; font-size:1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pstepper__dot, .pstepper__label, .pstepper__panel p { transition:none; }
}

/* ===================== ROLE TOGGLE (segmented control + crossfade panels) ===================== */
.rtoggle { margin-top: 1.6rem; }
.rtoggle__switch { position:relative; display:inline-flex; padding:.3rem; background:var(--wash); border-radius:var(--r-pill); margin:0 0 1.6rem; gap:.2rem; }
.rtoggle__thumb { position:absolute; top:.3rem; left:.3rem; bottom:.3rem; width:calc(50% - .3rem); background:#fff; border-radius:var(--r-pill); box-shadow: var(--shadow-sm); transition: transform 280ms var(--ease-in-out); z-index:0; }
.rtoggle[data-active="you"] .rtoggle__thumb { transform: translateX(100%); }
.rtoggle__btn { position:relative; z-index:1; border:none; background:none; padding:.65rem 1.3rem; font-family:inherit; font-weight:700; font-size:.92rem; color: var(--ink-faint); cursor:pointer; border-radius:var(--r-pill); min-height:44px; transition: color 220ms ease; }
.rtoggle__btn.is-active { color: var(--ink); }
.rtoggle__btn:focus-visible { outline:3px solid var(--blue-bright); outline-offset:2px; }
.rtoggle__panels { position:relative; overflow:hidden; transition: height 280ms var(--ease-in-out); }
.rtoggle__panel { position:absolute; inset:0; opacity:0; transform:translateY(8px); pointer-events:none; transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
.rtoggle__panel.is-active { position:relative; opacity:1; transform:translateY(0); pointer-events:auto; }
@media (prefers-reduced-motion: reduce) {
  .rtoggle__thumb, .rtoggle__panel, .rtoggle__btn { transition:none; }
}

/* ===================== CLICKABLE PILLAR POSTER GRID + single-panel detail (digital-front-door.html) ===================== */
.pcard--clickable { cursor:pointer; border:none; text-align:left; font-family:inherit; width:100%; display:block; }
.pcard--clickable:hover, .pcard--clickable:focus-visible { transform:translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard--clickable:focus-visible { outline:3px solid #fff; outline-offset:-4px; }
.pcard--clickable.is-active { box-shadow: var(--shadow-lg); }
.pcard--clickable.is-active::before { content:''; position:absolute; inset:0; border-radius:inherit; box-shadow: inset 0 0 0 3px rgba(255,255,255,.7); pointer-events:none; }
.pillardetail { position:relative; min-height:15rem; }
.pillardetail__panel {
  position:absolute; inset:0; opacity:0; transform:translateY(8px); pointer-events:none;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.pillardetail__panel.is-active { position:relative; opacity:1; transform:translateY(0); pointer-events:auto; }
.pillardetail__label { font-weight:700; font-size:.8rem; color:var(--ink); margin:0 0 .6rem; }
.pillardetail__quote { border-left:4px solid var(--accent); padding-left:1.1rem; font-style:italic; color:var(--ink-soft); margin-top:1.3rem; }
@media (prefers-reduced-motion: reduce) {
  .pcard--clickable, .pillardetail__panel { transition:none; }
}
/* touch devices: signal the poster cards are tappable, and kill the desktop min-height dead-space */
@media (hover: none) and (pointer: coarse) {
  .pcard--clickable::after { content: "Tap to see what's included"; position:absolute; left:1.15rem; bottom:1rem; z-index:2; font-family:var(--font-body); font-size:.68rem; font-weight:700; letter-spacing:.02em; opacity:.85; }
  .pcard--clickable .big { bottom:14px; }
}
@media (max-width: 480px) {
  .pcard { min-height: auto; }
  .pcard .big { opacity: .2; }
}

/* ===================== "FOR AI" SIGNATURE SIDE-TAB (links crawlers to /llms.txt) ===================== */
.ai-tab {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 60; display: inline-flex; align-items: center; gap: .4rem;
  background: var(--ink); color: #fff; text-decoration: none;
  font-family: var(--font-body); font-weight: 700; font-size: .72rem; letter-spacing: .04em;
  padding: .6rem .7rem; border-radius: 12px 0 0 12px;
  /* light ring keeps it visible on dark sections too (dark-on-dark otherwise) */
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.5), -4px 4px 16px rgba(6,58,83,.28);
  transition: transform 200ms var(--ease-out), background-color 200ms ease;
}
.ai-tab__bot { font-size: 1rem; line-height: 1; }
.ai-tab__label { writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .ai-tab:hover { transform: translateY(-50%) translateX(-3px); background: var(--blue); }
}
.ai-tab:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; }
@media (max-width: 640px) {
  /* emoji-only + parked above the sticky mobile CTA so it never overlaps body text */
  .ai-tab { top: auto; bottom: 150px; padding: .5rem; }
  .ai-tab__label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ai-tab { transition: none; } }
