/* Insight articles (insights/*.html): long-form reading layout.
   Cover photo, byline, "The short version", a sticky table of contents, calm body text, small diagrams between sections,
   an author card and more articles to read. Dark, like the rest of the page. */

.ax { --ax-text: #d4d4da; --ax-muted: #9ea0a8; --ax-line: rgba(255, 255, 255, 0.14); --ax-card: rgba(255, 255, 255, 0.045); counter-reset: fig; }

/* reading progress */
.ax-progress { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.ax-progress i { display: block; height: 100%; background: var(--accent, #FF9A3D); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- top of the article: a full-width cover with the title on it ---------- */
.ax-hero { position: relative; display: flex; align-items: flex-end; min-height: min(92vh, 820px); overflow: hidden; isolation: isolate; }
.ax-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.ax-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 5, 5, 0.6) 0%, rgba(5, 5, 5, 0.2) 30%, rgba(5, 5, 5, 0.72) 70%, #050505 100%), linear-gradient(90deg, rgba(5, 5, 5, 0.75), rgba(5, 5, 5, 0.1) 60%); }
.ax-hero__in { width: min(1480px, 100% - 2 * clamp(20px, 5vw, 72px)); margin: 0 auto; padding: clamp(110px, 16vh, 150px) 0 clamp(2rem, 6vh, 4rem); }
.ax-hero .site-breadcrumb { margin-bottom: clamp(1.4rem, 3vh, 2.2rem); }
.ax-hero__cap { margin: 1rem 0 0; max-width: 40em; font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }.ax-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0 0 1.1rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ax-muted); }
.ax-kicker a { color: inherit; text-decoration: none; }
.ax-kicker a:hover { color: var(--accent); }
.ax-kicker b { padding: 0.3rem 0.8rem; border: 1px solid rgba(255, 154, 61, 0.5); border-radius: 999px; font-weight: 700; color: var(--accent, #FF9A3D); }
.ax-title { max-width: 16em; margin: 0; font-family: var(--display); font-size: clamp(2.4rem, 1rem + 5vw, 5.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; color: #fff; text-wrap: balance; }
.ax-title em { font-style: normal; color: var(--accent, #FF9A3D); }
.ax-standfirst { max-width: 42em; margin: clamp(1.1rem, 2.4vh, 1.7rem) 0 0; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); line-height: 1.6; color: #dcdce0; text-wrap: pretty; }
.ax-standfirst strong { color: #fff; font-weight: 600; }

.ax-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 2.4rem; margin-top: clamp(1.6rem, 3.4vh, 2.4rem); padding-block: 1.2rem; border-block: 1px solid var(--ax-line); }
.ax-who { display: flex; align-items: center; gap: 0.9rem; }
.ax-avatar { flex: none; width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; background: #222; border: 1px solid var(--ax-line); }
.ax-who b { display: block; font-size: 0.98rem; font-weight: 600; color: #fff; }
.ax-who b a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 154, 61, 0.5); }
.ax-who b a:hover { color: var(--accent); }
.ax-who span { font-size: 0.84rem; color: var(--ax-muted); }
.ax-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 0; }
.ax-meta div { display: grid; gap: 0.2rem; }
.ax-meta dt { font-size: 0.68rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent, #FF9A3D); }
.ax-meta dd { margin: 0; font-size: 0.95rem; color: #ececf0; }

.ax-photo figcaption, .ax-fig figcaption { margin-top: 0.7rem; font-size: 0.84rem; line-height: 1.5; color: var(--ax-muted); }

/* ---------- body ---------- */
.ax-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr) 330px; gap: clamp(2rem, 4vw, 4.5rem); align-items: start; width: min(1480px, 100% - 2 * clamp(20px, 5vw, 72px)); margin: clamp(2.4rem, 6vh, 4rem) auto clamp(3rem, 8vh, 6rem); }
.ax-toc { position: sticky; top: 110px; align-self: start; font-size: 0.9rem; }
.ax-toc__t { margin: 0 0 0.9rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ax-muted); }
.ax-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--ax-line); }
.ax-toc li a { display: block; margin-left: -1px; padding: 0.45rem 0 0.45rem 1rem; border-left: 2px solid transparent; line-height: 1.35; color: var(--ax-muted); text-decoration: none; transition: color 0.25s, border-color 0.25s; }
.ax-toc li a:hover { color: #fff; }
.ax-toc li a.is-on { color: #fff; border-left-color: var(--accent, #FF9A3D); }

.ax-body { min-width: 0; max-width: 860px; font-size: 1.14rem; line-height: 1.8; color: var(--ax-text); }
.ax-body > * + * { margin-top: 1.3rem; }
.ax-body p { margin: 0; }
.ax-body p + p { margin-top: 1.15rem; }
.ax-body strong { font-weight: 600; color: #fff; }
.ax-body a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 154, 61, 0.7); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 0.25s; }
.ax-body a:hover { color: var(--accent, #FF9A3D); }

.ax-short { padding: 1.4rem 1.6rem; border: 1px solid rgba(255, 154, 61, 0.35); border-left-width: 4px; border-radius: 14px; background: rgba(255, 154, 61, 0.06); }
.ax-short__t { margin: 0 0 0.7rem !important; font-size: 0.72rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent, #FF9A3D); }
.ax-short ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.ax-short li { position: relative; padding-left: 1.3rem; font-size: 1rem; line-height: 1.55; color: #e6e6ea; }
.ax-short li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent, #FF9A3D); }

.ax-sec { scroll-margin-top: 100px; }
.ax-sec > h2 { margin: clamp(2.4rem, 5vh, 3.4rem) 0 0; font-family: var(--display); font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.3rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.ax-sec > h2 + * { margin-top: 1rem; }
.ax-sec h3 { margin: 2rem 0 0; font-family: var(--display); font-size: 1.25rem; font-weight: 700; line-height: 1.25; color: #fff; }
.ax-sec h3 + p { margin-top: 0.4rem; }

.ax-list { margin: 1.2rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.ax-list li { position: relative; padding-left: 1.7rem; }
.ax-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.9rem; height: 0.5rem; border-left: 2px solid var(--accent, #FF9A3D); border-bottom: 2px solid var(--accent, #FF9A3D); transform: rotate(-45deg) scale(0.9); transform-origin: left bottom; }
.ax-list--no li::before { width: 0.8rem; height: 0; border-left: 0; border-bottom: 2px solid #c9564b; transform: none; top: 0.92em; }

.ax-steps { margin: 1.4rem 0 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 0; }
.ax-steps > li { position: relative; counter-increment: st; padding: 0 0 1.6rem 3.4rem; }
.ax-steps > li::before { content: counter(st); position: absolute; left: 0; top: 0.05rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1.5px solid var(--accent, #FF9A3D); font-size: 0.9rem; font-weight: 700; color: var(--accent, #FF9A3D); background: #0b0b0c; z-index: 1; }
.ax-steps > li::after { content: ""; position: absolute; left: 1.1rem; top: 2.4rem; bottom: 0.2rem; width: 1px; background: var(--ax-line); }
.ax-steps > li:last-child { padding-bottom: 0; }
.ax-steps > li:last-child::after { display: none; }
.ax-steps h3 { margin: 0 !important; font-size: 1.15rem; }
.ax-steps p { margin-top: 0.3rem !important; font-size: 1.02rem; line-height: 1.7; }

.ax-note { padding: 1.1rem 1.3rem; border-radius: 12px; background: var(--ax-card); border: 1px solid var(--ax-line); font-size: 1rem; line-height: 1.7; }

/* right-hand panel: the short version stays beside the text */
.ax-rail { position: sticky; top: 110px; display: grid; gap: 1rem; align-self: start; }
.ax-rail .ax-short { margin: 0; }
.ax-rail__cta { padding: 1.3rem 1.4rem; border-radius: 14px; background: var(--accent, #FF9A3D); color: #1a0c04; font-size: 0.95rem; line-height: 1.55; }
.ax-rail__cta b { display: block; margin-bottom: 0.3rem; font-family: var(--display); font-size: 1.3rem; line-height: 1.15; color: #1a0c04; }
.ax-rail__cta a { display: inline-block; margin-top: 0.8rem; padding: 0.6rem 1.1rem; border-radius: 999px; background: #1a0c04; color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; }

/* photo between sections */
.ax-photo { margin: 2.4rem -2rem !important; }
.ax-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: #17171a; }

/* ---------- diagrams ---------- */
.ax-fig { margin: 2.4rem 0 !important; padding: clamp(1rem, 2.4vw, 1.6rem); border: 1px solid var(--ax-line); border-radius: 16px; background: var(--ax-card); counter-increment: fig; }
.ax-fig figcaption::before { content: "Figure " counter(fig) ". "; font-weight: 700; color: #d8d8dc; }
.dg-title { margin: 0 0 1rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent, #FF9A3D); }
.dg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.dg-card { display: grid; gap: 0.35rem; align-content: start; padding: 1rem 1.1rem; border: 1px solid var(--ax-line); border-radius: 12px; background: rgba(0, 0, 0, 0.28); }
.dg-card b { font-family: var(--display); font-size: 1.2rem; font-weight: 800; color: #fff; }
.dg-card em { font-style: normal; font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent, #FF9A3D); }
.dg-card span { font-size: 0.9rem; line-height: 1.5; color: var(--ax-text); }
.dg-base { margin-top: 0.8rem; padding: 0.9rem 1.1rem; border-radius: 12px; background: rgba(255, 154, 61, 0.14); border: 1px solid rgba(255, 154, 61, 0.45); text-align: center; font-size: 0.95rem; font-weight: 600; color: #fff; }
.dg-flow { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.dg-flow li { position: relative; display: grid; gap: 0.3rem; align-content: start; padding: 0.9rem 1rem; border: 1px solid var(--ax-line); border-radius: 12px; background: rgba(0, 0, 0, 0.28); }
.dg-flow li:not(:last-child)::after { content: "\2192"; position: absolute; right: -0.62rem; top: 50%; z-index: 2; display: grid; place-items: center; width: 1.2rem; height: 1.2rem; transform: translateY(-50%); border-radius: 50%; background: #0b0b0c; border: 1px solid rgba(255, 154, 61, 0.6); font-size: 0.7rem; color: var(--accent, #FF9A3D); }
.dg-flow em { font-style: normal; font-size: 0.68rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent, #FF9A3D); }
.dg-flow b { font-size: 0.98rem; font-weight: 600; line-height: 1.3; color: #fff; }
.dg-flow span { font-size: 0.85rem; line-height: 1.45; color: var(--ax-muted); }
.dg-flow li.is-stop { border-color: rgba(255, 154, 61, 0.55); background: rgba(255, 154, 61, 0.08); }
.dg-versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.dg-versus > div { padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid var(--ax-line); background: rgba(0, 0, 0, 0.28); }
.dg-versus h4 { margin: 0 0 0.6rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #8fd19e; }
.dg-versus > div + div h4 { color: #e0877d; }
.dg-versus ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.dg-versus li { font-size: 0.92rem; line-height: 1.45; color: var(--ax-text); }
.dg-rows { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.dg-rows li { display: grid; grid-template-columns: 2rem minmax(0, 1.15fr) 1.2rem minmax(0, 1fr); gap: 0.7rem; align-items: center; padding: 0.8rem 1rem; border: 1px solid var(--ax-line); border-radius: 12px; background: rgba(0, 0, 0, 0.28); }
.dg-rows .n { font-weight: 800; color: var(--accent, #FF9A3D); }
.dg-rows q { font-style: italic; color: #fff; }
.dg-rows .a { color: var(--accent, #FF9A3D); text-align: center; }
.dg-rows span { font-size: 0.92rem; line-height: 1.4; color: var(--ax-text); }
.dg-rows small { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ax-muted); margin-bottom: 0.15rem; }
.dg-chat { display: grid; gap: 0.8rem; max-width: 34rem; margin-inline: auto; }
.dg-chat p { margin: 0 !important; padding: 0.8rem 1rem; border-radius: 14px; font-size: 0.95rem; line-height: 1.5; }
.dg-chat .q { justify-self: end; max-width: 85%; border-bottom-right-radius: 4px; background: rgba(255, 255, 255, 0.12); color: #fff; }
.dg-chat .r { justify-self: start; max-width: 92%; border-bottom-left-radius: 4px; background: rgba(255, 154, 61, 0.12); border: 1px solid rgba(255, 154, 61, 0.35); color: #f0f0f2; }
.dg-chat .r small { display: block; margin-top: 0.5rem; font-size: 0.74rem; letter-spacing: 0.5px; color: var(--ax-muted); }
.dg-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; justify-items: center; }
.dg-phone { width: min(100%, 210px); padding: 0.7rem; border: 2px solid rgba(255, 255, 255, 0.28); border-radius: 26px; background: #101012; }
.dg-phone > div { display: grid; gap: 0.5rem; min-height: 15.5rem; align-content: start; padding: 0.9rem 0.8rem; border-radius: 16px; background: #1a1a1d; }
.dg-phone h5 { margin: 0; font-size: 0.95rem; line-height: 1.2; color: #fff; }
.dg-phone p { margin: 0 !important; font-size: 0.74rem !important; line-height: 1.4 !important; color: #b9b9c0; }
.dg-phone .btn { display: block; padding: 0.5rem; border-radius: 999px; background: var(--accent, #FF9A3D); text-align: center; font-size: 0.72rem; font-weight: 700; color: #1a0c04; }
.dg-phone .btn.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); color: #ddd; }
.dg-phone .tag { font-size: 0.64rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.dg-phones > figure, .dg-phones > div.col { display: grid; gap: 0.7rem; justify-items: center; margin: 0; text-align: center; }
.dg-phones .lab { font-size: 0.78rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.dg-phones .lab.bad { color: #e0877d; }
.dg-phones .lab.good { color: #8fd19e; }
.dg-anatomy { display: grid; gap: 0.6rem; }
.dg-anatomy > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.9rem; align-items: center; padding: 0.7rem 0.9rem; border: 1px dashed rgba(255, 255, 255, 0.25); border-radius: 10px; background: rgba(0, 0, 0, 0.28); }
.dg-anatomy b { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent, #FF9A3D); }
.dg-anatomy span { font-size: 0.9rem; line-height: 1.45; color: var(--ax-text); }
.dg-anatomy .head { border-style: solid; background: rgba(255, 154, 61, 0.1); }
.dg-result { margin-top: 0.8rem; padding: 0.85rem 1rem; border-radius: 12px; background: rgba(143, 209, 158, 0.1); border: 1px solid rgba(143, 209, 158, 0.4); text-align: center; font-size: 0.95rem; font-weight: 600; color: #e6f5ea; }

/* ---------- end of the article ---------- */
.ax-author { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: start; margin-top: clamp(2.6rem, 6vh, 4rem) !important; padding: 1.5rem; border: 1px solid var(--ax-line); border-radius: 16px; background: var(--ax-card); }
.ax-author .ax-avatar { width: 4.2rem; height: 4.2rem; }
.ax-author h2 { margin: 0 !important; font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: #fff; }
.ax-author h2 + p { margin-top: 0.1rem !important; font-size: 0.85rem; color: var(--ax-muted); }
.ax-author p { font-size: 0.98rem; line-height: 1.65; }
.ax-author .ax-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.8rem; font-size: 0.9rem; }
.ax-more { margin-top: clamp(2.4rem, 5vh, 3.4rem) !important; }
.ax-more h2 { margin: 0 0 1.2rem !important; font-family: var(--display); font-size: 1.4rem; font-weight: 800; color: #fff; }
.ax-more__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ax-more a { display: grid; gap: 0.7rem; text-decoration: none !important; color: inherit !important; }
.ax-more img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #17171a; transition: transform 0.6s; }
.ax-more a:hover img { transform: scale(1.03); }
.ax-more .ph { overflow: hidden; border-radius: 12px; }
.ax-more small { font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent, #FF9A3D); }
.ax-more strong { display: block; margin-top: 0.2rem; font-family: var(--display); font-size: 1.1rem; line-height: 1.25; color: #fff; }
.ax-more a:hover strong { color: var(--accent, #FF9A3D); }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
    .ax-layout { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .ax-toc { position: static; order: 1; padding: 1rem 1.2rem; border: 1px solid var(--ax-line); border-radius: 12px; }
    .ax-toc ol { border-left: 0; }
    .ax-toc li a { padding-left: 0; border-left: 0; margin-left: 0; }
    .ax-toc li a.is-on { color: var(--accent, #FF9A3D); }
    .ax-rail { position: static; order: 2; }
    .ax-rail__cta { display: none; }
    .ax-body { order: 3; max-width: none; }
    .ax-photo { margin-inline: 0 !important; }
    .ax-hero { min-height: min(80vh, 700px); }
}@media (max-width: 680px) {
    .ax-body { font-size: 1.02rem; line-height: 1.75; }
    .dg-cards, .dg-versus { grid-template-columns: minmax(0, 1fr); }
    .dg-flow { grid-template-columns: minmax(0, 1fr); }
    .dg-flow li:not(:last-child)::after { content: "\2193"; right: auto; left: 50%; top: auto; bottom: -0.62rem; transform: translateX(-50%); }
    .dg-rows li { grid-template-columns: 1.6rem minmax(0, 1fr); }
    .dg-rows .a { display: none; }
    .dg-rows li > span { grid-column: 2; }
    .dg-anatomy > div { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
    .ax-more__grid { grid-template-columns: minmax(0, 1fr); }
    .ax-author { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .ax-progress i { transition: none; } }


/* sections are hosts for the glow and rising dots (js/ambient.js) */
.ax-sec { position: relative; isolation: isolate; }

/* diagram labels (were h4/h5, which skipped heading levels) */
.dg-versus .dg-h { margin: 0 0 0.6rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #8fd19e; }
.dg-versus > div + div .dg-h { color: #e0877d; }
.dg-phone .dg-t { display: block; margin: 0; font-size: 0.95rem; line-height: 1.2; color: #fff; }

/* tall pictures (a plan seen from above): keep the whole picture, centred, instead of cropping it to a wide strip */
.ax-photo--plan { text-align: center; }
.ax-photo--plan img { width: auto; height: auto; max-width: min(100%, 520px); max-height: 680px; aspect-ratio: auto; object-fit: contain; margin: 0 auto; }
.ax-photo--plan figcaption { text-align: center; }
