/* Page-level additions for askright.ai. Components live in components.css (from the design system). */
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; }
img { max-width: 100%; height: auto; }

/* Pages without a hero photo need less space under the text */
.ar-hero:not(:has(.ar-hero__photo)) .ar-hero__text { padding-bottom: var(--space-8); }

/* Checklist */
.ar-checks { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-4); }
.ar-checks li { position: relative; padding-left: 32px; font-size: 18px; line-height: 1.5; }
.ar-checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 8px; border-left: 3px solid var(--action); border-bottom: 3px solid var(--action); transform: rotate(-45deg); }
.ar-band--brand .ar-checks li::before { border-color: var(--band-accent); }

/* Contact details */
.ar-contact { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: var(--space-3) var(--space-5); }
.ar-contact dt { font: 600 13px/1.8 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--kicker); }
.ar-contact dd { margin: 0; line-height: 1.8; }
@media (max-width: 760px) { .ar-contact { grid-template-columns: 1fr; gap: var(--space-1); } .ar-contact dd { margin-bottom: var(--space-3); } }

/* Topic buttons on the contact page */
.ar-topics { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); justify-items: start; }

/* Logo mark (AR ligature, Light) beside the wordmark */
.ar-wordmark { display: inline-flex; align-items: center; gap: .4em; }
.ar-mark { width: 1.5em; height: 1.5em; flex: none; }

/* Name strip: organizations named as proof, one quiet line */
.ar-names { display: grid; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--rule); }
.ar-names ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.ar-names li { font: 600 17px/1.3 var(--font-display); color: var(--heading); }
.ar-band--brand .ar-names { border-top-color: rgba(255,255,255,.25); }
.ar-band--brand .ar-names li { color: var(--on-band); }

/* Talks list (Speaking) */
.ar-talks { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); }
.ar-talks li { display: grid; grid-template-columns: 5.5em 1fr; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--rule); }
.ar-talks time { font: 700 14px/1.5 var(--font-body); color: var(--kicker); font-variant-numeric: tabular-nums; }
.ar-talks b { color: var(--heading); }
.ar-talks--plain li { grid-template-columns: 1fr; gap: 2px; }
.ar-talks--plain li > span { color: var(--ink-muted); font-size: 15px; }

/* ---- Seneca case study ---- */
/* Banner: a field of people that switches on as ripples spread from one spark (drawn by seneca.js) */
.sx-hero { position: relative; overflow: hidden; background: #0c141a; color: var(--brand-sand); padding-block: clamp(80px, 11vw, 140px) clamp(72px, 9vw, 120px); padding-inline: var(--space-6); }
.sx-spread { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sx-hero__scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(12,20,26,.94) 0%, rgba(12,20,26,.78) 38%, rgba(12,20,26,.15) 70%, rgba(12,20,26,0) 100%); }
.sx-hero .ar-container { position: relative; z-index: 1; }
.sx-hero .ar-stack { max-width: 640px; }
.sx-hero .ar-kicker { color: var(--brand-sky); }
.sx-hero h1 { color: #fff; max-width: 15ch; font-size: clamp(38px, 6vw, 72px); line-height: 1.02; }
.sx-hero h1 em { font-style: normal; color: var(--brand-sky); }
.sx-hero .ar-lead { color: var(--brand-sand); max-width: 54ch; }
.sx-hero__note { font: 600 15px/1.4 var(--font-body); color: #F29A76; letter-spacing: .02em; }
@media (max-width: 760px) { .sx-hero__scrim { background: linear-gradient(180deg, rgba(12,20,26,.55) 0%, rgba(12,20,26,.9) 60%); } }

/* Numbers that count up */
.sx-proof { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sx-proof .ar-stat__n { font-size: clamp(38px, 4.2vw, 54px); }
.sx-proof .ar-stat { border-top-width: 4px; }

/* Timeline: filter chips, reveal on scroll */
.sx-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-chip { font: 600 15px/1 var(--font-body); padding: 10px 14px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.sx-chip[aria-pressed="true"] { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.sx-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sx-chip i { width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box; }
.sx-chip i.in { background: var(--brand-brick); }
.sx-chip i.out { background: var(--surface); border: 3px solid var(--heading); }
.sx-chip[aria-pressed="true"] i.out { border-color: var(--brand-sky); background: transparent; }
.sx-timeline { margin: 0; padding: 0; list-style: none; position: relative; display: grid; gap: var(--space-4); }
.sx-timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 7px; width: 2px; background: var(--rule); }
.sx-timeline[data-show="in"] li.out, .sx-timeline[data-show="out"] li.in { display: none; }
.sx-timeline li { position: relative; padding-left: 36px; display: grid; gap: 2px; transition: opacity .6s ease, transform .6s ease; }
.sx-timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; box-sizing: border-box; transition: transform .3s ease; }
.sx-timeline li:hover::before { transform: scale(1.35); }
.sx-timeline li.in::before { background: var(--brand-brick); }
.sx-timeline li.out::before { background: var(--surface); border: 3px solid var(--heading); }
.sx-timeline time { font: 700 13px/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--kicker); }
.sx-timeline b { font: 700 19px/1.3 var(--font-display); color: var(--heading); }
.sx-timeline p { font-size: 16px; line-height: 1.5; color: var(--ink-muted); max-width: 46ch; }
.sx-js .sx-timeline li.sx-wait { opacity: 0; transform: translateY(24px); }
@media (min-width: 900px) {
  .sx-timeline::before { left: 50%; margin-left: -1px; }
  .sx-timeline li { width: 50%; }
  .sx-timeline li.in { padding: 0 40px 0 0; text-align: right; justify-items: end; }
  .sx-timeline li.in::before { left: auto; right: -8px; }
  .sx-timeline li.out { margin-left: 50%; padding-left: 40px; }
  .sx-timeline li.out::before { left: -8px; }
  .sx-js .sx-timeline li.in.sx-wait { transform: translateX(-32px); }
  .sx-js .sx-timeline li.out.sx-wait { transform: translateX(32px); }
  .sx-timeline[data-show="in"] li.in, .sx-timeline[data-show="out"] li.out { width: 100%; margin-left: 0; padding: 0 0 0 36px; text-align: left; justify-items: start; }
  .sx-timeline[data-show="in"]::before, .sx-timeline[data-show="out"]::before { left: 7px; }
  .sx-timeline[data-show="in"] li::before, .sx-timeline[data-show="out"] li::before { left: 0; right: auto; }
}

/* Quote carousel */
.sx-voices { display: grid; gap: var(--space-4); justify-items: center; text-align: center; }
.sx-voices__stage { display: grid; width: 100%; max-width: 46ch; min-height: 9em; align-items: center; }
.sx-voices blockquote { margin: 0; transition: opacity .6s ease, transform .6s ease; }
.sx-voices blockquote p { font: 700 clamp(24px, 3.4vw, 38px)/1.2 var(--font-display); color: var(--heading); }
.sx-voices blockquote p::before { content: "\201C"; color: var(--brand-brick); }
.sx-voices blockquote p::after { content: "\201D"; color: var(--brand-brick); }
.sx-voices cite { display: block; margin-top: var(--space-3); font-style: normal; font-size: 14px; color: var(--ink-muted); }
.sx-js .sx-voices blockquote { grid-area: 1 / 1; }
.sx-js .sx-voices blockquote[aria-hidden="true"] { opacity: 0; transform: translateY(12px); pointer-events: none; }
.sx-dotsnav { display: flex; gap: 10px; }
.sx-dotsnav button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--brand-navy); background: transparent; padding: 0; cursor: pointer; }
.sx-dotsnav button[aria-current="true"] { background: var(--brand-brick); border-color: var(--brand-brick); }
.sx-dotsnav button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sx-dotsnav { display: none; }
.sx-js .sx-dotsnav { display: flex; }

/* Community: a network that grows from one seed node to hundreds */
.sx-cnet { width: 100%; max-width: 460px; height: auto; display: block; justify-self: center; overflow: visible; }
.sx-cnet .l line { stroke: rgba(134,186,216,.45); stroke-width: .8; }
.sx-cnet .n circle { fill: var(--brand-sky); transform-box: fill-box; transform-origin: center; }
.sx-cnet .n circle.seed { fill: #F29A76; }
.sx-cnet .n circle:hover { fill: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .sx-js .sx-cnet .n circle { transform: scale(0); }
  .sx-js .sx-cnet .l line { opacity: 0; }
  .sx-js .sx-cnet.is-in .n circle { animation: sx-pop .45s cubic-bezier(.3,1.6,.5,1) forwards; animation-delay: calc(var(--i) * 22ms); }
  .sx-js .sx-cnet.is-in .l line { animation: sx-show .4s ease forwards; animation-delay: calc(var(--i) * 22ms - 80ms); }
  .sx-js .sx-cnet.is-in .n circle.seed { animation: sx-pop .45s cubic-bezier(.3,1.6,.5,1) forwards, sx-glow 3s ease-in-out 8s infinite; }
}
@keyframes sx-pop { to { transform: scale(1); } }
@keyframes sx-show { to { opacity: 1; } }
@keyframes sx-glow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

/* Generic reveal for section heads */
.sx-js .sx-reveal.sx-wait { opacity: 0; transform: translateY(20px); }
.sx-reveal { transition: opacity .7s ease, transform .7s ease; }
@media (prefers-reduced-motion: reduce) { .sx-js .sx-wait { opacity: 1 !important; transform: none !important; } }


/* ---- Header: light/dark switch ---- */
.ar-header__end { display: flex; align-items: center; gap: var(--space-3); }
.ar-mode { width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--heading); cursor: pointer; }
.ar-mode:hover { border-color: var(--heading); }
.ar-mode[hidden] { display: none; }
.ar-mode:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ar-mode svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: opacity .25s, transform .35s; }
.ar-mode__sun { opacity: 0; transform: rotate(-60deg) scale(.6); }
[data-mode="dark"] .ar-mode__moon { opacity: 0; transform: rotate(60deg) scale(.6); }
[data-mode="dark"] .ar-mode__sun { opacity: 1; transform: none; }
[data-theme="night"] img { filter: brightness(.92); }
@media (max-width: 760px) { .ar-header__end { order: 2; } .ar-mode { width: 36px; height: 36px; } }

/* ---- Step player and tabs ([data-tabs], driven by site.js) ---- */
.ar-steps { display: grid; grid-template-columns: minmax(0, 17em) minmax(0, 1fr); gap: var(--space-6); align-items: stretch; }
.ar-steps [role="tablist"] { display: grid; gap: 6px; align-content: start; }
.ar-steps__tab { position: relative; text-align: left; display: grid; grid-template-columns: 2.2em 1fr; align-items: center; gap: 8px; padding: 16px 16px 16px 14px; background: transparent; border: 1px solid var(--rule); color: var(--heading); font: 700 20px/1.2 var(--font-display); cursor: pointer; overflow: hidden; }
.ar-steps__tab span { font: 700 14px/1 var(--font-body); color: var(--kicker); }
.ar-steps__tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--action); }
.ar-steps__tab[aria-selected="true"] { background: var(--surface); border-color: var(--heading); }
.ar-steps__tab[aria-selected="true"]::after { width: 100%; }
.ar-steps.is-playing .ar-steps__tab[aria-selected="true"]::after { width: 0; animation: ar-fill var(--dwell, 6s) linear forwards; }
@keyframes ar-fill { to { width: 100%; } }
.ar-steps__tab:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ar-steps__panel { position: relative; border-left: 3px solid var(--action); padding: var(--space-5) var(--space-6); display: grid; gap: var(--space-3); align-content: start; min-height: 16em; overflow: hidden; }
.ar-steps__panel[hidden] { display: none; }
.ar-steps__n { position: absolute; right: -0.04em; bottom: -0.24em; font: 700 clamp(120px, 18vw, 220px)/1 var(--font-display); color: var(--heading); opacity: .07; pointer-events: none; }
.ar-steps__panel h3 { font: 700 clamp(28px, 3.4vw, 40px)/1.1 var(--font-display); color: var(--heading); margin: 0; }
.ar-steps__panel p { max-width: 52ch; font-size: 18px; }
.ar-steps__panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; max-width: 52ch; }
.ar-steps__panel li { position: relative; padding-left: 22px; }
.ar-steps__panel li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--action); }
@media (prefers-reduced-motion: no-preference) { .ar-steps__panel:not([hidden]) > * { animation: ar-rise .5s ease-out both; } .ar-steps__panel:not([hidden]) > :nth-child(3) { animation-delay: .08s; } .ar-steps__panel:not([hidden]) > :nth-child(4) { animation-delay: .16s; } }
@keyframes ar-rise { from { opacity: 0; transform: translateY(14px); } }
.ar-band--brand .ar-steps__tab { border-color: rgba(255,255,255,.2); color: var(--on-band); }
.ar-band--brand .ar-steps__tab span { color: var(--band-accent); }
.ar-band--brand .ar-steps__tab[aria-selected="true"] { background: rgba(255,255,255,.08); border-color: var(--band-accent); }
.ar-band--brand .ar-steps__tab::after { background: var(--band-accent); }
.ar-band--brand .ar-steps__tab:focus-visible { outline-color: var(--focus-on-band); }
.ar-band--brand .ar-steps__panel { border-left-color: var(--band-accent); }
.ar-band--brand .ar-steps__panel h3 { color: #fff; }
.ar-band--brand .ar-steps__n { color: var(--band-accent); opacity: .14; }
.ar-band--brand .ar-steps__panel li::before { background: var(--band-accent); }
@media (max-width: 760px) {
  .ar-steps { grid-template-columns: 1fr; }
  .ar-steps [role="tablist"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ar-steps__tab { grid-template-columns: 1fr; font-size: 15px; padding: 10px 6px; text-align: center; }
  .ar-steps__panel { min-height: 0; padding: var(--space-4); }
}

/* Efficiency vs Opportunity: two contrasting tiles */
.ar-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--space-4); align-items: stretch; }
.ar-vs__tile { padding: var(--space-5); border: 1px solid rgba(255,255,255,.2); display: grid; gap: var(--space-2); align-content: start; }
.ar-vs__tile b { font: 700 clamp(26px, 3vw, 34px)/1.1 var(--font-display); color: #fff; }
.ar-vs__tile span { font: 700 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--band-accent); }
.ar-vs__tile--big { background: var(--band-action); border-color: var(--band-action); }
.ar-vs__tile--big span { color: #fff; }
.ar-vs__arrow { align-self: center; font: 700 28px/1 var(--font-display); color: var(--band-accent); }
@media (max-width: 760px) { .ar-vs { grid-template-columns: 1fr; } .ar-vs__arrow { justify-self: center; transform: rotate(90deg); } }

/* Case notes as tabs, each a three-step flow */
.ar-casetabs { display: grid; gap: var(--space-5); }
.ar-casetabs [role="tablist"] { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-casetabs [role="tab"] { font: 700 16px/1.2 var(--font-body); padding: 12px 18px; background: transparent; border: 1px solid var(--rule); color: var(--heading); cursor: pointer; text-align: left; }
.ar-casetabs [role="tab"] small { display: block; font: 600 12px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--kicker); margin-bottom: 4px; }
.ar-casetabs [role="tab"][aria-selected="true"] { background: var(--heading); border-color: var(--heading); color: var(--ground); }
.ar-casetabs [role="tab"][aria-selected="true"] small { color: var(--ground); opacity: .8; }
.ar-casetabs [role="tab"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ar-flow { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); counter-reset: flow; }
.ar-flow[hidden] { display: none; }
.ar-flow > li { position: relative; display: grid; gap: var(--space-2); align-content: start; padding: var(--space-5); background: var(--surface); border-top: 3px solid var(--rule); min-width: 0; }
.ar-flow > li:last-child { border-top-color: var(--action); }
.ar-flow > li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: calc(-1 * var(--space-5)); width: var(--space-5); height: 2px; background: var(--rule); }
.ar-flow h3 { font: 700 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--kicker); margin: 0; }
.ar-flow b { font: 700 20px/1.25 var(--font-display); color: var(--heading); }
.ar-flow p { font-size: 16px; line-height: 1.5; color: var(--ink-muted); }
@media (prefers-reduced-motion: no-preference) { .ar-flow:not([hidden]) > li { animation: ar-rise .5s ease-out both; } .ar-flow:not([hidden]) > li:nth-child(2) { animation-delay: .12s; } .ar-flow:not([hidden]) > li:nth-child(3) { animation-delay: .24s; } }
@media (max-width: 760px) { .ar-flow { grid-template-columns: 1fr; } .ar-flow > li:not(:last-child)::after { display: none; } }


/* Seneca: ripples outward, one ring per stage of the story (a [data-tabs] block) */
.sx-ripple { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; }
.sx-ripple__fig { display: grid; justify-items: center; gap: var(--space-2); }
.sx-rings { width: 100%; max-width: 440px; height: auto; display: block; overflow: visible; }
.sx-ring { fill: var(--heading); stroke: var(--rule); stroke-width: 1.5; cursor: pointer; transition: fill .3s, fill-opacity .3s; }
.sx-ring[style*="--k:3"] { fill-opacity: .05; } .sx-ring[style*="--k:2"] { fill-opacity: .09; } .sx-ring[style*="--k:1"] { fill-opacity: .13; } .sx-ring[style*="--k:0"] { fill-opacity: .18; }
.sx-ring:hover { fill-opacity: .26; }
.sx-ring[aria-selected="true"] { fill: var(--action); fill-opacity: .9; stroke: var(--action); }
.sx-ring:focus { outline: none; }
.sx-ring:focus-visible { stroke: var(--focus); stroke-width: 4; }
.sx-ring__lbl { font: 700 13px var(--font-body); letter-spacing: .08em; text-transform: uppercase; fill: var(--heading); pointer-events: none; transition: fill .3s; }
.sx-rings:has(#r1-t[aria-selected="true"]) .sx-ring__lbl:nth-child(1) { fill: #fff; }
.sx-rings:has(#r2-t[aria-selected="true"]) .sx-ring__lbl:nth-child(2) { fill: #fff; }
.sx-rings:has(#r3-t[aria-selected="true"]) .sx-ring__lbl:nth-child(3) { fill: #fff; }
.sx-rings:has(#r4-t[aria-selected="true"]) .sx-ring__lbl:nth-child(4) { fill: #fff; }

.sx-ring__wave { fill: none; stroke: var(--action); stroke-width: 2; opacity: 0; pointer-events: none; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) { .sx-ring__wave { animation: sx-ripple 4.5s ease-out infinite; } }
@keyframes sx-ripple { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(10); opacity: 0; } }
.sx-ripple__hint { color: var(--ink-muted); }
.sx-ring-panel { display: grid; gap: var(--space-3); border-left: 3px solid var(--action); padding-left: var(--space-5); min-height: 16em; align-content: start; }
.sx-ring-panel[hidden] { display: none; }
.sx-ring-panel h3 { font: 700 clamp(26px, 3vw, 36px)/1.12 var(--font-display); color: var(--heading); margin: 0; }
.sx-ring-panel p { font-size: 18px; max-width: 48ch; }
.sx-ring-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; max-width: 50ch; }
.sx-ring-panel li { position: relative; padding-left: 22px; }
.sx-ring-panel li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--action); }
@media (prefers-reduced-motion: no-preference) { .sx-ring-panel:not([hidden]) > * { animation: ar-rise .5s ease-out both; } .sx-ring-panel:not([hidden]) > :nth-child(3) { animation-delay: .08s; } .sx-ring-panel:not([hidden]) > :nth-child(4) { animation-delay: .16s; } }
@media (max-width: 760px) { .sx-ripple { grid-template-columns: 1fr; gap: var(--space-5); } .sx-ring-panel { min-height: 0; } }
