:root {
  --bg: #0a0f0d;
  --bg-alt: #0e1512;
  --surface: #0f1d19;
  --card: rgba(15, 29, 25, .72);
  --text: #d9f7e8;
  --muted: #9ad8bf;
  --primary: #17f597;
  --primary-700: #0fd17d;
  --secondary: #00d4ff;
  --danger: #ff4d6d;
  --warn: #ffc857;
  --line: rgba(23, 245, 151, .14);
  --line-strong: rgba(23, 245, 151, .32);
  --shadow: 0 10px 30px rgba(23, 245, 151, .1);
  --radius: 1rem;
  --font-head: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --header-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: clamp(1rem, .95rem + .2vw, 1.125rem);
  line-height: 1.7;
  color: var(--text);
  background: linear-gradient(180deg, #0a0f0d 0%, #101a16 100%) fixed;
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { flex: 1 0 auto; outline: none; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--secondary); }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; border-radius: .25rem; }
::selection { background: rgba(23, 245, 151, .3); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button, [role="button"], a.btn, summary { touch-action: manipulation; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .6rem; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4.5vw + .8rem, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.2vw + 1rem, 2rem); }
h3 { font-size: clamp(1.05rem, .6vw + .95rem, 1.25rem); line-height: 1.35; }
p { margin: 0 0 1.1rem; color: var(--muted); max-width: 70ch; }
ul { padding-left: 1.2rem; }
.lead { font-size: 1.1em; color: #cfeadf; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--primary); color: #001b12; padding: .6rem .9rem; border-radius: 0 0 .5rem 0; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; position: relative; }
.section-header { margin-bottom: 2rem; }
.section-header p { margin-bottom: 0; }
.grid { display: grid; gap: 1.25rem; }
.grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.cols-2, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: 1.2fr .8fr; align-items: start; } }

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; width: 60vmax; height: 60vmax; filter: blur(60px); opacity: .22; border-radius: 50%; will-change: transform; }
.blob-a { left: -10vmax; top: -10vmax; background: radial-gradient(circle at 30% 30%, var(--secondary), transparent 60%); animation: float-a 30s ease-in-out infinite; }
.blob-b { right: -15vmax; bottom: -15vmax; background: radial-gradient(circle at 70% 70%, var(--primary), transparent 60%); animation: float-b 35s ease-in-out infinite; }
@keyframes float-a { 50% { transform: translate(2vmax, 1.5vmax) scale(1.02); } }
@keyframes float-b { 50% { transform: translate(-1.5vmax, -1vmax) scale(1.03); } }
.float-icons { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fi { position: absolute; font-size: clamp(16px, 2vw, 24px); opacity: .18; animation: drift 7s ease-in-out infinite; will-change: transform; }
.fi:nth-child(1) { top: 8%; left: 12%; animation-duration: 5s; }
.fi:nth-child(2) { top: 18%; left: 78%; animation-duration: 6s; }
.fi:nth-child(3) { top: 35%; left: 6%; animation-duration: 8s; }
.fi:nth-child(4) { top: 45%; left: 88%; animation-duration: 9s; }
.fi:nth-child(5) { top: 62%; left: 14%; animation-duration: 6s; }
.fi:nth-child(6) { top: 82%; left: 45%; animation-duration: 7s; }
.fi:nth-child(7) { top: 72%; left: 82%; animation-duration: 9s; }
.fi:nth-child(8) { top: 14%; left: 45%; animation-duration: 7s; }
.fi:nth-child(9) { top: 55%; left: 55%; animation-duration: 8s; }
.fi:nth-child(10) { top: 26%; left: 25%; animation-duration: 9s; }
.fi:nth-child(11) { top: 66%; left: 34%; animation-duration: 5s; }
.fi:nth-child(12) { top: 40%; left: 66%; animation-duration: 7s; }
.fi:nth-child(13) { top: 90%; left: 92%; animation-duration: 8s; }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(24px, -36px, 0) scale(1.08); } }
@media (max-width: 640px) { .fi:nth-child(n+7) { display: none; } }

.progress-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; background: rgba(255,255,255,.05); }
.progress-bar span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--secondary), var(--primary)); }

.header { position: sticky; top: 0; z-index: 100; background: rgba(10, 15, 13, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: .2px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand .dot { color: #6cff58; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 1px solid rgba(255,255,255,.18); border-radius: .6rem; font-size: 1.25rem; line-height: 1; }
.nav-toggle:hover { border-color: var(--line-strong); }
.nav-links { list-style: none; margin: 0; padding: .6rem; position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--surface); border-bottom: 1px solid var(--line); display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.nav-links.open { display: block; }
.nav-links a, .nav-links .sub-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: .55rem .9rem; color: var(--text); background: none; border: 0; border-radius: .55rem; font-weight: 600; font-size: 1rem; text-decoration: none; text-align: left; }
.nav-links a:hover, .nav-links .sub-toggle:hover, .nav-links a[aria-current="page"] { background: rgba(23, 245, 151, .13); color: var(--primary); }
.has-sub .sub { list-style: none; margin: 0; padding: 0 0 0 .8rem; display: none; }
.has-sub.open .sub { display: block; }
.sub-toggle .arrow { font-size: .65rem; transition: transform .2s ease; }
.has-sub.open .arrow { transform: rotate(180deg); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-links { position: static; display: flex; align-items: center; gap: .15rem; padding: 0; background: none; border: 0; max-height: none; overflow: visible; }
  .nav-links a, .nav-links .sub-toggle { width: auto; padding: .45rem .8rem; gap: .35rem; }
  .has-sub { position: relative; }
  .has-sub .sub { position: absolute; right: 0; top: 100%; min-width: 210px; padding: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: .8rem; box-shadow: var(--shadow); }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem 1.3rem; border-radius: .7rem; border: 1px solid transparent; font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-700)); color: #001b12; box-shadow: 0 6px 22px rgba(23, 245, 151, .25); }
.btn-primary:hover { color: #001b12; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(23, 245, 151, .35); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.2); }
.btn-ghost:hover { color: var(--primary); border-color: var(--line-strong); background: rgba(23, 245, 151, .07); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.chip, .tag { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .82rem; line-height: 1.5; color: var(--muted); border: 1px solid var(--line); background: rgba(23, 245, 151, .06); }
.badge { display: inline-block; padding: .15rem .65rem; border-radius: .5rem; font-size: .78rem; font-weight: 700; border: 1px solid currentColor; white-space: nowrap; }
.badge.expert, .badge.success { color: var(--primary); }
.badge.advanced, .badge.discovery, .badge.research { color: var(--secondary); }
.badge.proficient, .badge.tutorial { color: var(--warn); }
.badge.critical, .badge.case-study { color: var(--danger); }

.card { position: relative; display: flex; flex-direction: column; padding: 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
a.card { text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card.static:hover { transform: none; border-color: var(--line); box-shadow: none; }
.card-icon { font-size: 1.8rem; line-height: 1; margin-bottom: .8rem; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.card-head h3 { margin: 0; }
.card p { flex: 1 0 auto; font-size: .97rem; }
.card-foot { margin-top: auto; padding-top: .8rem; color: var(--primary); font-weight: 600; font-size: .95rem; }
.meta { font-size: .85rem; color: var(--muted); opacity: .85; margin-bottom: .6rem; }
.stat-list { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .2rem 0 .6rem; padding: 0; list-style: none; font-size: .88rem; color: #cfeadf; }
.stat-list li::before { content: "▸ "; color: var(--primary); }
.cta-panel { margin-top: 2rem; padding: 1.6rem; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(23, 245, 151, .04); }
.cta-panel p { margin-inline: auto; }

.page-hero { margin: 1.5rem 0 0; padding: clamp(1.4rem, 4vw, 2.4rem); border-radius: 1.1rem; border: 1px solid rgba(0, 212, 255, .25); background: radial-gradient(900px 220px at -10% -20%, rgba(103,255,76,.08), transparent 45%), linear-gradient(180deg, rgba(0,0,0,0), rgba(0,212,255,.05)); box-shadow: 0 10px 28px rgba(0, 212, 255, .08); }
.page-hero h1 { margin-bottom: .4rem; }
.page-hero p { margin-bottom: 0; font-size: 1.05em; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .8rem; padding: 0; list-style: none; font-size: .88rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: var(--muted); opacity: .6; }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--text); }

.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .95rem; }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; padding: .65rem .85rem; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255,255,255,.16); border-radius: .65rem; transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(154, 216, 191, .5); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(23, 245, 151, .2); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); animation: shake .35s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.error { display: block; min-height: 1.1em; margin-top: .25rem; font-size: .84rem; color: var(--danger); }
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 300; max-width: min(92vw, 420px); padding: .8rem 1.2rem; transform: translate(-50%, 140%); border-radius: .75rem; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 12px 34px rgba(0,0,0,.5); font-size: .95rem; transition: transform .3s ease; }
.toast.show { transform: translate(-50%, 0); }
.toast.error { border-color: var(--danger); }

.footer { position: relative; margin-top: 2rem; border-top: 1px solid var(--line); background: linear-gradient(180deg, #132821 0%, #0e1e18 60%, #0b1915 100%); overflow: hidden; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent); opacity: .7; }
.footer::after { content: ""; position: absolute; left: 50%; top: -120px; width: 480px; height: 240px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(23,245,151,.1), transparent 70%); pointer-events: none; }
.footer-grid { position: relative; display: grid; gap: 1.1rem; padding: 1.4rem 0 .8rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.1fr 1.3fr; } }
.footer-brand .brand { font-size: 1.3rem; }
.footer-brand p { margin: .3rem 0 0; font-size: .85rem; max-width: 42ch; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (min-width: 560px) { .footer-links { grid-template-columns: 1.6fr 1fr; } .footer-links nav:first-child ul:not(.socials) { grid-template-columns: repeat(2, max-content); column-gap: 2.2rem; } }
.footer h2 { position: relative; display: inline-block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: .45rem; padding-bottom: .3rem; }
.footer h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.footer ul:not(.socials) { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.footer ul:not(.socials) li a { display: inline-flex; align-items: center; gap: .4rem; padding: .1rem 0; color: var(--muted); text-decoration: none; font-size: .9rem; transition: color .2s ease, transform .2s ease, padding-left .2s ease; }
.footer ul:not(.socials) li a::before { content: "→"; opacity: 0; transform: translateX(-6px); transition: opacity .2s ease, transform .2s ease; color: var(--primary); }
.footer ul:not(.socials) li a:hover { color: var(--primary); padding-left: .3rem; }
.footer ul:not(.socials) li a:hover::before { opacity: 1; transform: translateX(0); }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.footer .socials a, .socials a { display: flex; align-items: center; justify-content: center; padding: 0; width: 36px; height: 36px; border-radius: .7rem; color: var(--text); border: 1px solid var(--line); background: rgba(23, 245, 151, .05); transition: transform .25s cubic-bezier(.34,1.56,.64,1), color .2s ease, border-color .2s ease, background-color .2s ease; }
.footer .socials a:hover, .socials a:hover { color: #001b12; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-color: transparent; transform: translateY(-3px) scale(1.08); }
.socials svg { display: block; width: 17px; height: 17px; flex: none; }
.footer .socials { margin-top: .6rem; }
.footer .socials a { width: 32px; height: 32px; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1.5rem; padding: .7rem 0 .8rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.footer-bottom p { margin: 0; max-width: none; color: inherit; }
.footer-bottom .heart { color: var(--danger); display: inline-block; animation: heartbeat 1.8s ease-in-out infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.22); } 40% { transform: scale(1); } }
.back-to-top { position: fixed; right: 1.1rem; bottom: 5.4rem; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--primary); font-size: 1.2rem; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, visibility .25s, box-shadow .25s ease; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { box-shadow: 0 6px 20px rgba(23,245,151,.3); transform: translateY(-3px); }

.prose { max-width: 78ch; }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose li { color: var(--muted); margin-bottom: .35rem; }
.prose .updated { font-size: .9rem; opacity: .8; }

.reveal.pre { opacity: 0; transform: translateY(18px); }
.reveal.pre.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pre { opacity: 1; transform: none; }
}

.gallery-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 0; padding: 0; list-style: none; }
.g-item { display: block; overflow: hidden; border-radius: .9rem; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--surface); }
.g-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.g-item:hover img { transform: scale(1.05); }
.empty-state { padding: 2.5rem 1.5rem; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(23, 245, 151, .03); }
.empty-state p { margin-inline: auto; }
.lightbox { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 3.5rem 1rem 1.5rem; background: rgba(4, 8, 6, .94); }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; max-width: 100%; object-fit: contain; border-radius: .6rem; }
.lightbox figcaption { margin-top: .6rem; color: var(--muted); font-size: .92rem; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 1.4rem; line-height: 1; }
.lb-btn:hover { color: var(--primary); }
.lb-close { top: .8rem; right: .8rem; }
.lb-prev { left: .6rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .6rem; top: 50%; transform: translateY(-50%); }
body.lb-lock { overflow: hidden; }

.contact-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.3fr .9fr; align-items: start; } }
.contact-stats { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.2rem; }
.contact-stats div { display: flex; flex-direction: column; }
.contact-stats strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--primary); line-height: 1.1; }
.contact-stats span { font-size: .85rem; color: var(--muted); }
.dc-list { display: grid; gap: .6rem; }
.dc-item { display: flex; align-items: center; gap: .85rem; width: 100%; min-height: 56px; padding: .6rem .85rem; text-align: left; text-decoration: none; color: var(--text); background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: .8rem; transition: border-color .2s ease, transform .2s ease; }
.dc-item:hover { color: var(--text); border-color: var(--line-strong); transform: translateX(3px); }
.dc-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: .6rem; color: var(--primary); background: rgba(23, 245, 151, .1); }
.dc-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.dc-body strong { overflow-wrap: anywhere; }
.dc-body em { font-style: normal; font-size: .83rem; color: var(--muted); }

.tool-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.tool-tab { min-height: 44px; padding: .5rem 1.1rem; border-radius: .7rem; border: 1px solid var(--line); background: rgba(23, 245, 151, .05); color: var(--text); font-weight: 600; }
.tool-tab[aria-selected="true"] { background: rgba(23, 245, 151, .18); border-color: var(--primary); color: var(--primary); }
.tool-panel[hidden] { display: none; }
.tool-panel .field { margin-bottom: 1rem; }
.out-box { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .7rem; background: rgba(0,0,0,.3); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; color: #cfeadf; word-break: break-all; min-height: 2.8rem; white-space: pre-wrap; }
.meter { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin: .6rem 0; }
.meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--danger); transition: width .3s ease, background-color .3s ease; }
.meter span[data-level="2"] { background: var(--warn); }
.meter span[data-level="3"] { background: var(--secondary); }
.meter span[data-level="4"] { background: var(--primary); }
.hash-row { margin-bottom: .8rem; }
.hash-row strong { display: block; font-size: .85rem; margin-bottom: .25rem; }
.note { font-size: .9rem; padding: .8rem 1rem; border-left: 3px solid var(--secondary); background: rgba(0, 212, 255, .06); border-radius: 0 .5rem .5rem 0; }

.pdf-frame { width: 100%; height: min(80vh, 720px); border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); }
.pdf-fallback { padding: 2rem 1rem; text-align: center; }

.nf { text-align: center; padding: clamp(3rem, 10vw, 6rem) 0; }
.nf .code { font-family: var(--font-head); font-size: clamp(4rem, 18vw, 9rem); font-weight: 700; line-height: 1; background: linear-gradient(90deg, var(--secondary), var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf p, .nf .btn-row { margin-inline: auto; justify-content: center; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filter-btn { min-height: 44px; padding: .45rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(23, 245, 151, .05); color: var(--text); font-weight: 600; font-size: .95rem; }
.filter-btn:hover { border-color: var(--line-strong); }
.filter-btn[aria-pressed="true"] { background: rgba(23, 245, 151, .18); border-color: var(--primary); color: var(--primary); }
.nav-links .sub-toggle.is-active { color: var(--primary); }
.contact-note { margin: 1.2rem 0 0; font-size: .9rem; }
.reach-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .reach-grid { grid-template-columns: 1fr 1fr; } }
.reach-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; color: var(--text); }
a.reach-card:hover { color: var(--text); border-color: var(--line-strong); }
.reach-card .ic { font-size: 1.6rem; }
.reach-card h3 { margin: 0; font-size: 1rem; }
.reach-card p { margin: 0; font-size: .92rem; }

.about-stats { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 1.2rem 0; }
.about-stats div { display: flex; flex-direction: column; }
.about-stats .num { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw + 1rem, 2.6rem); font-weight: 700; color: var(--primary); line-height: 1.1; }
.about-stats .label { font-size: .85rem; color: var(--muted); }
.about-meta { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .3rem; color: var(--muted); }
.highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.highlights li { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--muted); font-size: .95rem; }
.highlights h3 { margin-bottom: .25rem; color: var(--text); }

.socials svg { display: block; width: 20px; height: 20px; flex: none; }

.card, .chip, .tag, .btn-primary, .socials a { transition: transform .25s cubic-bezier(.34,1.56,.64,1), border-color .25s ease, box-shadow .25s ease, background-color .25s ease, color .2s ease; }
.card:hover { transform: translateY(-5px) scale(1.012); }
.brand { transition: transform .2s ease; display: inline-block; }
.brand:hover { transform: translateY(-1px); }
.btn { transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.btn:active { transform: scale(.96); }
.hex-card { animation: floaty 6s ease-in-out infinite; }
.hex-card:hover .hex-inner { transform: scale(1.03); }
.hex-inner { transition: transform .4s ease; }
.availability::before { animation: pulse 2s infinite; }
.nav-links a, .nav-links .sub-toggle { transition: background-color .2s ease, color .2s ease, transform .15s ease; }
.g-item img { transition: transform .4s ease; }
.card-icon { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.card:hover .card-icon { transform: scale(1.15) rotate(-4deg); }
.chip:hover, .tag:hover { transform: translateY(-2px); border-color: var(--line-strong); }
@media (prefers-reduced-motion: reduce) {
  .card:hover, .btn:active, .hex-inner, .card-icon { transform: none !important; }
}

.tool-tabs { max-height: none; }
.payload-list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.payload-list li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: .6rem; background: rgba(0,0,0,.2); }
.payload-list code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; color: #cfeadf; overflow-wrap: anywhere; }
.payload-list button { flex: none; }
.tool-grid { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .tool-grid.two { grid-template-columns: 1fr 1fr; } }
.ref-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ref-table th, .ref-table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
.ref-table th { color: var(--primary); font-weight: 700; }
.check-row { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.check-row .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); }
.check-row.ok .dot { background: var(--primary); }
.check-row.bad .dot { background: var(--danger); }
.gen-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 1rem; }
.field-tight { margin-top: 1rem; }

.capability-row { text-align: center; margin-bottom: 2rem; }
.capability-row h2 { display: inline-block; position: relative; padding-bottom: .6rem; }
.capability-row h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 46px; height: 3px; border-radius: 3px; transform: translateX(-50%); background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.cap-grid { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .cap-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .cap-grid { grid-template-columns: repeat(6, 1fr); } }
.cap-item { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.3rem .8rem; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.cap-item .ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: .8rem; font-size: 1.35rem; background: rgba(23,245,151,.1); border: 1px solid var(--line-strong); }
.cap-item span { font-size: .88rem; font-weight: 600; color: var(--text); line-height: 1.3; }

.proj-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; color: inherit; }
.proj-art { position: relative; display: grid; place-items: center; height: 150px; font-size: 2.6rem; color: rgba(217,247,232,.5); background: radial-gradient(120% 140% at 15% 10%, rgba(23,245,151,.22), transparent 55%), radial-gradient(120% 140% at 85% 90%, rgba(0,212,255,.18), transparent 55%), #0c1713; border-bottom: 1px solid var(--line); }
.proj-cat { position: absolute; top: .7rem; left: .7rem; padding: .2rem .6rem; border-radius: .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: #001b12; background: var(--primary); }
.proj-body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.proj-body h3 { margin-bottom: .4rem; }
.proj-body p { font-size: .95rem; margin-bottom: .8rem; }

.stat-row { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(5, 1fr); } }
.stat-chip { display: flex; align-items: center; gap: .7rem; }
.stat-chip .ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: .7rem; background: rgba(23,245,151,.1); border: 1px solid var(--line-strong); font-size: 1.1rem; }
.stat-chip strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--text); line-height: 1.1; }
.stat-chip span { display: block; font-size: .8rem; color: var(--muted); }

.split-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.split-head .more { font-size: .9rem; white-space: nowrap; }
.cert-rows { display: grid; gap: .7rem; }
.cert-row { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--card); text-decoration: none; color: inherit; }
.cert-row .badge-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: .7rem; background: rgba(23,245,151,.1); border: 1px solid var(--line-strong); font-weight: 700; font-size: .8rem; color: var(--primary); }
.cert-row .meta-txt { flex: 1; min-width: 0; }
.cert-row .meta-txt strong { display: block; font-size: .96rem; color: var(--text); }
.cert-row .meta-txt span { display: block; font-size: .82rem; color: var(--muted); }
.cert-row .verified { flex: none; font-size: .78rem; color: var(--primary); border: 1px solid var(--line-strong); border-radius: 999px; padding: .15rem .55rem; }

.about-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.about-card .reach { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.about-card .reach span { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: .6rem; color: var(--muted); }

.article-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.article-art { height: 120px; display: grid; place-items: center; font-size: 2rem; border-bottom: 1px solid var(--line); background: radial-gradient(120% 140% at 85% 10%, rgba(0,212,255,.2), transparent 55%), radial-gradient(120% 140% at 15% 90%, rgba(23,245,151,.2), transparent 55%), #0c1713; }
.article-body { padding: 1.1rem 1.2rem 1.3rem; }
.article-body h3 { font-size: 1.05rem; margin-bottom: .4rem; }

.cta-title { margin-bottom: .2rem; }

.container-wide { width: min(1320px, 100% - 2rem); margin-inline: auto; }
.timeline { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); padding-left: 1.4rem; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -1.95rem; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(23,245,151,.15); }
.timeline time { display: block; font-size: .82rem; color: var(--primary); font-weight: 700; margin-bottom: .15rem; }
.timeline h3 { margin-bottom: .2rem; }
.timeline p { margin-bottom: 0; font-size: .93rem; }
.offer-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .offer-grid { grid-template-columns: 1fr 1fr; } }
.value-grid { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }
.value-item { text-align: center; padding: 1.1rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.value-item .ic { font-size: 1.5rem; margin-bottom: .5rem; display: block; }
.value-item h3 { font-size: .98rem; margin-bottom: .25rem; }
.value-item p { font-size: .85rem; margin: 0; }
.info-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.info-row .chip { font-size: .88rem; }

.tool-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 960px) { .tool-layout { grid-template-columns: 260px 1fr; gap: 2rem; } }
.tool-nav { display: grid; gap: 1.2rem; position: static; }
@media (min-width: 960px) { .tool-nav { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding: .2rem .5rem .2rem .2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); } }
.tool-nav-group { padding: .6rem .3rem; }
.tool-nav-heading { display: flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin: 0 0 .5rem; padding-left: .3rem; }
.tool-nav-items { display: grid; gap: .2rem; }
.tool-tab { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 42px; padding: .5rem .7rem; border: 1px solid transparent; border-radius: .6rem; background: transparent; color: var(--muted); font-weight: 600; font-size: .9rem; text-align: left; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease; }
.tool-tab:hover { background: rgba(23,245,151,.07); color: var(--text); }
.tool-tab[aria-selected="true"] { background: rgba(23, 245, 151, .15); border-color: var(--line-strong); color: var(--primary); transform: translateX(2px); }
.tool-mobile-select { display: block; margin-bottom: 1.2rem; }
@media (min-width: 960px) { .tool-mobile-select { display: none; } }
.tool-nav-desktop { display: none; }
@media (min-width: 960px) { .tool-nav-desktop { display: block; } }
.tool-panels { min-width: 0; }
.tool-panel h2 { display: flex; align-items: center; gap: .6rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-logo { flex: none; width: 36px; height: 36px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1px var(--line-strong); }
.footer-brand .brand-logo { width: 40px; height: 40px; }
.section-sub { max-width: 70ch; margin: -.2rem 0 1.4rem; }
.hero-role { margin: 0 0 .35rem; font-family: var(--font-head); font-size: clamp(1.25rem, 1.2vw + 1rem, 1.7rem); font-weight: 700; color: #cfeadf; letter-spacing: .2px; }
.role-line { color: var(--muted); }

.badge.core { color: var(--primary); }
.badge.practicing { color: var(--secondary); }
.badge.exploring { color: var(--warn); }
.badge.learning { color: #b9a6ff; }
.group-head { margin-bottom: 1.2rem; }
.group-head p { margin: .2rem 0 0; }

.about-photo { justify-self: center; width: min(100%, 440px); }
.about-img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 1.1rem; border: 1px solid var(--line-strong); box-shadow: var(--shadow); display: block; }

.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); grid-auto-flow: dense; }
.g-li { margin: 0; }
.g-li.wide { grid-column: span 2; }
@media (max-width: 479px) { .g-li.wide { grid-column: span 1; } }
.g-li .g-item { aspect-ratio: 4 / 5; cursor: zoom-in; }
.g-li.wide .g-item { aspect-ratio: 16 / 10; }
.g-li .g-item img { object-position: center 22%; }
.g-cap { margin: .45rem .2rem 0; font-size: .85rem; color: var(--muted); }

.btn.btn-sm { min-height: 40px; padding: .4rem .95rem; font-size: .9rem; }
.proj-body .btn-row { margin-top: .6rem; }
.filter-empty { margin-top: 1.2rem; padding: 1rem 1.2rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.cert-meta { margin: .8rem 0 1.2rem; color: var(--muted); font-size: .95rem; }
.hidden { display: none !important; }

html, body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
img { -webkit-user-drag: none; user-drag: none; }

.topic-block { margin-top: 1.6rem; }
.topic-note { margin-top: 1.4rem; }
.cta-panel .btn-row, .cta-panel .chips { justify-content: center; }
.cta-panel .contact-note { margin-top: 1.2rem; }

*, *::before, *::after { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
input, textarea, select, [contenteditable="true"], input *, textarea * { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; -webkit-touch-callout: default; }
::selection { background: transparent; color: inherit; }
::-moz-selection { background: transparent; color: inherit; }
input::selection, textarea::selection { background: rgba(23,245,151,.35); color: inherit; }
img, svg, a { -webkit-user-drag: none; user-drag: none; }

.article-card { position: relative; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.article-card:hover, .article-card:focus-within { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.article-card .card-link { color: var(--text); text-decoration: none; }
.article-card .card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.article-card .card-link:focus-visible { outline: none; }
.article-card:focus-within { outline: 2px solid var(--secondary); outline-offset: 3px; }
.article-card .more { position: relative; display: inline-block; margin-top: .3rem; font-weight: 600; color: var(--primary); }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 0 0 .7rem; padding: 0; list-style: none; font-size: .82rem; color: var(--muted); }
.article-meta li { display: inline-flex; align-items: center; gap: .3rem; }
.article-body h2, .article-body h3 { font-size: 1.15rem; margin-bottom: .4rem; }

.article-wrap { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); padding-block: 1rem 2rem; }
@media (min-width: 1000px) { .article-wrap { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; } }
.article-main { min-width: 0; }
.article-main h2 { margin-top: 2rem; font-size: clamp(1.3rem, 1vw + 1.1rem, 1.7rem); }
.article-main h3 { margin-top: 1.2rem; font-size: 1.1rem; }
.article-main p, .article-main li { color: #c4ead8; line-height: 1.75; max-width: 72ch; }
.article-main ul, .article-main ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.article-main li { margin-bottom: .45rem; }
.article-main code { padding: .1rem .4rem; border-radius: .35rem; background: rgba(23,245,151,.09); border: 1px solid var(--line); font-size: .9em; overflow-wrap: anywhere; }
.article-main .lead { font-size: 1.12rem; color: var(--text); }
.callout { margin: 1.4rem 0; padding: 1rem 1.2rem; border: 1px solid var(--line-strong); border-left: 4px solid var(--primary); border-radius: .8rem; background: rgba(23,245,151,.06); }
.callout h2, .callout h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.callout ul { margin-bottom: 0; }
.callout.warn { border-left-color: var(--warn); background: rgba(255,200,87,.06); }
.article-side { display: grid; gap: 1rem; }
@media (min-width: 1000px) { .article-side { position: sticky; top: calc(var(--header-h) + 16px); } }
.toc, .author-box { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.toc h2, .author-box h2 { margin: 0 0 .6rem; font-size: 1rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: .4rem; font-size: .93rem; }
.toc a { text-decoration: none; }
.author-box p { font-size: .9rem; margin-bottom: .8rem; }
.article-nav { display: grid; gap: 1rem; margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .article-nav { grid-template-columns: 1fr 1fr; } }
.faq-list h3 { margin-top: 1.1rem; }

.sup [hidden] { display: none !important; }
.sup { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 120; font-family: var(--font-body); }
.sup-fab { width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #001b12; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 8px 26px rgba(23,245,151,.38), 0 0 0 0 rgba(23,245,151,.5); transition: transform .2s ease, box-shadow .2s ease; animation: sup-pulse 2.6s ease-out 3; }
.sup-fab:hover { transform: scale(1.07); }
.sup-fab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes sup-pulse { 70% { box-shadow: 0 8px 26px rgba(23,245,151,.38), 0 0 0 16px rgba(23,245,151,0); } 100% { box-shadow: 0 8px 26px rgba(23,245,151,.38), 0 0 0 0 rgba(23,245,151,0); } }
.sup-menu { position: absolute; right: 0; bottom: 68px; width: min(290px, calc(100vw - 2.2rem)); padding: .8rem; border: 1px solid var(--line-strong); border-radius: 1rem; background: var(--surface); box-shadow: 0 16px 44px rgba(0,0,0,.55); }
.sup-menu-title { margin: 0 0 .6rem .3rem; font-family: var(--font-head); font-weight: 600; color: var(--text); }
.sup-opt { display: flex; align-items: center; gap: .75rem; width: 100%; margin-top: .5rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: .8rem; background: rgba(23,245,151,.05); color: var(--text); text-align: left; text-decoration: none; cursor: pointer; font: inherit; }
.sup-opt:hover, .sup-opt:focus-visible { border-color: var(--line-strong); background: rgba(23,245,151,.12); color: var(--text); }
.sup-opt-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #25d366; }
.sup-opt-ai .sup-opt-ic { background: linear-gradient(135deg, #7c5cff, var(--secondary)); }
.sup-opt-tx { display: grid; line-height: 1.3; }
.sup-opt-tx strong { font-size: .95rem; }
.sup-opt-tx small { color: var(--muted); font-size: .8rem; }
.sup-panel { position: absolute; right: 0; bottom: 68px; display: flex; flex-direction: column; width: min(380px, calc(100vw - 2.2rem)); height: min(540px, calc(100vh - 7.5rem)); height: min(540px, calc(100dvh - 7.5rem)); border: 1px solid var(--line-strong); border-radius: 1.1rem; background: var(--bg-alt); box-shadow: 0 18px 54px rgba(0,0,0,.6); overflow: hidden; }
.sup-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(23,245,151,.16), rgba(0,212,255,.1)); }
.sup-title { display: grid; line-height: 1.25; }
.sup-title strong { font-family: var(--font-head); color: var(--text); }
.sup-title small { color: var(--muted); font-size: .72rem; }
.sup-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.sup-x:hover { border-color: var(--line-strong); color: var(--primary); }
.sup-log { flex: 1; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .6rem; overscroll-behavior: contain; }
.sup-msg { max-width: 86%; padding: .6rem .85rem; border-radius: 1rem; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.sup-msg.bot { align-self: flex-start; background: rgba(23,245,151,.08); border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: .3rem; }
.sup-msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--primary), var(--primary-700)); color: #001b12; border-bottom-right-radius: .3rem; }
.sup-msg a { color: var(--secondary); }
.sup-msg.me a { color: #003a5a; }
.sup-typing { display: inline-flex; gap: 4px; align-items: center; padding: .8rem .9rem; }
.sup-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); opacity: .4; animation: sup-dot 1s infinite ease-in-out; }
.sup-typing span:nth-child(2) { animation-delay: .15s; } .sup-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes sup-dot { 40% { opacity: 1; transform: translateY(-3px); } }
.sup-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 .9rem .6rem; }
.sup-chip { padding: .35rem .7rem; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer; }
.sup-chip:hover { color: var(--primary); background: rgba(23,245,151,.08); }
.sup-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); background: var(--surface); }
.sup-input { flex: 1; min-width: 0; min-height: 44px; padding: .5rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.sup-input:focus { outline: 2px solid var(--secondary); outline-offset: 1px; }
.sup-send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #001b12; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.sup-send:disabled { opacity: .5; cursor: default; }
@media (max-width: 480px) { .sup { right: .8rem; bottom: .8rem; } .back-to-top { right: .95rem; bottom: 4.9rem; } }
@media (prefers-reduced-motion: reduce) { .sup-fab, .article-card { transition: none; animation: none; } .sup-typing span { animation: none; } }

.nav-links a.nav-cta-link { justify-content: center; gap: .4rem; background: var(--primary); color: #02120c; font-weight: 700; border-radius: .7rem; letter-spacing: .1px; box-shadow: none; transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.nav-links a.nav-cta-link:hover,
.nav-links a.nav-cta-link[aria-current="page"] { background: #3dffae; color: #02120c; box-shadow: 0 6px 20px rgba(23, 245, 151, .3); }
.nav-links a.nav-cta-link:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.nav-cta-arrow { display: inline-block; font-size: 1em; line-height: 1; transition: transform .2s ease; }
.nav-links a.nav-cta-link:hover .nav-cta-arrow { transform: translate(2px, -2px); }

@media (max-width: 899.98px) {
  .nav-toggle { border-color: var(--line-strong); background: rgba(23, 245, 151, .06); color: var(--text); transition: background-color .2s ease, border-color .2s ease; }
  .nav-toggle[aria-expanded="true"] { background: rgba(23, 245, 151, .16); border-color: var(--primary); color: var(--primary); }
  .nav-links { padding: .75rem 1rem 1.1rem; border-top: 1px solid var(--line); box-shadow: 0 22px 44px rgba(0, 0, 0, .55); max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overscroll-behavior: contain; }
  .nav-links.open { animation: nav-drop .22s ease-out; }
  .nav-links > li { border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav-links > li:last-child { border-bottom: 0; }
  .nav-links > li > a, .nav-links > li > .sub-toggle { min-height: 48px; padding: .6rem .5rem; border-radius: .6rem; font-size: 1.02rem; }
  .nav-links a[aria-current="page"] { background: rgba(23, 245, 151, .1); color: var(--primary); }
  .sub-toggle .arrow { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(23, 245, 151, .1); color: var(--primary); font-size: .6rem; }
  .has-sub.open > .sub-toggle { color: var(--primary); }
  .has-sub .sub { margin: 0 0 .5rem .6rem; padding: .2rem 0 .2rem .8rem; border-left: 2px solid var(--line-strong); }
  .has-sub .sub a { min-height: 44px; padding: .5rem .7rem; font-size: .96rem; font-weight: 500; color: rgba(217, 247, 232, .85); }
  .nav-links > li.nav-cta { margin-top: .9rem; padding-top: 0; border: 0; }
  .nav-links > li.nav-cta > a.nav-cta-link { min-height: 50px; width: 100%; font-size: 1.05rem; }
}
@keyframes nav-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (min-width: 900px) {
  .nav-links > li.nav-cta { margin-left: .6rem; }
  .nav-links a.nav-cta-link { min-height: 40px; padding: .5rem 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links.open { animation: none; }
  .nav-links a.nav-cta-link, .nav-cta-arrow { transition: none; }
}

.grid.cols-2 > .article-card { height: 100%; }
.article-card .article-body { display: flex; flex-direction: column; flex: 1; }
.article-card .article-body .more { margin-top: auto; padding-top: .6rem; }
