/* Straightaway template styles. Ported from MOCKUP/css/styles.css.
   Layout is Bootstrap row / col-* / utilities in the markup; this file only styles. Where a rule has to set
   layout itself it carries a "why:" comment. Headings are sized to their column with container units (cqi),
   never viewport units. Nothing is rounded beyond var(--radius) (0.25rem). */

/* Bootstrap bridge: our type, our colours, our radius cap */
html:root, html [data-bs-theme] {
  --bs-body-font-family: var(--font);
  --bs-body-font-size: var(--fs-body);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--page-bg);
  --bs-heading-color: var(--head, var(--forest));
  --bs-link-color: var(--green);
  --bs-border-radius: .25rem;
  --bs-border-radius-sm: .25rem;
  --bs-border-radius-lg: .25rem;
  --bs-border-radius-xl: .25rem;
  --bs-border-radius-xxl: .25rem;
  --bs-border-radius-2xl: .25rem;
  --bs-border-radius-pill: .25rem;
}

/* Stuck header height: the template setting arrives as html[data-header-stuck]; no inline style. */
html { --header-h-stuck: 64px; }
html[data-header-stuck="56"] { --header-h-stuck: 56px; }
html[data-header-stuck="72"] { --header-h-stuck: 72px; }
html[data-header-stuck="80"] { --header-h-stuck: 80px; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h-stuck, 64px) + 24px); }
body { font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; color: var(--ink); background: var(--page-bg); }
img, svg { max-width: 100%; }
img { height: auto; }

.container-xl { --bs-gutter-x: calc(var(--gutter) * 2); max-width: calc(var(--max) + var(--gutter) * 2); }
.band > .container-xl, .site-footer > .container-xl { container-type: inline-size; }
.fit { container-type: inline-size; }
.band { padding-block: var(--section); position: relative; }
.band.tight { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.band.bordered { border-top: 1px solid var(--line); }
.page-hero { padding-top: clamp(3rem, 2rem + 4vw, 6rem); }
.talk-band { padding-top: 0; }
.visually-hidden-focusable:focus { z-index: 1100; }

/* Mockup spacing scale (Bootstrap's mt-1..5 are smaller): 16 / 24 / 32 / 48 / 64 */
.mt-1 { margin-top: 16px !important; }
.mt-2 { margin-top: 24px !important; }
.mt-3 { margin-top: 32px !important; }
.mt-4 { margin-top: 48px !important; }
.mt-5 { margin-top: 64px !important; }

/* Type */
h1, h2, h3, .h1, .h2, .h3 { color: var(--head, var(--forest)); font-weight: 500; text-wrap: balance; margin-bottom: 0; }
.display { font-size: var(--fs-display); line-height: 1.05; letter-spacing: -.025em; }
.page-title { font-size: var(--fs-page); line-height: 1.05; letter-spacing: -.025em; }
.fit .display { font-size: clamp(2.25rem, 1rem + 9cqi, 4.75rem); }
.fit .page-title { font-size: clamp(2.25rem, 1rem + 7.5cqi, 4rem); }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.02em; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.01em; }
.h4 { font-size: clamp(1.125rem, 1.08rem + .2cqi, 1.25rem); line-height: 1.3; font-weight: 600; letter-spacing: 0; color: var(--head); margin-bottom: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.5; font-weight: 400; }
.small, small { font-size: var(--fs-small); line-height: 1.5; }
.small { color: var(--muted); }
.label { font-size: var(--fs-small); line-height: 1.4; font-weight: 500; color: var(--accent); margin-bottom: 0; }
.friction-word { color: var(--rust-text); }
.f-forest .friction-word { color: #F0C6B2; }
mark { background: var(--mark-bg); color: var(--mark-fg); padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.f-pale mark, .f-forest mark { background: #fff; color: var(--forest); }
.stack > * + * { margin-top: var(--s, 1em); }
.measure { max-width: 62ch; }
p { margin-bottom: 0; }
.rich > * + * { margin-top: 1em; }
.rich h2, .rich h3 { margin-top: 1.6em; }

/* Links, focus, buttons */
a { color: var(--link, var(--green)); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--link-hover, var(--forest)); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus, var(--green)); outline-offset: 3px; }
.btn {
  --bs-btn-padding-x: 28px;
  --bs-btn-padding-y: 12px;
  --bs-btn-font-family: var(--font);
  --bs-btn-font-size: 1.0625rem;
  --bs-btn-font-weight: 600;
  --bs-btn-line-height: 1;
  --bs-btn-color: var(--btn-fg, #fff);
  --bs-btn-bg: var(--btn-bg, var(--green));
  --bs-btn-border-width: 0;
  --bs-btn-border-radius: var(--radius);
  --bs-btn-hover-color: var(--btn-hover-fg, #fff);
  --bs-btn-hover-bg: var(--btn-hover, var(--forest));
  --bs-btn-active-color: var(--btn-hover-fg, #fff);
  --bs-btn-active-bg: var(--btn-hover, var(--forest));
  --bs-btn-focus-shadow-rgb: 47, 107, 71;
  min-height: 48px;
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* why: inline control with a 44px tap target, centred label */
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 24px; }
.linkbtn:hover { color: var(--link-hover); }
.skip-link { position: absolute; left: var(--gutter); top: -80px; z-index: 1100; background: var(--forest); color: #fff; padding: 12px 20px; border-radius: var(--radius); }
.skip-link:focus { top: 8px; color: #fff; }

/* Header: pinned, so "Let's talk" stays on every screen. The stuck state is compact: full logo at desktop, icon below lg. */
.site-header { background: var(--page-bg); border-bottom: 1px solid var(--line); z-index: 1030; --head: var(--forest); --link: var(--ink); --link-hover: var(--forest); --focus: var(--green); }
[data-bs-theme="dark"] .site-header { --head: #fff; --link: var(--ink); --link-hover: #fff; --focus: #9AD4AE; }
.site-header.is-sticky { position: sticky; top: 0; }
.site-header > .container-xl { min-height: var(--header-h); transition: min-height .2s var(--ease); }
.site-header.is-stuck > .container-xl { min-height: var(--header-h-stuck, 64px); }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--forest); font-weight: 600; font-size: 1.3125rem; /* why: inline control with a 44px tap target, centred label */ }
.brand:hover { color: var(--forest); }
.brand-logo { height: 54px; width: auto; }
.site-header .brand-logo { height: 54px; }
.brand-icon { display: none; height: 40px; width: 40px; }
.brand-dark { display: none; }
[data-bs-theme="dark"] .brand-light { display: none; }
[data-bs-theme="dark"] .brand-dark { display: inline; }
.site-header.is-stuck .brand-logo { height: 54px; }
@media (max-width: 991.98px) {
    .site-header.is-stuck .brand-logo { display: none; }
    .site-header.is-stuck .brand-icon { display: inline-block; }
}
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; /* why: inline control with a 44px tap target, centred label */
  /* the underline is a 2px rust bar that grows from the left edge, like the hero's straight run drawing to the right */
  background: linear-gradient(var(--rust), var(--rust)) left calc(50% + .8em) / 0 2px no-repeat; }
.motion-ok .site-nav a { transition: background-size .45s cubic-bezier(.3, 0, .2, 1), color .2s; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--head); background-size: 100% 2px; }
.site-nav .current > a, .site-nav a.active, .site-nav a[aria-current="page"] { color: var(--head); font-weight: 500; background-size: 100% 2px; }
.site-nav ul { gap: 32px; margin: 0; padding: 0; list-style: none; }
.menu-btn { display: none; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; border-radius: var(--radius); color: var(--ink); cursor: pointer; /* why: 44px tap target; no border, the icon itself is the visible control (ink on white is well above 3:1) */ }
.menu-btn:hover { color: var(--head); }
.menu-icon path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.header-cta { --bs-btn-padding-x: 22px; --bs-btn-padding-y: 10px; min-height: 44px; --btn-bg: var(--green); --btn-fg: #fff; --btn-hover: var(--forest); --btn-hover-fg: #fff; }
[data-bs-theme="dark"] .header-cta { --btn-bg: #9AD4AE; --btn-fg: #0F1A14; --btn-hover: #D7EBDC; --btn-hover-fg: #0F1A14; }
/* Mobile drawer (Bootstrap offcanvas-lg): inline nav at lg and up, a right-side drawer below. */
.site-header:has(.site-drawer.show, .site-drawer.showing) { z-index: 1046; /* why: the header's stacking context must sit above Bootstrap's body-level backdrop (1040) or the dimmer covers the drawer */ }
@media (max-width: 991.98px) {
  .menu-btn { display: inline-flex; }
  .brand-logo { height: 36px; }
  .site-drawer { --bs-offcanvas-width: min(420px, 100vw); --bs-offcanvas-bg: var(--page-bg); --bs-offcanvas-color: var(--ink); --bs-offcanvas-border-color: var(--line); }
  .site-drawer .offcanvas-header { padding: 12px var(--gutter); border-bottom: 1px solid var(--line); }
  .site-drawer .offcanvas-header .btn-close { width: 44px; height: 44px; margin: 0; padding: 0; background-size: 16px; /* why: 44px tap target */ }
  [data-bs-theme="dark"] .site-drawer .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
  .site-drawer .offcanvas-body { display: flex; flex-direction: column; gap: 28px; padding: 24px var(--gutter) 32px; }
  .drawer-ctas { display: grid; gap: 12px; }
  .drawer-ctas .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; --btn-bg: var(--green); --btn-fg: #fff; --btn-hover: var(--forest); --btn-hover-fg: #fff; }
  .drawer-ctas .btn-call { --btn-bg: transparent; --btn-fg: var(--head); --btn-hover: var(--tint); --btn-hover-fg: var(--head); border: 1px solid var(--forest); }
  .site-nav ul { flex-direction: column; gap: 0; /* why: core mod_menu prints a Bootstrap .nav list; it stacks in the drawer */ }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a, .site-nav .current > a, .site-nav a.active, .site-nav a[aria-current="page"] { display: flex; min-height: 52px; font-size: 1.25rem; background: none; /* why: full-width 52px tap rows in the drawer; the current page uses the left marker, not the underline */ }
  .site-nav a:hover { color: var(--head); }
  .site-nav .current > a, .site-nav a.active, .site-nav a[aria-current="page"] { padding-left: 12px; box-shadow: inset 3px 0 0 var(--rust); }
  .drawer-sub ul { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
  .drawer-sub a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; color: var(--ink); /* why: 44px tap target */ }
  .drawer-quote { margin: auto 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
  .drawer-quote blockquote { margin: 0; }
  .drawer-quote p { margin: 0; font-size: 1.25rem; line-height: 1.4; color: var(--head); }
  .drawer-quote p::before { content: "\201C"; } .drawer-quote p::after { content: "\201D"; }
  .drawer-quote figcaption { margin-top: 12px; font-size: .9375rem; color: var(--muted); }
  .header-cta { --bs-btn-padding-x: 16px; font-size: 1rem; }
}
.theme-toggle { position: fixed; right: 16px; bottom: 16px; z-index: 1030; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--page-bg); color: var(--ink); cursor: pointer; }

/* Panels, icons */
.panel { background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 32px); }
.panel.tint { background: var(--tint); }
[data-bs-theme="dark"] .panel.tint { background: #1B2D22; }
.panel h3 + *, .panel .h4 + * { margin-top: 8px; }
.icon { font-size: 28px; line-height: 1; color: var(--accent); margin-bottom: 12px; display: block; }
.icon.rust { color: var(--rust); }
.plain h3 + * { margin-top: 8px; }

/* The journey line */
/* Height never drops below the viewBox ratio (13.9vw), so slice only ever crops sideways, never the strands. */
.hero-line { width: 100%; height: max(96px, 13.9vw); display: block; padding-block: clamp(12px, 1.6vw, 28px); box-sizing: content-box; }
/* Orange strands = the friction (same hue as the friction word); they resolve into the green straight run. */
.hero-line .strand { fill: none; stroke: var(--rust); stroke-opacity: .7; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.hero-line .run { fill: none; stroke: var(--green); stroke-width: 4; vector-effect: non-scaling-stroke; }
.hero-line .ring { fill: var(--hl); stroke: var(--line); }
.hero-line .core { fill: var(--forest); }
[data-bs-theme="dark"] .hero-line .run { stroke: #9AD4AE; }
[data-bs-theme="dark"] .hero-line .core { fill: #fff; }
/* Strands flow in one at a time and stop at the node; the node lands; then the straight run draws to the edge.
   A clip reveal in drawing units, not dashes: the strokes are non-scaling, so dash lengths would be measured in
   screen pixels and stop short at every width but 1440. Negative insets keep the stroke width inside the clip. */
.motion-ok .hero-line .strand, .motion-ok .hero-line .run { clip-path: inset(-12px 100% -12px -12px); animation: draw 1.3s cubic-bezier(.45, 0, .25, 1) forwards; }
.motion-ok .hero-line .strand:nth-child(1) { animation-delay: 0ms; }
.motion-ok .hero-line .strand:nth-child(2) { animation-delay: 70ms; }
.motion-ok .hero-line .strand:nth-child(3) { animation-delay: 140ms; }
.motion-ok .hero-line .strand:nth-child(4) { animation-delay: 210ms; }
.motion-ok .hero-line .strand:nth-child(5) { animation-delay: 280ms; }
.motion-ok .hero-line .strand:nth-child(6) { animation-delay: 350ms; }
.motion-ok .hero-line .strand:nth-child(7) { animation-delay: 420ms; }
.motion-ok .hero-line .strand:nth-child(8) { animation-delay: 490ms; }
.motion-ok .hero-line .strand:nth-child(9) { animation-delay: 560ms; }
.motion-ok .hero-line .strand:nth-child(10) { animation-delay: 630ms; }
.motion-ok .hero-line .strand:nth-child(11) { animation-delay: 700ms; }
.motion-ok .hero-line .strand:nth-child(12) { animation-delay: 770ms; }
.motion-ok .hero-line .strand:nth-child(13) { animation-delay: 840ms; }
.motion-ok .hero-line .node { transform-box: fill-box; transform-origin: center; animation: pop .45s var(--ease) 2.05s both; }
.motion-ok .hero-line .run { animation-duration: 1.2s; animation-timing-function: cubic-bezier(.3, 0, .2, 1); animation-delay: 2.35s; }
@keyframes draw { to { clip-path: inset(-12px -12px -12px -12px); } }
@keyframes unmask { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pop { from { transform: scale(.5); } to { transform: scale(1); } }

.road { position: relative; height: 64px; color: var(--accent); margin-top: 40px; }
.road-in { position: absolute; inset: 0; }
.road svg { position: absolute; top: 0; height: 64px; }
.road .path { left: 0; width: 100%; }
.road .tip { right: 0; width: 24px; }
.road path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.motion-ok .road .road-in { transition: clip-path 1.3s var(--ease); }
.motion-ok .road:not(.in) .road-in { clip-path: inset(0 100% 0 0); }

/* Hero */
.hero { padding-block: 0 clamp(2.5rem, 1.5rem + 3vw, 5rem); overflow: hidden; }
.hero .hero-line { margin-bottom: clamp(16px, 2vw, 32px); }
.headshot { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); }
.direct-photo { width: 100%; max-width: 320px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

/* Definition */
.definition { font-size: var(--fs-def); line-height: .95; letter-spacing: -.05em; font-weight: 500; color: var(--rust-text); }
.definition dfn { font-style: normal; }
.definition small { font-size: clamp(1.125rem, .9rem + 1cqi, 2rem); letter-spacing: 0; font-weight: 400; font-style: italic; color: var(--gray); margin-left: .2em; }
.definition-text { font-size: var(--fs-h3); line-height: 1.3; color: var(--fg); max-width: 34ch; }
.belief { border-left: 3px solid var(--green); padding-left: clamp(16px, 2vw, 28px); font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.01em; color: var(--head); max-width: 34ch; font-weight: 500; }
.belief strong { display: block; margin-top: .3em; font-weight: 500; color: var(--accent); }

/* The gap */
.gap-mid { position: relative; padding: 16px 0; }
.gap-mid::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed #6F8A79; }
.pill { position: relative; display: inline-block; background: var(--btn-bg); color: var(--btn-fg); font-size: var(--fs-small); font-weight: 600; line-height: 1; padding: 9px 14px; border-radius: var(--radius); }
.know li { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.01em; color: var(--head); font-weight: 500; padding-block: 10px; }
.sees { background: transparent; }
.sees li { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.01em; color: var(--gray); padding-block: 10px; }
@media (min-width: 992px) {
  .gap-mid { padding: 0; }
  .gap-mid::before { left: 50%; }
}

/* Tiles */
.tile { display: block; height: 100%; background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius); padding: clamp(20px, 2vw, 28px); color: var(--fg); text-decoration: none; transition: background-color .2s, transform .25s var(--ease), border-color .2s; }
.tile > * + * { margin-top: 8px; }
.tile .h4 { margin: 0; }
.tile .q { color: var(--muted); font-size: 1rem; line-height: 1.4; }
.tile .what { font-size: 1rem; line-height: 1.45; }
a.tile:hover { color: var(--fg); transform: translateY(-4px); background: var(--hl); border-color: #A9C4B2; }
a.tile:focus-visible { background: var(--hl); }
.idx-tile .q { color: var(--fg); font-size: var(--fs-body); }
.idx-tile .go { display: block; font-size: var(--fs-small); font-weight: 500; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767.98px) {
  .places { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; /* why: a Bootstrap row turned into a swipe rail on phones */ }
  .places > li { flex: 0 0 72%; max-width: 280px; scroll-snap-align: start; }
}

/* Self-check and quick intro */
.quiet summary { display: inline-block; cursor: pointer; list-style: none; min-height: 24px; }
.quiet summary::-webkit-details-marker { display: none; }
.quiet summary .s-link { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.quiet summary:hover .s-link { color: var(--link-hover); }
.quiet[open] summary { margin-bottom: 14px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; color: var(--head); }
.field input, .field textarea { display: block; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--gray); border-radius: var(--radius); background: var(--page-bg); color: var(--ink); font: inherit; }
.field textarea { min-height: 112px; resize: vertical; }
.talk-card { --panel: #FFFFFF; --panel-line: #FFFFFF; --fg: #1A1A1A; --head: var(--forest); --link: var(--green); --muted: #5E5E5E; --btn-bg: var(--green); --btn-fg: #fff; --btn-hover: var(--forest); --btn-hover-fg: #fff; --focus: var(--green); color: var(--fg); }
[data-bs-theme="dark"] .talk-card { --panel: #16251C; --panel-line: #16251C; --fg: #E6EFE9; --head: #fff; --link: #9AD4AE; --muted: #B4C4B9; --btn-bg: #9AD4AE; --btn-fg: #0F1A14; --btn-hover: #D7EBDC; --btn-hover-fg: #0F1A14; --focus: #9AD4AE; }
.talk-card .control-group { margin-bottom: 16px; }
.talk-card .control-label label { display: block; font-weight: 500; margin-bottom: 6px; color: var(--head); }
.talk-card .controls input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .talk-card .controls textarea, .talk-card .controls select { display: block; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--gray); border-radius: var(--radius); background: var(--page-bg); color: var(--ink); font: inherit; }
.talk-card .controls textarea { min-height: 112px; resize: vertical; }
.talk-card .invalid, .talk-card [aria-invalid="true"] { border: 2px solid var(--rust-text); }
.talk-card .form-control-feedback, .talk-card .invalid-feedback { color: var(--rust-text); font-weight: 500; }
.copy-box { max-width: 62ch; margin-top: 12px; padding: 16px; border: 1px solid var(--panel-line); border-radius: var(--radius); }
.copy-box p { margin-bottom: 10px; }
.status-msg { font-weight: 500; padding: 14px 16px; background: var(--hl); border-radius: var(--radius); color: var(--forest); }
[data-bs-theme="dark"] .status-msg { color: #fff; }

/* Three ways / tiers */
.ways .verb { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.02em; color: var(--accent); font-weight: 500; }
.ways h3 { margin-top: 16px; font-size: var(--fs-h3); }
.ways h3 a { color: inherit; display: inline-block; padding-block: 3px; }
.ways p { margin-top: 10px; }
.ways .best { font-style: italic; color: var(--muted); }
.ways .dur { font-weight: 600; }
.ways > li { border-top: 3px solid var(--accent); padding-top: 24px; }
.ways .panel { border-top: 1px solid var(--panel-line); }
.tier .num { font-size: var(--fs-h3); letter-spacing: -.01em; line-height: 1.1; font-weight: 500; color: var(--head); }

/* Scorecard */
.tag { display: inline-block; font-size: var(--fs-small); line-height: 1.3; font-weight: 500; padding: 4px 10px; border: 1px solid var(--head); border-radius: var(--radius); color: var(--head); background: var(--panel); }
.scorecard { width: 100%; border-collapse: collapse; font-size: 1rem; }
.scorecard th, .scorecard td { padding: clamp(11px, 1.5vw, 19px) 0; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); font-weight: 400; }
.scorecard thead th { border-top: 0; color: var(--muted); padding-block: 0 8px; font-weight: 500; }
.scorecard tbody th { font-weight: 500; color: var(--head); padding-right: 10px; }
.scorecard .sc { width: 56%; padding-right: 12px; }
.bar i { display: block; height: 14px; background: var(--bar-off); }
.bar i.g { background: var(--green); }
.bar i.r { background: var(--rust); }
[data-bs-theme="dark"] .bar i.g { background: #9AD4AE; }
.sc-num { font-weight: 600; color: var(--ink); min-width: 1.4ch; }
.bar { min-width: 40px; flex: 1 1 auto; }
.rate { display: inline-block; padding: 3px 9px; font-size: .875rem; line-height: 1.3; font-weight: 500; border-radius: var(--radius); white-space: nowrap; }
.rate-clear { border: 1px solid var(--green); color: var(--head); background: var(--panel); }
.rate-minor { background: var(--hl); color: var(--head); }
.rate-leak { background: var(--rust-tint); color: var(--rust-text); }
.rate-constraint { background: var(--rust-text); color: #fff; }
[data-bs-theme="dark"] .rate-constraint { color: #1A1A1A; }
.bands { margin-top: 14px; }
.see-all { display: none; }
@media (max-width: 639.98px) {
  .scorecard.is-collapsed tbody tr:nth-child(n+4) { display: none; }
  .see-all { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; /* why: 44px tap target for the phone-only button */ }
}
.checks li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 2px; background: var(--accent); }

/* Diagnosis rows */
.diag-head { color: var(--muted); font-weight: 500; padding-bottom: 12px; }
.diag li { border-top: 1px solid var(--line); }
.diag li:last-child { border-bottom: 1px solid var(--line); }
.diag li > a, .diag li > div { min-height: 44px; padding: 16px 12px; margin-inline: -12px; color: var(--fg); text-decoration: none; transition: background-color .15s; }
.diag li > a:hover { background: var(--hl); color: var(--fg); }
.diag .say { font-size: var(--fs-lead); line-height: 1.35; color: var(--fg); }
.diag .arrow { color: var(--accent); }
.diag .start { font-weight: 600; color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.diag a:hover .start { color: var(--link-hover); }

/* Comparison: every cell prints its text; colour only reinforces */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-body); }
.compare th, .compare td { padding: 16px clamp(8px, 1.6vw, 24px); text-align: left; border-top: 1px solid var(--panel-line, var(--line)); font-weight: 400; vertical-align: middle; }
.compare thead td { border-top: 0; }
.compare thead th { border-top: 0; font-weight: 500; color: var(--muted); }
.compare tbody th { font-weight: 500; color: var(--head); padding-left: 0; }
.compare .fr { background: var(--hl); color: var(--head); font-weight: 600; border-top-color: #A9C4B2; }
.compare thead .fr { border-radius: var(--radius) var(--radius) 0 0; }
.compare tbody tr:last-child .fr { border-radius: 0 0 var(--radius) var(--radius); }
.compare .y { font-weight: 500; color: var(--head); }
.compare .n { color: var(--muted); }
@media (max-width: 519.98px) { .compare { font-size: var(--fs-small); } .compare th, .compare td { padding: 12px 6px; } }
@media (max-width: 374.98px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; /* why: below 375px a table cannot fit four columns, so each row stacks as a labelled list */ }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare tbody tr { padding-block: 12px; border-top: 1px solid var(--line); }
  .compare tbody th, .compare td { border: 0; padding: 2px 8px; }
  .compare td::before { content: attr(data-label) ": "; font-weight: 400; color: var(--muted); }
}

/* Credentials and logos */
.facts .num { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -.01em; font-weight: 500; color: var(--head); }
.logo-title { border-top: 1px solid var(--line); padding-top: 20px; font-weight: 500; color: var(--head); }
.logo-group-title { font-size: .875rem; font-weight: 600; color: var(--head); margin-bottom: 1rem; }
.logo-groups img { width: auto; height: auto; max-width: min(100%, 150px); max-height: 40px; }
[data-bs-theme="dark"] .logo-groups img { background: #fff; padding: 6px 8px; border-radius: var(--radius); }

/* Close */
.close .display { max-width: 18ch; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--panel-line); border-radius: var(--radius); color: var(--fg); text-decoration: none; overflow-wrap: anywhere; /* why: inline control with a 44px tap target, centred label */ }
.chip:hover { color: var(--fg); background: var(--panel); }
.quiet-row > a { display: inline-flex; align-items: center; min-height: 44px; /* why: inline control with a 44px tap target, centred label */ }
.quiet-row summary { display: inline-flex; align-items: center; min-height: 44px; /* why: inline control with a 44px tap target, centred label */ }

/* Footer */
.site-footer { background: var(--page-bg); border-top: 1px solid var(--line); padding-block: 40px; --head: var(--forest); --link: var(--green); --link-hover: var(--forest); --muted: var(--gray); --focus: var(--green); color: var(--ink); }
[data-bs-theme="dark"] .site-footer { --head: #fff; --link: #9AD4AE; --link-hover: #fff; --focus: #9AD4AE; }
.foot-word { color: var(--head); font-weight: 600; font-size: 1.3125rem; line-height: 1.2; letter-spacing: -.01em; }
.foot-links ul { gap: 0 24px; margin: 0; padding: 0; list-style: none; justify-content: flex-end; /* why: core mod_menu list; links sit right on wide screens */ }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); /* why: inline control with a 44px tap target, centred label */ }
.foot-bottom { border-top: 1px solid var(--line); }
.foot-legal ul { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
/* "|" between copyright and each legal link; the alt text after the slash keeps screen readers from announcing it. */
.foot-legal li + li::before, .foot-copy + ul > li:first-child::before { content: "|"; content: "|" / ""; margin-inline: .625rem; color: var(--muted); }
.foot-legal a { display: inline-flex; align-items: center; min-height: 44px; /* why: inline control with a 44px tap target, centred label */ }
/* Footer menu + legal links: the header nav's 2px rust underline, drawn left to right on hover/focus, full on the current page. */
.foot-links a, .foot-legal a { text-decoration: none; background: linear-gradient(var(--rust), var(--rust)) left calc(50% + .8em) / 0 2px no-repeat; }
.motion-ok .foot-links a, .motion-ok .foot-legal a { transition: background-size .45s cubic-bezier(.3, 0, .2, 1), color .2s; }
.foot-links a:hover, .foot-links a:focus-visible, .foot-legal a:hover, .foot-legal a:focus-visible,
.foot-links a[aria-current="page"], .foot-legal a[aria-current="page"] { color: var(--head); background-size: 100% 2px; }
.foot-credit { display: inline-flex; align-items: center; gap: .375rem; }
.foot-credit a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--ink); /* why: inline control with a 44px tap target */ }
.foot-credit a:hover { color: var(--head); }
@media (max-width: 991.98px) { .foot-links ul { justify-content: flex-start; /* why: see above; left on narrow screens */ } }

/* Steps on a line */
/* Steps: a vertical list with a rail below lg; at lg and up a staggered timeline. */
.steps .step { position: relative; padding-left: 52px; margin-bottom: 28px; }
.steps .dot { position: absolute; left: 0; top: 0; z-index: 1; width: 36px; height: 36px; border-radius: var(--radius); background: var(--hl); color: var(--forest); font-weight: 600; text-align: center; line-height: 36px; }
[data-bs-theme="dark"] .steps .dot { color: #fff; }
.steps .step::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: -28px; border-left: 2px solid var(--hl); }
.steps .step:last-child::before { display: none; }
.steps .h4 { margin-bottom: 6px; }
.steps[data-n="2"] { --n: 2; } .steps[data-n="3"] { --n: 3; } .steps[data-n="4"] { --n: 4; }
.steps[data-n="5"] { --n: 5; } .steps[data-n="6"] { --n: 6; }
@media (min-width: 992px) {
  /* Three shared rows: odd steps' text above, the line with every number, even steps' text below.
     Each text block is 1.5 columns wide (its neighbours sit on the other side of the line); the last
     step keeps one column so it never runs past the container. */
  .steps { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); grid-template-rows: auto 36px auto; column-gap: 0; }
  .steps.has-line::before { content: ""; grid-row: 2; grid-column: 1 / -1; align-self: center; height: 3px; background: var(--hl); border-radius: 2px; }
  .steps .step { display: grid; grid-row: 1 / 4; grid-template-rows: subgrid; padding: 0; margin: 0; }
  /* explicit columns: the line (::before) fills row 2 of every column, so auto-placement would push steps into new columns */
  .steps .step:nth-child(1) { grid-column: 1; }
  .steps .step:nth-child(2) { grid-column: 2; }
  .steps .step:nth-child(3) { grid-column: 3; }
  .steps .step:nth-child(4) { grid-column: 4; }
  .steps .step:nth-child(5) { grid-column: 5; }
  .steps .step:nth-child(6) { grid-column: 6; }
  .steps .step::before { display: none; }
  .steps .dot { position: static; grid-row: 2; justify-self: start; }
  .steps .step-body { width: calc(150% - 32px); margin-left: 17px; padding-left: 19px; border-left: 2px solid var(--hl); }
  .steps .step:last-child .step-body { width: calc(100% - 17px); }
  .steps .step:nth-child(odd) .step-body { grid-row: 1; align-self: end; padding-bottom: 20px; }
  .steps .step:nth-child(even) .step-body { grid-row: 3; align-self: start; padding-top: 20px; }
}
.ifthen .small { color: var(--muted); }
.chips li { padding: 8px 14px; background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--fs-small); font-weight: 500; color: var(--forest); line-height: 1.3; }
[data-bs-theme="dark"] .chips li { background: #1B2D22; color: #fff; }
.faq-accordion details + details { margin-top: 12px; }
.faq-accordion summary { cursor: pointer; }
.say-big { font-size: clamp(1.75rem, 1.2rem + 2cqi, 2.25rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 500; color: var(--head); }
.proj-name { font-size: var(--fs-small); line-height: 1.4; font-weight: 600; letter-spacing: 0; color: var(--accent); margin-bottom: 12px; }
.project-video { border-radius: var(--radius); background: #000; aspect-ratio: 16 / 9; }

/* Essay and reading columns */
.essay { font-size: var(--fs-letter); line-height: 1.65; }
.essay p { max-width: 62ch; }
.essay > * + * { margin-top: 1em; }
.essay .pulled, .essay blockquote { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.01em; font-weight: 500; color: var(--head); margin-block: 1.2em; }
@media (min-width: 992px) { .offset { margin-left: 22%; max-width: 62%; } }
.place-row { padding-block: clamp(20px, 2.4vw, 32px); border-top: 1px solid #C2D6C8; }
.place-row:first-child { border-top: 0; }
.place-row .name { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.02em; font-weight: 500; color: var(--head); }
.signoff { font-weight: 600; color: var(--head); }
.next-list { padding-left: 1.4em; display: block; }
.next-list li { margin-bottom: 16px; }
.next-list li::marker { color: var(--accent); font-weight: 600; }
.wrong-line { width: 100%; height: auto; max-height: 140px; margin-top: 24px; }
.wrong-line path { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.motion-ok .wrong-line { animation: unmask 1.6s var(--ease) both; }

/* Reveal: transform only, so an unscrolled page still measures as full content */
/* Stagger: template.js numbers each revealed item 0-6 in data-d; no inline style. */
.rv[data-d="1"] { --d: 70ms; } .rv[data-d="2"] { --d: 140ms; } .rv[data-d="3"] { --d: 210ms; }
.rv[data-d="4"] { --d: 280ms; } .rv[data-d="5"] { --d: 350ms; } .rv[data-d="6"] { --d: 420ms; }
.motion-ok .rv { transition: transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.motion-ok .rv:not(.in) { transform: translateY(26px); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .road .road-in { clip-path: none !important; }
}
@media (forced-colors: active) { .bar i { border: 1px solid CanvasText; } .bar i.g, .bar i.r { background: CanvasText; } }
@media print { .site-header.is-sticky { position: static; } }

/* Footer social icons: 44px targets, glyph in the heading colour (meets 3:1 for meaningful icons). */
.foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--head); border: 1px solid var(--line); border-radius: var(--radius-sm, .25rem); text-decoration: none; }
.foot-social a:hover { color: var(--rust-text); border-color: var(--rust); }
.foot-social .fa-brands { font-size: 1.125rem; }

/* Let's Talk location card: Tennessee outline, Nashville pin. The pulse runs three times, then rests (WCAG 2.2.2). */
.location-card .tn-map { display: block; width: 100%; height: auto; max-height: 200px; }
.tn-state { fill: var(--tint); stroke: var(--forest); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tn-marker { fill: var(--rust); }
.tn-dot { fill: #fff; }
.tn-pulse { fill: var(--rust); opacity: .18; }
[data-bs-theme="dark"] .tn-state { stroke: #9AD4AE; }
.motion-ok .tn-pulse { transform-box: fill-box; transform-origin: center; animation: tn-pulse 2.4s ease-out 3; }
@keyframes tn-pulse { from { transform: scale(.4); opacity: .4; } to { transform: scale(1.6); opacity: 0; } }
