/* ==========================================================================
   Irish Nicole Dimabuyu — portfolio styles
   No external requests: system font stacks only.
   ========================================================================== */

:root {
  --bg: #f5f8f6;
  --bg-alt: #ebf1ee;
  --surface: #ffffff;
  --surface-2: #f0f5f2;
  --text: #13201a;
  --muted: #47574f;
  --border: #d5dfd9;
  --accent: #0b7a4b;
  --accent-strong: #0b7a4b;
  --on-accent: #ffffff;
  --accent-soft: #dff3e8;
  --blue: #1b4fc4;
  --blue-soft: #e3ebfc;
  --amber: #86540a;
  --amber-soft: #fbefd5;
  --term-bg: #0d1713;
  --term-text: #d6e6dc;
  --term-muted: #8aa397;
  --term-accent: #4be3a0;
  --shadow: 0 1px 2px rgba(10, 30, 20, .06), 0 8px 24px rgba(10, 30, 20, .06);
  --header-bg: rgba(245, 248, 246, .85);
  --focus: #1b4fc4;
  --danger: #b42318;
  --on-danger: #ffffff;
  --fw-line: color-mix(in srgb, var(--text) 30%, var(--border));
  --fw-art: color-mix(in srgb, var(--accent) 45%, transparent);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Code", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 14px;
  --header-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1210;
    --bg-alt: #0e1815;
    --surface: #121d19;
    --surface-2: #17251f;
    --text: #e6efe9;
    --muted: #a0b3a9;
    --border: #243630;
    --accent: #4be3a0;
    --accent-strong: #4be3a0;
    --on-accent: #04140c;
    --accent-soft: #11291f;
    --blue: #8fb4ff;
    --blue-soft: #162340;
    --amber: #f1c36c;
    --amber-soft: #2d2410;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --header-bg: rgba(10, 18, 16, .85);
    --focus: #8fb4ff;
  --danger: #ff8d8d;
  --on-danger: #2a0c0c;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a1210;
  --bg-alt: #0e1815;
  --surface: #121d19;
  --surface-2: #17251f;
  --text: #e6efe9;
  --muted: #a0b3a9;
  --border: #243630;
  --accent: #4be3a0;
  --accent-strong: #4be3a0;
  --on-accent: #04140c;
  --accent-soft: #11291f;
  --blue: #8fb4ff;
  --blue-soft: #162340;
  --amber: #f1c36c;
  --amber-soft: #2d2410;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --header-bg: rgba(10, 18, 16, .85);
  --focus: #8fb4ff;
  --danger: #ff8d8d;
  --on-danger: #2a0c0c;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
small { font-size: .85em; }
strong { font-weight: 650; }
.mono { font-family: var(--font-mono); font-size: .92em; }
.muted { color: var(--muted); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 200; transform: translateY(-250%);
  background: var(--accent-strong); color: var(--on-accent);
  padding: .6rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none;
  transition: transform .15s;
}
.skip-link:focus { transform: none; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 650; margin-right: auto; }
.brand-mark {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  background: var(--term-bg); color: var(--term-accent);
  border: 1px solid var(--border); border-radius: 8px; padding: .3rem .45rem;
}

.nav-actions { display: flex; align-items: center; gap: .4rem; order: 3; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}

.nav-toggle .bar { transition: transform .2s, opacity .2s; transform-origin: center; transform-box: fill-box; }
.nav-toggle[aria-expanded="true"] .b1 { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .b2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .b3 { transform: translateY(-5px) rotate(-45deg); }

/* mobile menu (default) */
.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  display: none;
}
.site-nav.open { display: block; }
.site-nav ul { display: grid; padding: .5rem 1.25rem 1rem; }
.site-nav a {
  display: block; padding: .75rem .25rem; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--border); font-weight: 500;
}
.site-nav a[aria-current="true"] { color: var(--accent); }
.site-nav .nav-cta { color: var(--accent); font-weight: 650; border-bottom: 0; }

@media (min-width: 1180px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; order: 2; }
  .site-nav ul { display: flex; gap: .1rem; padding: 0; align-items: center; }
  .site-nav a { padding: .45rem .6rem; border: 0; border-radius: 8px; font-size: .88rem; color: var(--muted); }
  .site-nav a:hover { color: var(--text); background: var(--surface-2); }
  .site-nav a[aria-current="true"] { color: var(--accent); background: var(--accent-soft); }
  .site-nav .nav-cta { border: 1px solid var(--accent); color: var(--accent); }
  .nav-wrap { gap: .75rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.25rem; border-radius: 10px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s;
}
.btn-primary { background: var(--accent-strong); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: .4rem .8rem; font-size: .85rem; background: var(--surface); color: var(--text); border-color: var(--border); font-family: var(--font-mono); }
.btn-small:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { margin-bottom: 2.25rem; max-width: 760px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.lead { color: var(--muted); font-size: 1.08rem; margin: .9rem 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .6rem;
}
.eyebrow::before { content: "//"; opacity: .6; }
.hero .eyebrow::before { content: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.footnote { color: var(--muted); font-size: .88rem; margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  background: radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--bg);
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
}
.hero-grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.25fr .85fr; gap: 3.5rem; } }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); letter-spacing: -0.03em; }
.accent-text { color: var(--accent); }
.hero-role { font-family: var(--font-mono); font-size: clamp(.95rem, 2.3vw, 1.15rem); color: var(--text); margin: 1rem 0 1.25rem; }
.hero-summary { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; }
.hero-meta { display: grid; gap: .5rem; color: var(--muted); font-size: .95rem; }
.hero-meta li { display: flex; align-items: center; gap: .6rem; }
.hero-meta svg { color: var(--accent); flex: none; }

.term { background: var(--term-bg); color: var(--term-text); border: 1px solid #25382f; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-family: var(--font-mono); font-size: .9rem; }
.term-bar { display: flex; align-items: center; gap: .4rem; padding: .65rem .9rem; border-bottom: 1px solid #25382f; background: #0a120e; }
.tdot { width: 11px; height: 11px; border-radius: 50%; }
.tdot.r { background: #ff6b6b; } .tdot.y { background: #f4c45a; } .tdot.g { background: #4be3a0; }
.term-title { margin-left: .6rem; color: var(--term-muted); font-size: .8rem; }
.term-body { padding: 1.25rem; }
.term-line { margin: 0 0 .6rem; overflow-wrap: anywhere; }
.term-line.muted { color: var(--term-muted); margin: 1rem 0 0; }
.prompt { color: var(--term-accent); }
.cmd { color: #fff; }
.term-list { display: grid; gap: .4rem; margin-left: .2rem; }
.ok { color: var(--term-accent); font-weight: 700; margin-right: .4rem; }
.avatar {
  width: 112px; height: 112px; border-radius: 50%; margin-bottom: 1.1rem;
  overflow: hidden; background: #fff; border: 3px solid var(--term-accent);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Client band ---------- */
.client-band { background: var(--surface); border-block: 1px solid var(--border); }
.client-wrap { display: grid; gap: .5rem 1.5rem; padding-block: 1.5rem; align-items: center; }
@media (min-width: 900px) { .client-wrap { grid-template-columns: auto 1fr; } }
.client-k { margin: 0; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.client-k::before { content: "// "; opacity: .6; }
.client-text { margin: 0; font-size: 1.05rem; max-width: 80ch; }
.client-text a { color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.client-text a:hover { color: var(--accent); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; } }
.prose p { font-size: 1.05rem; max-width: 65ch; }
.pillars { display: grid; gap: .75rem; }
.pillars li {
  display: grid; grid-template-columns: auto 1fr; column-gap: .9rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1rem;
}
.pillar-k { grid-row: span 2; font-family: var(--font-mono); color: var(--accent); font-weight: 700; padding-top: .1rem; }
.pillars span:not(.pillar-k) { color: var(--muted); font-size: .92rem; }

/* ---------- Metrics ---------- */
.metrics { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .metrics { grid-template-columns: repeat(3, 1fr); } }
.metric {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow);
}
.metric .badge { align-self: flex-start; }
.metric-num { font-family: var(--font-mono); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.1; margin: .8rem 0 .4rem; color: var(--text); letter-spacing: -0.03em; }
.metric-num .plus { color: var(--accent); }
.metric-label { margin: 0 0 .6rem; font-weight: 500; }
.metric-ctx { margin: auto 0 0; padding-top: .5rem; border-top: 1px dashed var(--border); color: var(--muted); font-size: .85rem; font-family: var(--font-mono); line-height: 1.5; }
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  padding: .2rem .55rem; border-radius: 999px; border: 1px solid transparent;
}
.badge::before { content: "✓"; }
.b-authored { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.b-declared { background: var(--blue-soft); color: var(--blue); border-color: color-mix(in srgb, var(--blue) 35%, transparent); }
.b-declared::before { content: "≡"; }
.b-opened { background: var(--amber-soft); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.b-opened::before { content: "#"; }

/* ---------- Skills ---------- */
.skill-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.skill-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.skill-card h3 { font-family: var(--font-mono); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .25rem .65rem; font-size: .9rem; }
.chips li small { color: var(--muted); }
.chips-accent li { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); font-weight: 600; }
.chips-small { margin: .25rem 0 1rem; }
.evidence { margin-top: 2.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.evidence h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.table-wrap { overflow-x: auto; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 460px; }
th, td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
tbody th { font-weight: 650; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* ---------- Case studies ---------- */
.toolbar { display: flex; gap: .5rem; margin-top: 1.25rem; }
.cases { display: grid; gap: .9rem; }
@media (min-width: 1000px) { .cases { grid-template-columns: 1fr 1fr; align-items: start; } }
.case { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.case[open] { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.case summary {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: start;
  padding: 1.1rem 1.25rem; cursor: pointer; list-style: none;
}
.case summary::-webkit-details-marker { display: none; }
.case summary:hover { background: var(--surface-2); }
.case summary:focus-visible { outline-offset: -3px; }
.case-num { font-family: var(--font-mono); font-weight: 700; color: var(--accent); font-size: 1.05rem; padding-top: .1rem; }
.case-title { display: block; font-weight: 650; font-size: 1.05rem; line-height: 1.35; }
.case-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.case-tags span { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: .1rem .45rem; }
.chev { width: 10px; height: 10px; margin-top: .5rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.case[open] .chev { transform: rotate(-135deg); margin-top: .75rem; }
.case-body { padding: 0 1.25rem 1.25rem; border-top: 1px solid var(--border); }
.star { margin: 0; }
.star > div { display: grid; gap: .25rem; padding: 1rem 0; border-bottom: 1px dashed var(--border); }
.star > div:last-child { border-bottom: 0; padding-bottom: .25rem; }
.star dt { font-family: var(--font-mono); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.star dd { margin: 0; }
.star ul { display: grid; gap: .45rem; }
.star ul li { position: relative; padding-left: 1.1rem; }
.star ul li::before { content: "›"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.caveat { margin: .75rem 0 0; padding: .6rem .8rem; background: var(--amber-soft); color: var(--text); border-left: 3px solid var(--amber); border-radius: 6px; font-size: .92rem; }
.caveat-k { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--amber); margin-right: .5rem; }

/* ---------- Cards (AI, edu) ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.card-kicker { font-family: var(--font-mono); font-size: .75rem; color: var(--accent); letter-spacing: .04em; margin: 0 0 .6rem; }
.tick { display: grid; gap: .5rem; margin-top: .75rem; }
.tick li { position: relative; padding-left: 1.5rem; font-size: .96rem; }
.tick li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; font-family: var(--font-mono); }
.ai-grid { display: grid; gap: 1.1rem; }
@media (min-width: 900px) { .ai-grid { grid-template-columns: 1fr 1fr; } }


/* ---------- Delivery flow ---------- */
.flow-block { margin-top: 2.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 2rem); box-shadow: var(--shadow); }
.flow-head { max-width: 80ch; }
.flow-head h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.flow-fig { margin: 1.5rem 0 0; }
.flow-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.flow-scroll svg { display: block; width: 100%; min-width: 900px; height: auto; }
.flow-scroll svg { display: block; width: 100%; min-width: 900px; height: auto; }
.flow-fig figcaption { margin-top: .75rem; color: var(--muted); font-size: .92rem; }


/* ---------- Governance ---------- */
.gov { margin-top: 2.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 2rem); box-shadow: var(--shadow); }
.gov h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.gov > p { max-width: 80ch; }
.gov-grid { display: grid; gap: 1rem; margin-top: 1.25rem; }
@media (min-width: 760px) { .gov-grid { grid-template-columns: 1fr 1fr; } }
.gov-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.2rem; }
.gov-card h4 { font-size: 1.02rem; margin: 0 0 .75rem; }
.gov-card p { margin: 0 0 .75rem; font-size: .93rem; }
.gov-card p:last-child { margin-bottom: 0; }
.gov-team { color: var(--muted); }
.gov-me { padding: .6rem .8rem; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 6px; }
.gov-k { display: block; font-family: var(--font-mono); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .15rem; }
.gov-team .gov-k { color: var(--muted); }
.platform-ctx { margin: 0 0 1.75rem; color: var(--muted); max-width: 80ch; font-size: .96rem; }
/* ---------- Board snapshot ---------- */
.board { margin-top: 2.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 2rem); box-shadow: var(--shadow); }
.board h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.board > p { max-width: 80ch; }
.bgrid { display: grid; gap: 1rem; margin-top: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.bstat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; }
.bstat h4, .rel h4 { font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin: 0 0 .8rem; }
.bars { display: grid; gap: .65rem; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label val" "track track"; column-gap: .75rem; row-gap: .25rem; align-items: baseline; }
.bar-label { grid-area: label; font-size: .92rem; font-weight: 500; }
.bar-label small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; line-height: 1.4; }
.bar-val { grid-area: val; font-family: var(--font-mono); font-weight: 700; font-size: .92rem; }
.bar-track { grid-area: track; display: block; height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: 999px; }
.bars .is-none .bar-fill { background: var(--muted); opacity: .55; }
.bars .is-none .bar-label, .bars .is-none .bar-val { color: var(--muted); }
.bnote { margin: .9rem 0 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.rel { margin-top: 1.75rem; }
.rel-scroll { overflow-x: auto; padding-bottom: .5rem; margin-top: .75rem; }
.rel-chart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(20px, 1fr); gap: 4px; min-width: 780px; height: 230px; }
.col { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; min-width: 0; }
.cw { display: flex; align-items: flex-end; width: 100%; height: 100%; }
.cb { display: block; width: 100%; height: var(--h); background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; }
.cv { font-family: var(--font-mono); font-size: .66rem; color: var(--text); margin-top: .25rem; }
.cl { font-family: var(--font-mono); font-size: .62rem; color: var(--muted); border-top: 1px solid var(--border); width: 100%; text-align: center; padding-top: .2rem; }
.rel-table { margin-top: 1rem; }
.rel-table summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: .3rem 0; }
.rel-table table { min-width: 0; }
td.num { font-family: var(--font-mono); text-align: right; }
th[scope="col"]:last-child { text-align: right; }

/* Simplified workflow */
.steps { counter-reset: step; display: grid; gap: .75rem; margin-top: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(7, 1fr); gap: .6rem; } }
.step { counter-increment: step; position: relative; display: flex; flex-direction: column; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: .9rem .85rem; }
.step-n::before { content: counter(step); display: grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-bottom: .6rem; background: var(--term-bg); color: var(--term-accent); border-radius: 7px; font-family: var(--font-mono); font-size: .85rem; font-weight: 700; }
.step h4 { margin: 0 0 .45rem; font-size: .98rem; line-height: 1.25; }
.step p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.step .own { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .55rem; }
.own span { font-family: var(--font-mono); font-size: .68rem; font-weight: 700; padding: .1rem .4rem; border-radius: 5px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.own span.qa { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.loops { margin: 1rem 0 0; padding: .65rem .9rem; background: var(--amber-soft); border-left: 3px solid var(--amber); border-radius: 6px; font-size: .92rem; }
.loops-k { font-family: var(--font-mono); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); margin-right: .6rem; }
.flow-more { margin-top: 1.25rem; }
.flow-more summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: .3rem 0; }
/* fw:start */
.fw { font-family: var(--font-sans); }
.fw .e { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.fw .e.g { stroke: var(--muted); } .fw .e.t { stroke: var(--accent); } .fw .e.r { stroke: var(--danger); }
.fw .mk { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fw .mk.g { stroke: var(--muted); } .fw .mk.t { stroke: var(--accent); } .fw .mk.r { stroke: var(--danger); }
.fw .act { fill: var(--surface); stroke: var(--fw-line); stroke-width: 2; }
.fw .qa { fill: var(--surface); stroke: var(--accent); stroke-width: 3; }
.fw .art { fill: var(--accent-soft); stroke: var(--fw-art); stroke-width: 2; }
.fw .dec { fill: var(--amber-soft); stroke: var(--amber); stroke-width: 2; }
.fw .term { fill: var(--term-bg); stroke: var(--term-accent); stroke-width: 2.5; }
.fw .tx { fill: var(--text); font-size: 19px; text-anchor: middle; }
.fw .tm { fill: var(--term-accent); font-family: var(--font-mono); font-size: 19px; font-weight: 700; text-anchor: middle; }
.fw .pin-l { stroke: var(--muted); stroke-width: 3; stroke-linecap: round; } .fw .pin-h { fill: var(--amber); }
.fw .py { fill: var(--accent); } .fw .pn { fill: var(--danger); }
.fw .ly, .fw .ln { font-family: var(--font-mono); font-size: 16px; font-weight: 700; text-anchor: middle; }
.fw .ly { fill: var(--on-accent); } .fw .ln { fill: var(--on-danger); }
.fw .leg { fill: var(--surface-2); stroke: var(--border); stroke-width: 2; }
.fw .lt { fill: var(--muted); font-family: var(--font-mono); font-size: 16px; text-anchor: start; }
/* fw:end */

/* board:start */
/* ---------- Board snapshot ---------- */
.board { margin-top: 2.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 2rem); box-shadow: var(--shadow); }
.board h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.board > p { max-width: 80ch; }
.bgrid { display: grid; gap: 1rem; margin-top: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.bstat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; }
.bstat h4, .rel h4 { font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin: 0 0 .8rem; }
.bars { display: grid; gap: .65rem; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label val" "track track"; column-gap: .75rem; row-gap: .25rem; align-items: baseline; }
.bar-label { grid-area: label; font-size: .92rem; font-weight: 500; }
.bar-label small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; line-height: 1.4; }
.bar-val { grid-area: val; font-family: var(--font-mono); font-weight: 700; font-size: .92rem; }
.bar-track { grid-area: track; display: block; height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: 999px; }
.bars .is-none .bar-fill { background: var(--muted); opacity: .55; }
.bars .is-none .bar-label, .bars .is-none .bar-val { color: var(--muted); }
.bnote { margin: .9rem 0 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.rel { margin-top: 1.75rem; }
.rel-scroll { overflow-x: auto; padding-bottom: .5rem; margin-top: .75rem; }
.rel-chart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(20px, 1fr); gap: 4px; min-width: 780px; height: 230px; }
.col { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; min-width: 0; }
.cw { display: flex; align-items: flex-end; width: 100%; height: 100%; }
.cb { display: block; width: 100%; height: var(--h); background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; }
.cv { font-family: var(--font-mono); font-size: .66rem; color: var(--text); margin-top: .25rem; }
.cl { font-family: var(--font-mono); font-size: .62rem; color: var(--muted); border-top: 1px solid var(--border); width: 100%; text-align: center; padding-top: .2rem; }
.rel-table { margin-top: 1rem; }
.rel-table summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: .3rem 0; }
.rel-table table { min-width: 0; }
td.num { font-family: var(--font-mono); text-align: right; }
th[scope="col"]:last-child { text-align: right; }
/* board:end */

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 1.5rem; }
.tl-item { display: grid; gap: .6rem; position: relative; padding-left: 1.5rem; }
.tl-item::before { content: ""; position: absolute; left: 4px; top: .5rem; bottom: -1.5rem; width: 2px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-item::after { content: ""; position: absolute; left: 0; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg-alt); }
.tl-date { font-family: var(--font-mono); font-weight: 700; color: var(--accent); margin: 0; }
.tl-loc { margin: 0; color: var(--muted); font-size: .9rem; }
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow); }
.tl-card h3 { font-size: 1.2rem; }
.tl-org { color: var(--muted); font-weight: 500; margin: .2rem 0 .35rem; }
.tl-client { display: inline-block; margin: 0 0 1rem; padding: .2rem .6rem; font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 8px; }
.tl-card ul { display: grid; gap: .55rem; }
.tl-card li { position: relative; padding-left: 1.1rem; }
.tl-card li::before { content: "›"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
@media (min-width: 860px) {
  .tl-item { grid-template-columns: 220px 1fr; gap: 2rem; padding-left: 0; }
  .tl-item::before { left: 220px; margin-left: 1rem; }
  .tl-item::after { left: 220px; margin-left: calc(1rem - 4px); }
  .tl-meta { text-align: right; padding-right: 1.5rem; padding-top: .2rem; }
  .tl-card { margin-left: 1.5rem; }
}

/* ---------- Platform ---------- */
.callout { background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 45%, var(--border)); border-left: 4px solid var(--amber); border-radius: 10px; padding: 1rem 1.25rem; margin: 0 0 1.75rem; }
.callout-k { display: block; font-family: var(--font-mono); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); margin-bottom: .2rem; }
.scale { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.scale-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.scale-num { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.4rem); line-height: 1.1; margin: 0 0 .4rem; letter-spacing: -0.03em; }
.scale-num span { color: var(--accent); }
.scale-label { font-weight: 500; margin: 0 0 .6rem; }
.scale-sys { color: var(--muted); font-size: .88rem; margin: 0; padding-top: .6rem; border-top: 1px dashed var(--border); }

/* ---------- Education ---------- */
.edu-grid { display: grid; gap: 1.1rem; }
@media (min-width: 900px) { .edu-grid { grid-template-columns: 1fr 1.1fr; } }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.facts li { background: var(--accent-soft); border-radius: 8px; padding: .3rem .7rem; font-weight: 600; }
.facts .mono { color: var(--accent); margin-right: .35rem; }

/* ---------- Transparency ---------- */
.trans-grid { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .trans-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.rules { display: grid; gap: .9rem; counter-reset: rule; }
.rules li { counter-increment: rule; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem 1.1rem 3.6rem; }
.rules li::before { content: counter(rule, decimal-leading-zero); position: absolute; left: 1.1rem; top: 1.15rem; font-family: var(--font-mono); font-weight: 700; color: var(--accent); }
.rules h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.rules p { margin: 0; color: var(--muted); font-size: .96rem; }
.notclaimed { background: var(--term-bg); color: var(--term-text); border-radius: var(--radius); padding: 1.5rem; border: 1px solid #25382f; }
.notclaimed h3 { font-family: var(--font-mono); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--term-accent); margin-bottom: 1rem; }
.notclaimed ul { display: grid; gap: .6rem; }
.notclaimed li { position: relative; padding-left: 1.5rem; font-size: .95rem; }
.notclaimed li::before { content: "✗"; position: absolute; left: 0; color: #ff8d8d; font-weight: 700; font-family: var(--font-mono); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start; } }
.contact-list { display: grid; gap: .75rem; }
.contact-list li { display: grid; gap: .1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .8rem 1rem; }
.c-k { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-list a { font-weight: 600; overflow-wrap: anywhere; }
.contact-cta { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.contact-cta h3 { margin-bottom: .3rem; }
.contact-cta .btn { margin-top: .5rem; }
.c-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.c-links a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 1.75rem 0; font-size: .92rem; }
.footer-grid { display: grid; gap: .5rem; }
.footer-grid p { margin: 0; }
.footer-note { margin: 1rem 0 0; font-size: .82rem; max-width: 80ch; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; } }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Print ---------- */
@media print {
  .site-header, .skip-link, .toolbar, .hero::before { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  body { background: #fff; color: #000; }
  .section { padding: 1.5rem 0; }
}
