/* ASCII design shell for the expert pages, matching /license/experts (public/license/experts.html):
   the same theme tokens, the dot-field background (drawn by /experts/ascii-scene.js), the logo / toggle / vertical
   mono nav, home-page type and the glass footer. Hand-written; the page components live in /experts/experts.css. */
:root, [data-theme="light"] {
  --sans: "Inter", system-ui, sans-serif; --serif: "Instrument Serif", Georgia, serif; --mono: "Fragment Mono", ui-monospace, monospace;
  --bg: #ffffff; --surface: #f5f5f6; --ink: #0b0b0c; --ink-2: #4a4a50; --ink-3: #66666e; --line: #e6e6e9; --line-2: #d3d3d8; --line-strong: rgba(11,11,12,.18);
  --btn-bg: #0b0b0c; --btn-ink: #ffffff; --accent: #6d28d9; --glass: rgba(255,255,255,.72); --glass-edge: rgba(11,11,12,.08);
  --shadow: rgba(0,0,0,.06); --good: #0f8a55; --bad: #c42b2b; --pad: 3.125rem;
}
[data-theme="original"] {
  --bg: #09090b; --surface: #141416; --ink: #ffffff; --ink-2: #c4c4cc; --ink-3: #9a9aa2;
  --line: rgba(255,255,255,.1); --line-strong: rgba(255,255,255,.2); --btn-bg: #e11d48; --btn-ink: #ffffff; --accent: #ff2d55; --purple: #9b3dff;
  --glass: rgba(12,8,20,.5); --glass-edge: rgba(255,255,255,.1); --shadow: rgba(0,0,0,.5); --good: #7cf0c0; --bad: #ff8a8a;
}
[data-theme="dark"] {
  --bg: #0a0a0b; --surface: #141416; --ink: #f5f5f6; --ink-2: #b4b4bb; --ink-3: #96969e; --line: #26262b; --line-strong: rgba(245,245,246,.2);
  --btn-bg: #ffffff; --btn-ink: #0b0b0c; --accent: #a78bfa; --glass: rgba(20,20,22,.72); --glass-edge: rgba(255,255,255,.08);
  --shadow: rgba(0,0,0,.4); --good: #7cf0c0; --bad: #ff8a8a;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .3s, color .3s; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrapx { width: 100%; padding-left: var(--pad); padding-right: var(--pad); }

/* the dot field sits behind everything (canvas added by ascii-scene.js); without WebGL the themes get a soft wash */
#ax-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
body > header, body > main, body > footer { position: relative; z-index: 1; }
[data-theme="original"] body.no-gl { background: #09090b; }

/* header: logo left, theme toggle beside it, the vertical mono nav top right (as on /license/experts) */
.ax-top { display: grid; grid-template-columns: auto auto 1fr; align-items: start; gap: 1.25rem; padding: 2.5rem var(--pad) 1rem; }
.ax-logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; font-size: 22px; letter-spacing: -1px; text-decoration: none; color: var(--ink); line-height: 1.2; }
.ax-logo i { width: .7em; height: .7em; border-radius: 50%; background: var(--accent); }
[data-theme="original"] .ax-logo i { background: radial-gradient(circle at 35% 30%, #fff, #ff2d55 50%, #9b3dff); box-shadow: 0 0 14px rgba(255,45,85,.5); }
.ax-toggle { width: 40px; height: 40px; margin-top: -6px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .2s; }
.ax-toggle:hover { border-color: var(--ink-3); }
.ax-toggle svg { width: 18px; height: 18px; display: none; }
[data-theme="light"] .ax-toggle .sun, [data-theme="dark"] .ax-toggle .moon, [data-theme="original"] .ax-toggle .spark, :root:not([data-theme]) .ax-toggle .sun { display: block; }
[data-theme="original"] .ax-toggle .spark { color: #ff2d55; }
.ax-nav { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.ax-nav a { color: var(--ink); text-decoration: none; font: 400 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .5rem; transition: transform .2s ease, color .2s; white-space: nowrap; }
.ax-nav a .ar { font-size: 1.15rem; line-height: 1; }
.ax-nav a:hover { transform: translateX(-4px); color: var(--accent); }
.ax-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.ax-nav .ax-cta { margin-top: .35rem; color: var(--accent); }

/* type */
.ax-label { font: 400 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.ax-eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 6px 11px; border: 1px solid var(--line-2, rgba(128,128,128,.3)); border-radius: 999px; }
.ax-label { display: flex; justify-content: space-between; gap: 1rem; max-width: 20rem; }
h1 em, h2 em, h3 em { font-family: var(--sans); font-style: normal; font-weight: inherit; letter-spacing: inherit; color: var(--ink-mute); background: none; -webkit-text-fill-color: currentColor; padding-right: 0; }
.ax-line { height: 1px; background: var(--line-strong); border: 0; margin: 0; }
[data-theme="original"] .ax-line { background: linear-gradient(to right, #7a2dff, #b06bff, #9b3dff, #ff4f8a, #ff2d55); }

/* buttons: the ASCII pill */
.ax-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .9rem 2.2rem; border: 1px solid var(--ink); border-radius: 2.5rem; background: transparent; color: var(--ink); text-decoration: none; font: 500 14px var(--sans); letter-spacing: 1px; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .2s, transform .2s, color .2s, border-color .2s; text-align: center; }
.ax-btn:hover { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); transform: translateY(-2px); }
.ax-btn.ax-primary { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
[data-theme="original"] .ax-btn.ax-primary { background: #e11d48; border-color: #e11d48; color: #fff; }
.ax-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* glass footer */
.ax-foot { padding: 0 var(--pad) 2.5rem; margin-top: 4rem; }
.ax-foot-in { padding: 3rem; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 2rem; border: 1px solid var(--glass-edge); box-shadow: 0 8px 32px var(--shadow); }
.ax-foot-top { display: flex; justify-content: space-between; gap: 2rem; }
.ax-foot-left { max-width: 24rem; display: flex; flex-direction: column; gap: 1rem; }
.ax-foot-left h2 { margin: 0 0 .5rem; font-weight: 500; font-size: 24px; letter-spacing: -.02em; }
.ax-foot-left p { margin: 0; font-size: 14px; opacity: .7; line-height: 1.5; }
.ax-foot-left .ax-btn { align-self: flex-start; }
.ax-foot nav { display: flex; gap: 4.5rem; padding-right: 1rem; }
.ax-foot nav div { display: flex; flex-direction: column; gap: .85rem; }
.ax-foot nav b { font: 400 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .35rem; font-weight: 400; }
.ax-foot nav a { opacity: .7; text-decoration: none; font-size: 14px; transition: opacity .2s, color .2s; }
.ax-foot nav a:hover { opacity: 1; color: var(--accent); }
.ax-foot-legal { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 13px; opacity: .6; text-align: center; }

@media (max-width: 760px) {
  :root { --pad: 1.25rem; }
  .ax-top { grid-template-columns: auto 1fr; padding-top: 1.75rem; gap: .9rem; }
  .ax-toggle { grid-column: 1; grid-row: 2; width: 36px; height: 36px; margin-top: 0; }
  .ax-nav { grid-column: 2; grid-row: 1 / span 2; gap: .55rem; }
  .ax-nav a { font-size: 12px; }
  .ax-foot-in { padding: 1.5rem; border-radius: 1.5rem; }
  .ax-foot-top { flex-direction: column; }
  .ax-foot nav { gap: 2rem 2.5rem; flex-wrap: wrap; padding-right: 0; }
  .ax-foot-legal { margin-top: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Touch: give the stacked mono nav links a tap-sized hit area (they render about 14–18px tall otherwise). */
@media (pointer: coarse), (max-width: 760px) {
  .ax-nav { gap: 0; }
  .ax-nav a { min-height: 36px; }
  .ax-foot nav a { display: inline-block; padding: 7px 0; }
}

/* Logo: the home page chevron mark (marketing/site/BRAND_SPEC.md). */
a.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 500 20px/1 "Inter", system-ui, sans-serif; letter-spacing: -1px; color: var(--ink, #0b0b0c); }
a.brand .mark { width: 28px; height: 28px; border-radius: 9px; background: #0b0b0c; color: #ffffff; display: grid; place-items: center; flex: none; }
a.brand .mark svg { width: 16px; height: 16px; }
[data-theme="dark"] a.brand .mark { background: #ffffff; color: #0b0b0c; }
[data-theme="original"] a.brand .mark { background: linear-gradient(135deg, #ff2d55, #ff2d55 40%, #9b3dff); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); color: #ffffff; }
@media (max-width: 640px) { a.brand { font-size: 18px; gap: 9px; } a.brand .mark { width: 26px; height: 26px; } }

/* design language v2 (marketing/site/DESIGN_LANGUAGE.md): two-tone headlines; this page does not load /hd.css */
:root { --ink-mute: #6c7c86; }
:root[data-theme="dark"], :root[data-theme="original"] { --ink-mute: #7f8c95; }
.dl-mute, h1 .dl-mute, h2 .dl-mute, h3 .dl-mute { color: var(--ink-mute); font: inherit; letter-spacing: inherit; background: none; -webkit-text-fill-color: currentColor; padding-right: 0; }
