/* ── HUB About pages: /about/, /trip-planner/, /roadbook-planner/ (DMD Ops #2515) ──
   The same family as /live-trip/ and /dmd-events/ (dark sections, an animated SVG
   hero, eyebrow + big title, screenshots in a frame, cards, reveal on scroll), in
   one sheet with a colour theme per page: .ab-page.ab-blue (Trip Planner),
   .ab-page.ab-orange (Roadbook Planner), .ab-page.ab-index (the About index).
   Animations pause off screen (script) and stand still under reduced motion. */

.ab-page {
  --ab-bg-deep: #0b0f16;
  --ab-bg-warm: #121823;
  --ab-text: #e5e7eb;
  --ab-mute: #a1a8b5;
  --ab-a1: #4f8df5;          /* accent */
  --ab-a2: #2563eb;          /* accent, dark end */
  --ab-a3: #38bdf8;          /* second accent */
  --ab-glow: rgba(79, 141, 245, .35);
  --ab-hero: radial-gradient(ellipse at 70% 30%, #13284a 0%, #0b0f16 55%, #070a10 100%);
  --ab-grad: linear-gradient(90deg, #8db0ff 0%, #4f8df5 35%, #38bdf8 70%, #5fd6b6 100%);
  color: var(--ab-text);
  background: var(--ab-bg-deep);
  overflow-x: hidden;
}
.ab-page.ab-orange {
  --ab-bg-deep: #100d0b;
  --ab-bg-warm: #1a1512;
  --ab-a1: #f97316;
  --ab-a2: #c2410c;
  --ab-a3: #fbbf24;
  --ab-glow: rgba(249, 115, 22, .35);
  --ab-hero: radial-gradient(ellipse at 70% 30%, #3a2210 0%, #100d0b 55%, #08070a 100%);
  --ab-grad: linear-gradient(90deg, #fdba74 0%, #f97316 38%, #f2559b 72%, #fbbf24 100%);
}
.ab-page.ab-index {
  --ab-hero: radial-gradient(ellipse at 50% 20%, #142240 0%, #0b0f16 58%, #06080d 100%);
  --ab-grad: linear-gradient(90deg, #fbbf24 0%, #ff6a5c 25%, #a78bfa 50%, #4f8df5 75%, #5fd6b6 100%);
}
@media (max-width: 576px) { .ab-page .container { padding-left: 18px; padding-right: 18px; } }

/* ── HERO ── */
.ab-hero { position: relative; min-height: 90vh; overflow: hidden; isolation: isolate; background: var(--ab-hero); }
.ab-hero-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.ab-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 62% 55% at 50% 44%, rgba(7,9,14,.84) 0%, rgba(7,9,14,.38) 62%, transparent 100%);
}
.ab-contours { animation: abDrift 60s ease-in-out infinite alternate; transform-origin: 50% 50%; }
@keyframes abDrift { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.06) rotate(1.5deg); } }
.ab-draw { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: abDraw 14s linear infinite; }
.ab-draw.d2 { animation-delay: -5s; animation-duration: 17s; }
.ab-draw.d3 { animation-delay: -9s; animation-duration: 12s; }
@keyframes abDraw { 0% { stroke-dashoffset: 1000; opacity: 1; } 70% { stroke-dashoffset: 0; opacity: 1; } 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.ab-pop { transform-box: fill-box; transform-origin: 50% 100%; animation: abPop 14s ease-out infinite; }
.ab-pop.p2 { animation-name: abPop2; } .ab-pop.p3 { animation-name: abPop3; }
@keyframes abPop  { 0%, 18% { transform: scale(0); } 22% { transform: scale(1.2); } 25%, 92% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes abPop2 { 0%, 38% { transform: scale(0); } 42% { transform: scale(1.2); } 45%, 92% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes abPop3 { 0%, 58% { transform: scale(0); } 62% { transform: scale(1.2); } 65%, 92% { transform: scale(1); } 100% { transform: scale(0); } }
.ab-halo { animation: abHalo 1.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes abHalo { from { transform: scale(.8); opacity: .55; } to { transform: scale(1.35); opacity: .12; } }
.ab-hero-svg.ab-paused * { animation-play-state: paused !important; }

.ab-hero-content { position: relative; z-index: 2; padding-top: calc(72px + 5vh); padding-bottom: 14vh; text-align: center; }
.ab-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem 1rem;
  background: rgba(255,255,255,.08); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18); border-radius: 9999px;
  font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 2.25rem;
}
.ab-eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ab-a1); animation: abDot 2s ease-out infinite; }
@keyframes abDot { 0% { box-shadow: 0 0 0 0 var(--ab-glow); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ab-beta { padding: .05rem .45rem; border-radius: 6px; background: var(--ab-a3); color: #1a1205; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.ab-hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; line-height: 1.05;
  margin: 0 0 1.25rem; color: #fff; letter-spacing: -0.02em; text-shadow: 0 4px 32px rgba(0,0,0,.5);
}
.ab-accent { background: var(--ab-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ab-lede {
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; color: rgba(255,255,255,.86);
  max-width: 800px; margin: 0 auto 2rem; text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.ab-lede strong { color: #fff; }
.ab-ctas { display: inline-flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.ab-btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; font-size: 15px; font-weight: 600;
  border-radius: 12px; text-decoration: none; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.ab-btn-primary { background: linear-gradient(135deg, var(--ab-a1) 0%, var(--ab-a2) 100%); color: #fff; box-shadow: 0 8px 24px var(--ab-glow); }
.ab-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--ab-glow); color: #fff; }
.ab-btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); backdrop-filter: blur(10px); }
.ab-btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-2px); }

.ab-steps {
  margin: 2.75rem auto 0; width: fit-content; max-width: 100%;
  display: flex; gap: 2.25rem; flex-wrap: wrap; justify-content: center;
  padding: 1rem 2rem; background: rgba(11,15,22,.6); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
}
.ab-step { text-align: center; }
.ab-step i { font-size: 1.7rem; }
.ab-step .lbl { font-size: 14px; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .08em; margin-top: .15rem; }
@media (max-width: 576px) {
  .ab-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; width: 100%; padding: .9rem .5rem; }
  .ab-step .lbl { font-size: 12px; letter-spacing: .03em; }
}

/* floating cards beside the hero copy (wide screens only; decorative) */
.ab-float { position: absolute; z-index: 2; display: none; width: 260px;
  background: rgba(20,24,32,.88); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px; padding: 14px 16px; box-shadow: 0 20px 50px rgba(0,0,0,.45); text-align: left; }
@media (min-width: 1300px) { .ab-float { display: block; } }
.ab-float.f1 { left: 4vw; top: 26%; animation: abFloat 7s ease-in-out infinite; }
.ab-float.f2 { right: 4vw; top: 20%; animation: abFloat 8s ease-in-out infinite; animation-delay: -3s; }
.ab-float.f3 { right: 6vw; top: 54%; animation: abFloat 9s ease-in-out infinite; animation-delay: -5s; }
.ab-float.f4 { left: 6vw; top: 58%; animation: abFloat 8.5s ease-in-out infinite; animation-delay: -2s; }
@keyframes abFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.ab-float .t { color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: .45rem; }
.ab-float .t i { font-size: 1.25rem; }
.ab-float .s { color: var(--ab-a3); font-size: 14px; margin-top: 4px; }
.ab-float .m { color: var(--ab-mute); font-size: 13px; margin-top: 2px; }
.ab-chiprow { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .55rem; }
.ab-chip { padding: .12rem .5rem; border-radius: 7px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.ab-chip.on { background: var(--ab-a1); border-color: var(--ab-a1); }
.ab-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.08); margin-top: .55rem; overflow: hidden; }
.ab-bar span { display: block; height: 100%; width: 38%; border-radius: 4px; background: linear-gradient(90deg, #a16207, #fbbf24); animation: abBar 6s ease-in-out infinite alternate; }
@keyframes abBar { from { width: 26%; } to { width: 52%; } }

/* ── SECTIONS ── */
.ab-section { position: relative; padding: 6.5rem 0; }
.ab-section-eyebrow { display: inline-block; color: var(--ab-a3); font-size: 14px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 1rem; }
.ab-section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; margin: 0 0 1.25rem; letter-spacing: -0.02em; color: #fff; }
.ab-sub-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; line-height: 1.15; letter-spacing: -0.01em; margin: .35rem 0 1rem; }
.ab-section-lede { font-size: 17px; color: var(--ab-mute); line-height: 1.7; max-width: 780px; }
.ab-section-lede strong, .ab-copy strong { color: #fff; }
.ab-copy p { font-size: 16px; color: var(--ab-mute); line-height: 1.7; }
.ab-copy ul { color: var(--ab-mute); font-size: 15.5px; line-height: 1.7; padding-left: 1.1rem; }
.ab-copy ul strong { color: #fff; }
.ab-center { text-align: center; }
.ab-center .ab-section-lede { margin-left: auto; margin-right: auto; }

.ab-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.ab-split.wide-media { grid-template-columns: 5fr 7fr; }
.ab-split.wide-media.flip { grid-template-columns: 7fr 5fr; }
@media (max-width: 960px) { .ab-split, .ab-split.wide-media, .ab-split.wide-media.flip { grid-template-columns: 1fr; gap: 2.5rem; } .ab-split .ab-media-first { order: -1; } }
.ab-split > *, .ab-follow > *, .ab-pair > * { min-width: 0; }

.ab-warm { background: var(--ab-bg-warm); }
.ab-warm.alt { background: linear-gradient(180deg, var(--ab-bg-warm) 0%, var(--ab-bg-deep) 100%); }
.ab-deep { background: linear-gradient(180deg, var(--ab-bg-deep) 0%, var(--ab-bg-warm) 100%); }

.ab-shot {
  display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid rgba(255,255,255,.12);
  background: #0b0f14; box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 6px rgba(255,255,255,.03);
  transition: transform .3s ease;
}
.ab-shot:hover { transform: translateY(-4px); }
.ab-shot.crop { max-width: 400px; margin: 0 auto; }
.ab-shot.narrow { max-width: 320px; margin: 0 auto; }
.ab-caption { font-size: 14px; color: var(--ab-mute); margin-top: .85rem; line-height: 1.5; text-align: center; }
.ab-wide { margin-top: 2.5rem; }
.ab-block { margin-top: 6rem; }
@media (max-width: 960px) { .ab-block { margin-top: 4rem; } }
.ab-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 600px) { .ab-pair { grid-template-columns: 1fr; } }
.ab-follow { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: center; margin-top: 2.5rem; }
@media (max-width: 960px) { .ab-follow { grid-template-columns: 1fr; } }
/* Roadbook Planner "One link, your rules.": copy and Active links on the left, the share form on the right (#2788) */
.ab-share { display: grid; grid-template-columns: 1fr 400px; grid-template-areas: "copy form" "links form";
  grid-template-rows: auto 1fr; column-gap: 3rem; row-gap: 1.75rem; margin-top: 3.5rem; }
.ab-share > * { min-width: 0; }
.ab-share-copy { grid-area: copy; align-self: end; }
.ab-share-form { grid-area: form; }
.ab-share-links { grid-area: links; max-width: 460px; }
@media (max-width: 960px) {
  .ab-share { grid-template-columns: 1fr; grid-template-areas: "copy" "form" "links"; grid-template-rows: none; margin-top: 2.5rem; }
  .ab-share-form, .ab-share-links { max-width: 420px; width: 100%; margin: 0 auto; }
}

/* profile groups (Trip Planner) and waypoint types (Roadbook Planner) */
.ab-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
@media (max-width: 960px) { .ab-groups { grid-template-columns: 1fr; } }
.ab-group { border-radius: 18px; padding: 1.4rem 1.5rem; border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(160deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.015) 100%); }
.ab-group h4 { display: flex; align-items: center; gap: .55rem; color: #fff; font-size: 1.15rem; font-weight: 800; margin: 0 0 .35rem; }
.ab-group h4 i { font-size: 1.4rem; }
.ab-group p { color: var(--ab-mute); font-size: 15px; line-height: 1.55; margin: 0 0 .9rem; }
.ab-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.ab-pill { padding: .32rem .75rem; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: #fff; border: 1.5px solid var(--pc, rgba(255,255,255,.28)); background: color-mix(in srgb, var(--pc, #fff) 14%, transparent); }

.ab-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
@media (max-width: 960px) { .ab-feat { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ab-feat { grid-template-columns: 1fr; } }
.ab-feat > div { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 1.1rem 1.25rem; color: var(--ab-mute); font-size: 15px; line-height: 1.55; }
.ab-feat > div strong { display: flex; align-items: center; gap: .45rem; color: #fff; font-size: 1.02rem; margin-bottom: .3rem; }
.ab-feat > div strong i { color: var(--ab-a3); font-size: 1.25rem; }

.ab-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; position: relative; }
@media (max-width: 960px) { .ab-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ab-card-grid { grid-template-columns: 1fr; } }
.ab-card {
  background: linear-gradient(160deg, color-mix(in srgb, var(--ab-a1) 9%, transparent) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 1.6rem;
  transition: transform .2s ease, border-color .2s ease;
}
.ab-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ab-a1) 55%, transparent); }
.ab-card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 1rem; background: linear-gradient(135deg, var(--ab-a1) 0%, var(--ab-a2) 100%);
  box-shadow: 0 8px 20px var(--ab-glow);
}
.ab-card-icon.cyan { background: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%); box-shadow: 0 8px 20px rgba(56,189,248,.22); }
.ab-card-icon.gold { background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%); box-shadow: 0 8px 20px rgba(251,191,36,.22); }
.ab-card-icon.violet { background: linear-gradient(135deg, #a855f7 0%, #6d28d9 100%); box-shadow: 0 8px 20px rgba(168,85,247,.22); }
.ab-card-icon.green { background: linear-gradient(135deg, #36c2a0 0%, #047857 100%); box-shadow: 0 8px 20px rgba(54,194,160,.22); }
.ab-card-icon.red { background: linear-gradient(135deg, #ff6a5c 0%, #dc2626 100%); box-shadow: 0 8px 20px rgba(220,38,38,.22); }
.ab-card-icon i { font-size: 1.5rem; }
.ab-card h4 { font-size: 1.12rem; font-weight: 700; color: #fff; margin: 0 0 .5rem; }
.ab-card p { font-size: 15px; color: var(--ab-mute); line-height: 1.6; margin: 0; }

/* plan → save → ride: the timeline */
.ab-timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.ab-timeline::before { content: ''; position: absolute; left: 6%; right: 6%; top: 27px; height: 3px; background: rgba(255,255,255,.08); border-radius: 3px; }
.ab-timeline::after { content: ''; position: absolute; left: 6%; top: 27px; height: 3px; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--ab-a1), var(--ab-a3)); transition: width 2.2s ease .2s; }
.ab-timeline.is-visible::after { width: 88%; }
.ab-tl { text-align: center; position: relative; }
.ab-tl .dot { width: 56px; height: 56px; margin: 0 auto .9rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #161d2a; border: 2px solid color-mix(in srgb, var(--ab-a1) 55%, transparent); color: #fff; font-size: 1.45rem; position: relative; z-index: 1; }
.ab-tl .when { color: var(--ab-a3); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ab-tl h5 { color: #fff; font-size: 1.02rem; font-weight: 700; margin: .25rem 0 .35rem; }
.ab-tl p { color: var(--ab-mute); font-size: 14px; line-height: 1.55; margin: 0; }
@media (max-width: 960px) {
  .ab-timeline { grid-template-columns: 1fr; gap: 1.4rem; }
  .ab-timeline::before, .ab-timeline::after { display: none; }
  .ab-tl { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; text-align: left; align-items: start; }
  .ab-tl .dot { margin: 0; }
}

/* Community Ways: an animated sketch (lines that get thicker the more riders take them) */
.ab-ways { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid rgba(255,255,255,.12);
  background: radial-gradient(ellipse at 40% 40%, #12223a 0%, #0b0f16 80%); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.ab-ways .w { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ab-ways .w-road { stroke: rgba(255,255,255,.16); stroke-width: 3; }
.ab-ways .w-cw { stroke: #22d3ee; opacity: .85; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.ab-ways.is-visible .w-cw { animation: abWay 2.4s ease-out forwards; }
.ab-ways.is-visible .w-cw.c2 { animation-delay: .5s; } .ab-ways.is-visible .w-cw.c3 { animation-delay: 1s; }
@keyframes abWay { to { stroke-dashoffset: 0; } }
.ab-ways .w-me { stroke: #4f8df5; stroke-width: 4; stroke-dasharray: 10 8; animation: abMarch 1.4s linear infinite; }
@keyframes abMarch { to { stroke-dashoffset: -36; } }
.ab-ways text { fill: rgba(255,255,255,.7); font: 600 13px system-ui, sans-serif; }

.ab-warn { margin: 2rem auto 0; max-width: 900px; padding: 1.1rem 1.4rem; border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--ab-a3) 45%, transparent); background: color-mix(in srgb, var(--ab-a3) 8%, transparent);
  color: #e5e7eb; font-size: 15px; line-height: 1.6; }
.ab-warn strong { color: #fff; }

.ab-ticks { list-style: none; padding: 0; margin: 2rem auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; max-width: 980px; text-align: left; }
.ab-ticks li { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 1.1rem 1.25rem; color: var(--ab-mute); font-size: 15px; line-height: 1.55; }
.ab-ticks li strong { display: block; color: #fff; font-size: 1.02rem; margin-bottom: .25rem; }
.ab-ticks li i { color: var(--ab-a3); margin-right: .35rem; }
.ab-needs { background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--ab-a3) 12%, transparent) 0%, transparent 60%), var(--ab-bg-deep); }

.ab-final { background: var(--ab-bg-warm); text-align: center; }
.ab-final .ab-section-title { margin-bottom: .8rem; }

/* ── ABOUT INDEX: the page cards ── */
.ab-since { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .1rem .55rem; margin-top: 1.4rem; color: rgba(255,255,255,.75); font-size: 16px; }
@media (max-width: 576px) { .ab-since { flex-direction: column; align-items: center; } }
.ab-since b { font-size: 2rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.ab-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
@media (max-width: 1100px) { .ab-index-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ab-index-grid { grid-template-columns: 1fr; } }
.ab-tile {
  --tc: #4f8df5; --tc2: #2563eb;
  position: relative; display: flex; flex-direction: column; min-height: 100%; overflow: hidden; isolation: isolate;
  border-radius: 22px; padding: 1.7rem 1.6rem 1.4rem; text-decoration: none; color: var(--ab-text);
  background: linear-gradient(165deg, color-mix(in srgb, var(--tc) 13%, #121823) 0%, #10151e 70%);
  border: 1px solid rgba(255,255,255,.09);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s ease, box-shadow .35s ease;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
}
.ab-tile::before {   /* the glow that follows the pointer */
  content: ''; position: absolute; inset: -1px; z-index: -1; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--tc) 30%, transparent), transparent 55%);
}
.ab-tile:hover, .ab-tile:focus-visible { --ty: -6px; border-color: color-mix(in srgb, var(--tc) 60%, transparent); box-shadow: 0 26px 60px rgba(0,0,0,.45), 0 0 0 1px color-mix(in srgb, var(--tc) 30%, transparent); color: var(--ab-text); }
.ab-tile:hover::before, .ab-tile:focus-visible::before { opacity: 1; }
.ab-tile .ic {
  width: 58px; height: 58px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.15rem;
  color: #fff; font-size: 1.7rem; background: linear-gradient(135deg, var(--tc) 0%, var(--tc2) 100%);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--tc) 35%, transparent);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.ab-tile:hover .ic { transform: scale(1.08) rotate(-4deg); }
.ab-tile .kick { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--tc) 75%, #fff); }
.ab-tile h3 { font-size: 1.45rem; font-weight: 800; color: #fff; margin: .25rem 0 .55rem; letter-spacing: -0.01em; }
.ab-tile p { font-size: 15px; color: var(--ab-mute); line-height: 1.6; margin: 0 0 1.1rem; flex: 1; }
.ab-tile .go { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: 14.5px; color: #fff; }
.ab-tile .go i { transition: transform .25s ease; }
.ab-tile:hover .go i { transform: translateX(5px); }
.ab-tile .art { position: absolute; right: -18px; top: -18px; width: 150px; height: 150px; opacity: .16; z-index: -1; color: var(--tc); transition: opacity .3s ease, transform .6s ease; }
.ab-tile:hover .art { opacity: .3; transform: rotate(8deg) scale(1.05); }
.ab-tile.featured { grid-column: span 2; }
@media (max-width: 640px) { .ab-tile.featured { grid-column: auto; } }
.ab-tile.new .kick::after { content: 'New'; margin-left: .5rem; padding: .05rem .45rem; border-radius: 6px; background: var(--tc); color: #fff; letter-spacing: .06em; font-size: 11px; }

/* reference cards (John, 2026-11-20): the DMD2 app and DMD Navigation's hardware on dmdnavigation.com.
   One full-width row under the page cards: a gradient frame, the product beside the text, an outside-link badge. */
.ab-ref-row { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: .6rem; }
@media (max-width: 1100px) { .ab-ref-row { grid-template-columns: 1fr; } }
.ab-tile.ab-ref {
  flex-direction: row; align-items: center; gap: 1.1rem; min-height: 270px; padding: 1.7rem 1.4rem 1.6rem 1.7rem;
  border: 1.5px solid transparent;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--tc) 20%, #121823) 0%, #0e131b 72%) padding-box,
    linear-gradient(130deg, color-mix(in srgb, var(--tc) 85%, transparent) 0%, rgba(255,255,255,.07) 45%, color-mix(in srgb, var(--tc2) 70%, transparent) 100%) border-box;
}
.ab-tile.ab-ref:hover, .ab-tile.ab-ref:focus-visible { border-color: transparent; }
.ab-ref .txt { flex: 1 1 56%; min-width: 0; align-self: stretch; display: flex; flex-direction: column; }
.ab-ref .ext {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .9rem; padding: .22rem .65rem;
  border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #fff;
  background: color-mix(in srgb, var(--tc) 28%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent);
}
.ab-ref h3 { font-size: 1.7rem; }
.ab-ref .pic { flex: 0 0 44%; display: flex; align-items: center; justify-content: center; position: relative; }
.ab-ref .pic::before {   /* a soft halo behind the product */
  content: ''; position: absolute; inset: 8% 4%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tc) 38%, transparent), transparent);
}
.ab-ref .pic img { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 28px rgba(0,0,0,.55)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.ab-ref:hover .pic img { transform: translateY(-5px) scale(1.04); }
@media (max-width: 560px) {
  .ab-tile.ab-ref { flex-direction: column; align-items: stretch; padding: 1.5rem 1.4rem 1.4rem; }
  .ab-ref .pic { order: -1; flex: none; width: 100%; max-width: 320px; margin: 0 auto .4rem; }
}

/* the stats ribbon on the index */
.ab-ribbon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
@media (max-width: 760px) { .ab-ribbon { grid-template-columns: repeat(2, 1fr); } }
.ab-ribbon > div { text-align: center; padding: 1.2rem .8rem; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.ab-ribbon b { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.ab-ribbon span { color: var(--ab-mute); font-size: 14px; }

/* ── reveal on scroll (as /mission/) ── */
.ab-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.ab-reveal.is-visible { opacity: 1; transform: translateY(0); }
.ab-reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.ab-reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.ab-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
.ab-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.ab-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .24s; }
.ab-reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .32s; }
.ab-reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .40s; }
.ab-reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .48s; }
.ab-reveal-stagger.is-visible > *:nth-child(8) { transition-delay: .56s; }
/* once revealed (the script adds .is-settled after the stagger), hovers react at once */
.ab-reveal-stagger.is-settled > * { transition-delay: 0s !important; }
.ab-reveal-stagger.is-settled > .ab-card { transition: transform .2s ease, border-color .2s ease; }
.ab-reveal-stagger.is-settled > .ab-tile { transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s ease, box-shadow .35s ease; }
/* tiles keep their own transform once revealed (tilt + lift) */
.ab-index-grid.ab-reveal-stagger.is-visible > .ab-tile { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); }

@media (prefers-reduced-motion: reduce) {
  .ab-contours, .ab-halo, .ab-float, .ab-eyebrow .dot, .ab-bar span, .ab-ways .w-me { animation: none !important; }
  .ab-draw { animation: none !important; stroke-dashoffset: 0 !important; }
  .ab-pop { animation: none !important; transform: none !important; }
  .ab-ways .w-cw { animation: none !important; stroke-dashoffset: 0 !important; }
  .ab-reveal, .ab-reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ab-timeline::after { transition: none !important; width: 88% !important; }
  .ab-tile { transform: none !important; }
}
