/* =====================================================================
   GRC Guide — design system (2026)
   Fraunces (display serif) + Inter (UI/body) · light & dark · bento layout
   ===================================================================== */

/* ---------- tokens ---------- */
:root {
  --bg: #f7f8fa; --bg-2: #eff2f6; --surface: #ffffff; --surface-2: #f3f6f9; --glass: rgba(255,255,255,.72);
  --text: #0f1a28; --muted: #556274; --faint: #8693a3;
  --border: #e3e8ee; --border-strong: #d3dae3;
  --brand: #0b1f33; --accent: #0c7a84; --accent-strong: #09656e; --accent-soft: #e4f3f4; --accent-text: #0a5c63;
  --violet: #5b5bd6; --on-accent: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15,26,40,.05);
  --shadow: 0 1px 2px rgba(15,26,40,.04), 0 8px 24px -8px rgba(15,26,40,.10);
  --shadow-lg: 0 2px 4px rgba(15,26,40,.04), 0 24px 48px -16px rgba(15,26,40,.18);
  --beginner: #2e7d32; --intermediate: #9a5a00; --advanced: #b3261e;
  --r-sm: 10px; --r: 16px; --r-lg: 22px;
  --serif: Fraunces, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1016; --bg-2: #0e151d; --surface: #111922; --surface-2: #16212c; --glass: rgba(14,21,29,.72);
    --text: #e6edf4; --muted: #9aa9b9; --faint: #6b7a8b;
    --border: #1e2a37; --border-strong: #2a3847;
    --brand: #f2f6fa; --accent: #3cc8d2; --accent-strong: #5fd6de; --accent-soft: #0f2c31; --accent-text: #8fe3e9;
    --violet: #8b8bff; --on-accent: #04252a;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -10px rgba(0,0,0,.5);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 28px 56px -18px rgba(0,0,0,.65);
    --beginner: #7bd389; --intermediate: #f3b55a; --advanced: #ff8a80; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1016; --bg-2: #0e151d; --surface: #111922; --surface-2: #16212c; --glass: rgba(14,21,29,.72);
  --text: #e6edf4; --muted: #9aa9b9; --faint: #6b7a8b;
  --border: #1e2a37; --border-strong: #2a3847;
  --brand: #f2f6fa; --accent: #3cc8d2; --accent-strong: #5fd6de; --accent-soft: #0f2c31; --accent-text: #8fe3e9;
  --violet: #8b8bff; --on-accent: #04252a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -10px rgba(0,0,0,.5);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 28px 56px -18px rgba(0,0,0,.65);
  --beginner: #7bd389; --intermediate: #f3b55a; --advanced: #ff8a80; color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 var(--sans); font-feature-settings: "cv11", "ss01"; background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: var(--accent-text); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
img, svg { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
em { font-style: italic; }

/* ---------- top bar (glass) ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--glass); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.topbar.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgba(15,26,40,.35); }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); }
.brand-text { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; letter-spacing: -.01em; }
.brand-text em { font-weight: 400; color: var(--accent-text); }
.logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff;
  background: linear-gradient(140deg, #0b1f33 0%, #0c7a84 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), var(--shadow-sm); }
.logo svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav { margin-left: auto; display: flex; gap: 2px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 14px; border-radius: 999px; font-weight: 500; font-size: .92rem; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.topbar-actions { display: flex; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; display: grid; place-items: center; transition: border-color .15s, transform .15s var(--ease); }
.icon-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; } :root[data-theme="dark"] .icon-btn .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-btn .sun { display: none; } :root:not([data-theme="light"]) .icon-btn .moon { display: block; } }
.menu-btn { display: none; }
.menu-btn path { transition: transform .25s var(--ease), opacity .2s; transform-origin: 12px 12px; }
.menu-open .menu-btn .l1 { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn .l2 { opacity: 0; }
.menu-open .menu-btn .l3 { transform: translateY(-5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 60% at 88% 8%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
    radial-gradient(38% 55% at 8% 18%, color-mix(in srgb, var(--violet) 16%, transparent), transparent 70%),
    radial-gradient(40% 50% at 55% 110%, color-mix(in srgb, #f0b35a 14%, transparent), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.hero-bg::after { content: ""; position: absolute; inset: 0; opacity: .32; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E"); }
.hero-bg::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .45;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 50% 30%, #000, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: center; }
.pill-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(8px);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.pill-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.hero h1 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 500; font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: 1.02;
  letter-spacing: -.03em; color: var(--brand); max-width: 760px; margin-bottom: 22px; }
.hero h1 .accent { display: inline-block; font-weight: 400; padding-right: .06em;
  background: linear-gradient(100deg, var(--accent) 10%, var(--violet) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.16rem; line-height: 1.7; color: var(--muted); max-width: 640px; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 36px; }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 0; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--r);
  background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(10px); width: fit-content; max-width: 100%; box-shadow: var(--shadow-sm); }
.stats li { padding: 12px 22px; border-right: 1px solid var(--border); }
.stats li:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.15; color: var(--brand); letter-spacing: -.01em; }
.stats span { font-size: .8rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-size: .95rem; font-weight: 600; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s, border-color .18s, background .18s, color .18s; }
.btn:hover { transform: translateY(-1px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--accent-strong); border-color: transparent; color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 18px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent-strong) 88%, #000); color: var(--on-accent); }
:root[data-theme="dark"] .btn.primary:hover { background: color-mix(in srgb, var(--accent-strong) 85%, #fff); }
.btn.ghost { background: color-mix(in srgb, var(--surface) 65%, transparent); backdrop-filter: blur(8px); }
.btn.small { padding: 8px 14px; font-size: .87rem; border-radius: 10px; }
.btn .arr, .text-link .arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover .arr, .text-link:hover .arr { transform: translateX(3px); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--accent-text); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- cards / sections ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.section { padding-top: 96px; }
.section-head { margin: 0 0 28px; max-width: 720px; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700; color: var(--accent); margin: 0 0 12px; }
.section-head h2 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -.025em; line-height: 1.08; color: var(--brand); margin: 0 0 10px; }
.section-head h2 em { font-weight: 400; color: var(--accent-text); }
.section-head p.muted { margin: 0; font-size: 1.04rem; }

.tile { padding: 28px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.tile h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; color: var(--brand); margin: 0 0 10px; }
.tile p { color: var(--muted); margin: 0 0 .8em; }
.tile-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.tile-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* bento: why this site */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile-why { grid-column: span 5; grid-row: span 2; position: relative; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, var(--surface)) 0%, var(--surface) 60%); }
.tile-why::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--violet) 14%, transparent), transparent 70%); pointer-events: none; }
.tile-matters { grid-column: span 7; }
.tile-how { grid-column: span 7; }
.ticks, .steps { margin: 0; padding-left: 0; list-style: none; color: var(--text); }
.ticks li { padding-left: 30px; position: relative; margin: 10px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 7px; height: 4px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg); }
.steps { counter-reset: s; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; color: var(--muted); }
.steps li { counter-increment: s; padding-left: 36px; position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--serif); font-style: italic; font-weight: 500;
  color: var(--accent-text); font-size: 1.05rem; }

/* bento: topics */
.topic-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.topic-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 20px; font: inherit; color: var(--text); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.topic-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.topic-tile .tile-ico { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 8px; }
.topic-tile .tile-ico svg { width: 18px; height: 18px; }
.tt-title { font-weight: 650; font-size: 1rem; line-height: 1.3; color: var(--brand); }
.tt-blurb { font-size: .86rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt-foot { margin-top: auto; padding-top: 8px; width: 100%; display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--faint); font-weight: 600; }
.tt-foot .arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease), color .2s; }
.topic-tile:hover .arr { transform: translateX(3px); color: var(--accent); }
.topic-tile.feature { grid-column: span 2; grid-row: span 2; padding: 28px; position: relative; overflow: hidden;
  background: linear-gradient(145deg, #0b1f33 0%, #0b4f5a 60%, #0c7a84 100%); border-color: transparent; color: #eaf6f7; }
.topic-tile.feature::after { content: ""; position: absolute; inset: auto -60px -90px auto; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,139,255,.35), transparent 70%); }
.topic-tile.feature .tile-ico { width: 48px; height: 48px; background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.18); }
.topic-tile.feature .tile-ico svg { width: 23px; height: 23px; }
.topic-tile.feature .tt-title { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; letter-spacing: -.02em; color: #fff; }
.topic-tile.feature .tt-blurb { font-size: 1rem; color: rgba(234,246,247,.8); -webkit-line-clamp: 4; max-width: 34ch; }
.topic-tile.feature .tt-foot { color: rgba(234,246,247,.75); font-size: .88rem; }
.topic-tile.feature:hover .arr { color: #fff; }

/* ---------- Q&A ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: sticky; top: 64px; z-index: 15;
  margin: 0 -12px; padding: 12px; border-radius: var(--r); background: var(--glass); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); }
.search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 0 14px; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; padding: 12px 0; min-width: 0; }
.search input::placeholder { color: var(--faint); }
.search kbd { font: 12px ui-monospace, monospace; color: var(--muted); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select { -webkit-appearance: none; appearance: none; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 11px 38px 11px 14px; box-shadow: var(--shadow-sm); cursor: pointer; }
select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar-actions .btn { box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 14px;
  font: inherit; font-size: .86rem; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .15s var(--ease); }
.chip:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.chip[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--bg); }
.chip .n { opacity: .6; margin-left: 6px; font-size: .78rem; font-variant-numeric: tabular-nums; }
.result-count { color: var(--muted); font-size: .88rem; margin: 6px 0 18px; }

.topic-group { margin: 0 0 36px; }
.topic-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.topic-head h3 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; letter-spacing: -.015em; color: var(--brand); margin: 0; }
.topic-head p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; flex-basis: 100%; }
.topic-dl { display: flex; gap: 6px; font-size: .78rem; }
.topic-dl a { text-decoration: none; border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; color: var(--muted); font-weight: 600; letter-spacing: .03em; transition: .15s; }
.topic-dl a:hover { color: var(--accent-text); border-color: var(--accent); background: var(--accent-soft); }

.qcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); margin: 0 0 10px; overflow: hidden;
  transition: border-color .2s, box-shadow .25s, transform .2s var(--ease); }
.qcard:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.qcard.open { box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.qbtn { width: 100%; display: flex; align-items: flex-start; gap: 14px; text-align: left; background: none; border: 0; color: var(--text);
  font: inherit; padding: 17px 20px; cursor: pointer; border-radius: var(--r); }
.qnum { flex: none; min-width: 38px; text-align: center; font-size: .74rem; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); border-radius: 8px; padding: 3px 7px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.qtext { flex: 1; font-weight: 600; font-size: 1.02rem; line-height: 1.5; }
.lvl { flex: none; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; margin-top: 2px; letter-spacing: .02em;
  color: var(--lc); background: color-mix(in srgb, var(--lc) 10%, transparent); border: 1px solid color-mix(in srgb, var(--lc) 28%, transparent); }
.lvl.Basic, .lvl.Beginner { --lc: var(--beginner); } .lvl.Intermediate { --lc: var(--intermediate); } .lvl.Advanced { --lc: var(--advanced); }
.badges { flex: none; display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.sc-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 3px 9px 3px 7px; margin-top: 2px; letter-spacing: .02em;
  color: var(--violet-text, var(--violet)); background: color-mix(in srgb, var(--violet) 10%, transparent); border: 1px solid color-mix(in srgb, var(--violet) 30%, transparent); }
.sc-badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.example { margin-top: 16px; background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--violet); border-radius: 14px; padding: 14px 16px; }
.example b { display: flex; align-items: center; gap: 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px; color: var(--violet-text, var(--violet)); }
.example b svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.example p { margin: 0; color: var(--text); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .92rem; font-weight: 600; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-sm); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.toggle:hover { border-color: var(--border-strong); }
.toggle[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: var(--on-accent); }
.toggle:focus-visible { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 22%, transparent); }
.chev { flex: none; width: 28px; height: 28px; padding: 5px; margin-top: -1px; border-radius: 50%; background: var(--surface-2); stroke: var(--muted); fill: none; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease), background .2s; }
.qcard.open .chev { transform: rotate(180deg); background: var(--accent-soft); stroke: var(--accent-text); }
.qbody { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .35s var(--ease), visibility 0s linear .35s; }
.qcard.open .qbody { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .35s var(--ease), visibility 0s; }
.qbody-inner { overflow: hidden; min-height: 0; }
.qpad { padding: 0 22px 22px 72px; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .3s var(--ease); }
.qcard.open .qpad { opacity: 1; transform: none; transition-delay: .05s; }
.qpad p { margin: 0 0 .75em; }
.qpad ul, .qpad ol { margin: 0 0 .85em; padding-left: 1.3em; }
.qpad li { margin: 5px 0; }
.qpad li::marker { color: var(--accent); }
.qpad li strong, .qpad li b { color: var(--brand); font-weight: 650; }
.why { margin-top: 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 14px; padding: 14px 16px; color: var(--accent-text); }
.why b { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px; }
.qactions { display: flex; gap: 8px; margin-top: 14px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid transparent; border-radius: 8px; color: var(--muted); font: inherit; font-size: .84rem; font-weight: 500; cursor: pointer; padding: 4px 8px; margin-left: -8px; transition: .15s; }
.link-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.link-btn:hover { color: var(--accent-text); background: var(--accent-soft); }
mark { background: color-mix(in srgb, #ffd54f 60%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.empty { text-align: center; padding: 48px; color: var(--muted); border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg); }

/* ---------- certifications / updates (data-driven, see app.js) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.feature-grid[hidden], .chips[hidden], .cert-detail[hidden], .toolbar[hidden] { display: none; }
.cert-chips { margin: 0 0 18px; }
.chip.sm { padding: 3px 11px; font-size: .78rem; }
.tag { display: inline-flex; align-items: center; font-size: .7rem; font-weight: 700; letter-spacing: .03em; border-radius: 999px; padding: 3px 9px; line-height: 1.3;
  color: var(--violet); background: color-mix(in srgb, var(--violet) 10%, transparent); border: 1px solid color-mix(in srgb, var(--violet) 26%, transparent); white-space: nowrap; }
.tag.soft { color: var(--muted); background: var(--surface-2); border-color: var(--border); }
.tag.ok { color: var(--beginner); background: color-mix(in srgb, var(--beginner) 10%, transparent); border-color: color-mix(in srgb, var(--beginner) 28%, transparent); }
.tag.up { color: var(--accent-text); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.tag.live { color: #fff; background: var(--accent-strong); border-color: transparent; }
:root[data-theme="dark"] .tag.live { color: var(--on-accent); }
.tag.draft { color: var(--intermediate); background: color-mix(in srgb, var(--intermediate) 10%, transparent); border-color: color-mix(in srgb, var(--intermediate) 28%, transparent); }
.tag.past { color: var(--faint); background: transparent; border-color: var(--border-strong); }
.ct-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.cert-tile { display: flex; flex-direction: column; gap: 6px; padding: 22px; text-decoration: none; color: var(--text); }
.cert-tile:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.ct-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.ct-top .ct-tags { justify-content: flex-end; }
.cert-tile .cert-badge { width: auto; min-width: 46px; height: 46px; padding: 0 10px; border-radius: 13px; font-size: .74rem; }
.cert-tile h3 { font-size: 1.12rem; line-height: 1.3; margin: 0; }
.cert-tile .tl-org { margin: 0; font-size: .84rem; }
.ct-who { color: var(--muted); font-size: .88rem; line-height: 1.55; margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cert-tile .tt-foot { padding-top: 14px; }
.cert-tile:hover .arr { transform: translateX(3px); color: var(--accent); }

.cd-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.btn .ext, a .ext { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-left: 4px; vertical-align: -1px; flex: none; }
.btn .arr.back { width: 16px; height: 16px; }
.cd-hero { display: flex; gap: 22px; align-items: flex-start; padding: 28px 30px; margin-bottom: 16px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 10%, var(--surface)) 0%, color-mix(in srgb, var(--violet) 6%, var(--surface)) 100%); }
.cd-hero h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -.02em; line-height: 1.12; color: var(--brand); margin: 0 0 12px; text-wrap: balance; }
.cd-hero .eyebrow { margin-bottom: 8px; }
.cd-who { color: var(--muted); margin: 14px 0 0; max-width: 75ch; }
.cert-badge.lg { width: auto; min-width: 64px; height: 64px; padding: 0 12px; border-radius: 18px; font-size: .9rem; }
.cd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cd-block { padding: 24px 26px; min-width: 0; overflow-wrap: break-word; }
.week > div { min-width: 0; overflow-wrap: anywhere; }
.feed-body { min-width: 0; overflow-wrap: break-word; }
.cd-block.wide { grid-column: 1 / -1; }
.cd-block h3 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; color: var(--brand); margin: 0 0 14px; }
.cd-block h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 18px 0 8px; }
.h-meta { font-family: var(--sans); font-size: .82rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.fact { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.fact:last-child { border-bottom: 0; }
.fact dt { font-size: .82rem; font-weight: 650; color: var(--muted); }
.fact dd { margin: 0; font-size: .92rem; }
.facts.one .fact { grid-template-columns: 1fr; gap: 2px; }
a.official { font-weight: 600; }
.callout { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-size: .9rem; color: var(--text);
  background: color-mix(in srgb, var(--violet) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--violet) 20%, transparent); }
.small { font-size: .84rem; }
.domains { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dom-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: .92rem; }
.dom-w { flex: none; font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.dom-w .was { font-weight: 500; color: var(--faint); font-size: .78rem; margin-left: 6px; }
.dom-bar { display: block; height: 6px; border-radius: 6px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.dom-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--violet)); }
.up-outline { margin-top: 10px; padding-top: 4px; }
.cd-block .ticks li, .cd-block .crosses li { font-size: .92rem; }
.ticks li, .crosses li { position: relative; padding-left: 30px; margin: 0 0 10px; }
.crosses { margin: 0; padding: 0; list-style: none; }
.crosses li::before { content: "!"; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800;
  color: var(--advanced); background: color-mix(in srgb, var(--advanced) 10%, transparent); border: 1px solid color-mix(in srgb, var(--advanced) 28%, transparent); }
.plain { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .9rem; }
.plain li { margin: 3px 0; }
.plain li::marker { color: var(--accent); }
.weeks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.week { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.week .wk { flex: none; font-size: .72rem; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); border-radius: 8px; padding: 3px 8px; height: fit-content; white-space: nowrap; }
.week h4 { margin: 0 0 6px; font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--brand); }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.links a { text-decoration: none; font-weight: 550; } .links a:hover { text-decoration: underline; }
.pq-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.pq { border: 1px solid var(--border); border-radius: var(--r); padding: 18px; background: var(--surface); transition: border-color .2s; }
.pq.got-it { border-color: color-mix(in srgb, var(--beginner) 50%, var(--border)); }
.pq.missed { border-color: color-mix(in srgb, var(--advanced) 40%, var(--border)); }
.pq-q { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 4px; font-weight: 600; line-height: 1.5; }
.pq-dom { margin: 0 0 10px 50px; font-size: .78rem; color: var(--faint); }
.pq-opts { display: grid; gap: 8px; margin-top: 10px; }
.pq-opt { display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%; font: inherit; font-size: .9rem; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s var(--ease); }
.pq-opt:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-1px); }
.pq-opt:disabled { cursor: default; }
.pq-letter { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: .74rem; font-weight: 800; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.pq-opt.correct { border-color: var(--beginner); background: color-mix(in srgb, var(--beginner) 10%, var(--surface)); }
.pq-opt.correct .pq-letter { background: var(--beginner); color: #fff; border-color: transparent; }
.pq-opt.wrong { border-color: var(--advanced); background: color-mix(in srgb, var(--advanced) 9%, var(--surface)); }
.pq-opt.wrong .pq-letter { background: var(--advanced); color: #fff; border-color: transparent; }
.pq-foot { margin-top: 12px; }
.pq-why { margin-top: 12px; font-size: .9rem; }

.reviewed { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .84rem; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px 6px 10px; }
.reviewed svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; flex: none; }
.upd-toolbar { position: static; margin: 0 0 4px; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.feed { display: grid; gap: 10px; }
.feed-year { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--brand); margin: 18px 0 2px; letter-spacing: -.01em; }
.feed-year:first-child { margin-top: 0; }
.feed-item { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 20px 24px; border-left: 3px solid var(--border); }
.feed-item.st-up, .feed-item.st-live { border-left-color: var(--accent); }
.feed-item.st-draft { border-left-color: var(--intermediate); }
.feed-when { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.feed-date { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.25; }
.feed-sub { font-size: .74rem; color: var(--faint); }
.feed-rel { font-size: .78rem; font-weight: 650; color: var(--accent-text); }
.feed-body .ct-tags { margin-bottom: 8px; }
.feed-org { font-size: .78rem; color: var(--faint); font-weight: 600; }
.feed-item h3 { font-size: 1.06rem; font-weight: 650; line-height: 1.4; margin: 0 0 6px; color: var(--brand); }
.feed-item p { margin: 0 0 8px; color: var(--muted); font-size: .92rem; }
.feed-why { color: var(--text) !important; }
.feed-why b { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); margin-right: 4px; }
.feed-note { font-size: .84rem !important; font-style: italic; }
.feed-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; }
.src-link { font-size: .84rem; font-weight: 600; text-decoration: none; } .src-link:hover { text-decoration: underline; }
.feed-rt { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.soon { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-style: dashed; border-color: var(--border-strong);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 6%, var(--surface)), var(--surface)); box-shadow: none; }
.soon p { margin: 0; color: var(--muted); }
.soon-badge { flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); padding: 4px 10px; border-radius: 999px; }
@media (max-width: 860px) {
  .cd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cd-hero { flex-direction: column; padding: 22px 20px; gap: 14px; }
  .cd-block { padding: 20px 18px; }
  .fact { grid-template-columns: 1fr; gap: 2px; }
  .pq-dom { margin-left: 0; }
  .feed-item { grid-template-columns: 1fr; gap: 8px; padding: 18px; }
  .feed-when { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .feed-rt { margin-left: 0; }
  .upd-toolbar .select-wrap { flex: 1 1 calc(50% - 10px); }
  .upd-toolbar select { width: 100%; }
  .h-meta { display: block; margin: 4px 0 0; }
  .reviewed { border-radius: 14px; align-items: flex-start; }
  .reviewed svg { margin-top: 2px; }
}

/* ---------- downloads ---------- */
.full-set { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 30px; margin-bottom: 16px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 12%, var(--surface)) 0%, color-mix(in srgb, var(--violet) 7%, var(--surface)) 100%); }
.full-set h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -.015em; margin: 0 0 4px; color: var(--brand); }
.full-set p { margin: 0; color: var(--muted); }
.full-set .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.dl-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; border-radius: var(--r); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.dl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.dl-card h4 { margin: 0; font-size: 1rem; font-weight: 650; color: var(--brand); }
.dl-card .meta { font-size: .82rem; color: var(--muted); margin: -6px 0 0; }
.dl-card .btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.fmt { font-size: .8rem; font-weight: 650; text-decoration: none; border: 1px solid var(--border); border-radius: 9px; padding: 5px 10px; color: var(--text); background: var(--surface-2); transition: .15s; }
.fmt:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.fmt small { color: var(--muted); font-weight: 400; margin-left: 4px; }

/* ---------- personal brand (hero card + About me) ---------- */
.intro-card { padding: 34px 28px 26px; text-align: center; position: relative; overflow: hidden; border-radius: 26px; box-shadow: var(--shadow-lg);
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); }
.intro-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 92px;
  background: radial-gradient(120% 140% at 100% 0%, #0c7a84 0%, transparent 60%), linear-gradient(135deg, #0b1f33, #0b4f5a); }
.intro-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 92px; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
picture { display: contents; }
.avatar { position: relative; z-index: 1; display: block; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: center top; margin: 0 auto 16px;
  border: 4px solid var(--surface); box-shadow: 0 8px 24px -6px rgba(11,31,51,.35); background: var(--surface-2); }
.avatar.lg { width: 168px; height: 168px; margin: 0; flex: none; border-radius: 28px; }
/* one consistent name: same serif, upright, one size/weight/colour; balanced wrapping (never split styles) */
.brand-name { font-family: var(--serif); font-optical-sizing: auto; font-style: normal; color: var(--text); font-weight: 600; letter-spacing: -.02em;
  line-height: 1.12; margin: 0; text-wrap: balance; }
.brand-name * { font: inherit; color: inherit; letter-spacing: inherit; }
.brand-name.card-name { font-size: 1.8rem; }
.brand-tagline { margin: 16px 0 2px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.brand-value { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.04rem; color: var(--muted); line-height: 1.45; }
.brand-rule { display: block; width: 40px; height: 2px; border-radius: 2px; margin: 18px auto 16px; background: linear-gradient(90deg, var(--accent), var(--violet)); opacity: .7; }
.brand-role { margin: 0; font-size: .93rem; color: var(--text); line-height: 1.5; }
.brand-role strong { font-weight: 700; color: var(--brand); }
.brand-meta { display: inline-flex; align-items: center; gap: 5px; margin: 6px 0 0; color: var(--muted); font-size: .85rem; }
.brand-meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.cred-pills { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 16px 0 20px; padding: 0; }
.cred-pills li { display: inline-flex; align-items: center; gap: 6px; font-size: .77rem; font-weight: 650; color: var(--accent-text);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 999px; padding: 4px 11px 4px 9px; }
.cred-pills li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.intro-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.li-ico { width: 15px; height: 15px; fill: currentColor; }

.about-head { position: relative; max-width: none; padding: 4px 0 8px; }
.about-head .brand-name { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.about-head .brand-tagline { margin-top: 18px; }
.about-head .brand-value { font-size: 1.2rem; }
.about-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 18px; }
.about-meta .brand-meta { margin: 0; }
.about-meta .cred-pills { margin: 0; justify-content: flex-start; }
.about-watermark { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-style: normal; font-weight: 600;
  font-size: clamp(6rem, 13vw, 10rem); line-height: 1; letter-spacing: .02em; color: var(--accent); opacity: .07; pointer-events: none; user-select: none; }

.about-me h3 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; color: var(--brand); margin: 0 0 16px; }
.about-me h4 { font-size: .98rem; font-weight: 650; color: var(--text); margin: 0; line-height: 1.35; }
.profile-top { display: flex; gap: 32px; align-items: center; padding: 30px; margin-bottom: 16px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface) 70%); }
.profile-summary p { color: var(--muted); margin: 0 0 .75em; max-width: 70ch; }
.profile-summary .intro-btns { justify-content: flex-start; margin-top: 16px; gap: 18px; }
.about-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: stretch; }
.tile-role { grid-column: span 6; display: flex; flex-direction: column; gap: 16px; }
.tile-role h3 { margin: 0; }
.tile-role .text-link { margin-top: auto; }
.tile-edu { grid-column: span 6; }
.tile-certs { grid-column: span 7; }
.tile-skills { grid-column: span 5; }
.role-row { display: flex; gap: 14px; align-items: flex-start; }
.org-mark { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-size: .74rem; font-weight: 800; letter-spacing: .04em;
  color: #fff; background: linear-gradient(140deg, #0b1f33, #0c7a84); }
.tl-org { margin: 3px 0 0; color: var(--accent-text); font-weight: 600; font-size: .9rem; }
.tl-meta { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.edu { display: flex; gap: 14px; align-items: flex-start; }
.edu-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.edu-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cert { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: var(--surface-2); transition: border-color .2s; }
.cert:hover { border-color: var(--border-strong); }
.cert h4 { font-size: .9rem; line-height: 1.3; }
.cert p { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }
.cert-badge { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; font-size: .7rem; font-weight: 800;
  color: #fff; background: linear-gradient(140deg, #0b1f33, #0c7a84); letter-spacing: .02em; }
.skill-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chips li { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 5px 13px; font-size: .85rem; font-weight: 500; transition: .15s; }
.skill-chips li:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); color: var(--accent-text); }

/* ---------- note / footer / toast ---------- */
.note { margin-top: 72px; }
.note p { font-size: .88rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 20px; margin: 0; }
.footer { margin-top: 56px; border-top: 1px solid var(--border); padding: 28px 0 36px; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.monogram-sm { font-family: var(--serif); font-style: normal; font-weight: 600; font-size: .8rem; letter-spacing: .1em; color: var(--accent-text);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 2px 10px; }
.footer-links { display: flex; gap: 18px; }
.footer a { color: var(--muted); text-decoration: none; } .footer a:hover { color: var(--text); text-decoration: underline; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--brand); color: var(--bg); padding: 10px 18px; border-radius: 12px;
  font-size: .9rem; font-weight: 500; z-index: 50; box-shadow: var(--shadow-lg); animation: toast .25s var(--ease); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- reveal on scroll ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); }
.js-reveal .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms), box-shadow .25s, border-color .25s; }
.js-reveal .reveal.in:hover { transition-delay: 0ms; }
.js-reveal .tile.reveal.in:hover, .js-reveal .topic-tile.reveal.in:hover { transform: translateY(-3px); }
.js-reveal .dl-card.reveal.in:hover { transform: translateY(-2px); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-card { max-width: 440px; }
  .topic-bento { grid-template-columns: repeat(3, 1fr); }
  .topic-tile.feature { grid-row: span 1; }
}
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav { position: fixed; top: 64px; left: 12px; right: 12px; flex-direction: column; gap: 2px; padding: 8px; margin: 0; border-radius: 18px;
    background: var(--surface); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; visibility: hidden;
    transition: opacity .2s, transform .25s var(--ease), visibility 0s linear .25s; }
  .nav a { padding: 12px 16px; border-radius: 12px; font-size: 1rem; color: var(--text); }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .2s, transform .25s var(--ease), visibility 0s; }
  .topbar-actions { margin-left: auto; }
  .bento { grid-template-columns: 1fr; }
  .tile-why, .tile-matters, .tile-how { grid-column: auto; grid-row: auto; }
  .about-bento { grid-template-columns: 1fr; }
  .tile-role, .tile-edu, .tile-certs, .tile-skills { grid-column: auto; }
  .about-watermark { display: none; }
  .toolbar { position: static; margin: 0; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 48px 0 40px; }
  .section { padding-top: 72px; }
  .lead { font-size: 1.05rem; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .stats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .stats li { border-right: 0; border-bottom: 1px solid var(--border); padding: 12px 16px; }
  .stats li:nth-child(odd) { border-right: 1px solid var(--border); }
  .stats li:nth-last-child(-n+2) { border-bottom: 0; }
  .intro-card { max-width: none; }
  .brand-name.card-name { font-size: 1.65rem; }
  .topic-bento { grid-template-columns: 1fr 1fr; gap: 10px; }
  .topic-tile { padding: 16px; }
  .topic-tile .tt-blurb { display: none; }
  .topic-tile.feature .tt-blurb { display: -webkit-box; }
  .topic-tile.feature .tt-title { font-size: 1.6rem; }
  .steps { grid-template-columns: 1fr; }
  .tile { padding: 22px; }
  .search kbd { display: none; }
  .search { flex-basis: 100%; }
  .qbtn { flex-wrap: wrap; padding: 15px 16px; gap: 10px 12px; }
  .qtext { flex-basis: calc(100% - 100px); }
  .badges { order: 3; margin-left: 50px; justify-content: flex-start; }
  .qpad { padding: 0 16px 18px 16px; }
  .about-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .profile-top { flex-direction: column; text-align: center; padding: 24px 20px; gap: 20px; }
  .profile-summary { text-align: left; }
  .profile-summary .intro-btns { flex-direction: column; align-items: flex-start; gap: 12px; }
  .avatar.lg { width: 132px; height: 132px; }
  .full-set { padding: 22px; }
  .soon { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .topbar, .toolbar, .chips, .downloads, .hero-cta, .footer, .qactions, .topic-dl, .intro-card, .intro-btns, .topics, .hero-bg, .certs, .updates { display: none !important; }
  .qbody { display: block !important; visibility: visible !important; } .qpad { opacity: 1 !important; transform: none !important; }
  body { background: #fff; } .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- typographic polish ---------- */
.hero h1, .section-head h2, .brand-value, .brand-role, .tile h3, .full-set h3 { text-wrap: balance; }
.lead, .tile p, .profile-summary p, .section-head p.muted, .qtext { text-wrap: pretty; }
:root[data-theme="dark"] .hero-bg::after { opacity: .18; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-bg::after { opacity: .18; } }
@media (max-width: 640px) { .stats b { font-size: 1.25rem; } }
.dl-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.dl-card .btns { flex-wrap: nowrap; }
.fmt { padding: 5px 9px; font-size: .78rem; white-space: nowrap; }
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
