:root {
  --bg: #0a0d14;
  --bg-2: #0f1420;
  --panel: #121826;
  --panel-2: #171f30;
  --line: #222c40;
  --text: #e6ebf5;
  --muted: #8c97ad;
  --accent: #3ee6f5;
  --accent-dim: rgba(62, 230, 245, .14);
  --accent-2: #ffb547;
  --accent-2-dim: rgba(255, 181, 71, .12);
  --violet: #a78bfa;
  --violet-dim: rgba(167, 139, 250, .14);
  --ok: #3ef58a;
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(62,230,245,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62,230,245,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}

/* boot */
#boot {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center; transition: opacity .5s ease, visibility .5s;
}
#boot.done { opacity: 0; visibility: hidden; }
#boot p { font-family: var(--mono); color: var(--accent); letter-spacing: .3em; font-size: 14px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* nav */
header.nav {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px);
  background: rgba(10,13,20,.75); border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 24px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.logo span { color: var(--accent); }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 28px; list-style: none; }
.nav ul a { font-size: 14px; color: var(--muted); transition: color .2s; position: relative; }
.nav ul a:hover, .nav ul a.current { color: var(--text); }
.nav ul a::before {
  content: "▸"; position: absolute; left: -14px; color: var(--accent);
  opacity: 0; transform: translateX(-4px); transition: .2s;
}
.nav ul a:hover::before, .nav ul a.current::before { opacity: 1; transform: none; }
.nav .btn { padding: 9px 16px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; font-family: var(--mono); font-size: 12px; cursor: pointer; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px;
  border-radius: 10px; font-weight: 600; font-size: 15px; font-family: var(--body);
  border: 1px solid var(--line); transition: .2s ease; cursor: pointer; background: transparent; color: var(--text);
}
.btn-primary { background: var(--accent); color: #041015; border-color: var(--accent); }
.btn-primary:hover { box-shadow: 0 0 0 4px var(--accent-dim), 0 8px 30px rgba(62,230,245,.25); transform: translateY(-1px); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn kbd { font-family: var(--mono); font-size: 11px; opacity: .7; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero (home) */
.hero { padding: 96px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(38px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -.02em; margin: 14px 0 20px;
}
.hl { color: var(--accent); }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 42ch; margin-bottom: 32px; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.typed { color: var(--accent); border-right: 3px solid var(--accent); padding-right: 4px; animation: caret 1s steps(2) infinite; white-space: nowrap; }
@keyframes caret { 50% { border-color: transparent; } }

/* page hero (inner pages) */
.page-hero { padding: 80px 0 48px; }
.page-hero h1 { font-family: var(--display); font-size: clamp(36px, 5vw, 56px); letter-spacing: -.02em; line-height: 1.08; margin: 12px 0 16px; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 60ch; }

/* character card */
.char {
  position: relative; background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}
.char::after {
  content: ""; position: absolute; top: 0; right: 0; width: 40px; height: 40px;
  background: linear-gradient(225deg, var(--accent) 0 28px, transparent 28px);
}
.char-head { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.avatar {
  width: 68px; height: 68px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--accent);
  background: var(--accent-dim); border: 1px solid rgba(62,230,245,.35);
}
.char-head h3 { font-family: var(--display); font-size: 20px; }
.char-head .mono { font-size: 12px; color: var(--muted); }
.char dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; margin-bottom: 22px; }
.char dt { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.bar { margin-bottom: 12px; }
.bar-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.bar-track { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #7af0ff); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.bar-fill.amber { background: linear-gradient(90deg, var(--accent-2), #ffd28a); }
.bar-fill.violet { background: linear-gradient(90deg, var(--violet), #cbb8ff); }

/* stats strip */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat b { display: block; font-family: var(--display); font-size: 34px; font-weight: 700; }
.stat b em { font-style: normal; color: var(--accent); }
.stat span { font-size: 14px; color: var(--muted); }

/* sections */
section.block { padding: 96px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 44px; max-width: 640px; }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.sec-head h2 { font-family: var(--display); font-size: clamp(30px, 4vw, 42px); letter-spacing: -.015em; line-height: 1.1; margin-top: 10px; }
.sec-head p { color: var(--muted); margin-top: 14px; max-width: 60ch; }
.link-arrow { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.link-arrow:hover { text-decoration: underline; }

/* service cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; transition: .25s ease; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(62,230,245,.08), transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: rgba(62,230,245,.4); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card h3 { font-family: var(--display); font-size: 21px; margin: 14px 0 10px; line-height: 1.25; }
.card p { color: var(--muted); font-size: 15px; }
.icon {
  width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; font-size: 15px;
  background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(62,230,245,.3);
}
.icon.violet { background: var(--violet-dim); color: var(--violet); border-color: rgba(167,139,250,.35); }
.icon.amber { background: var(--accent-2-dim); color: var(--accent-2); border-color: rgba(255,181,71,.35); }
.card ul.ticks { list-style: none; margin-top: 16px; font-size: 14px; color: var(--muted); }
.card ul.ticks li { padding: 4px 0 4px 20px; position: relative; }
.card ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); }
.card .more { margin-top: 18px; display: inline-block; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.card.featured { border-color: rgba(167,139,250,.45); background: linear-gradient(160deg, rgba(167,139,250,.08), var(--panel) 50%); }
.ribbon { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; padding: 3px 8px; border-radius: 4px; background: var(--violet-dim); color: var(--violet); }

/* project cards */
.proj .thumb {
  aspect-ratio: 16/9; border-radius: 10px; margin: -8px -8px 20px; border: 1px solid var(--line);
  display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--muted);
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,.015) 12px 24px),
    linear-gradient(135deg, var(--panel-2), var(--bg-2));
}
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.impact { margin-top: 16px; font-size: 14px; color: var(--text); display: flex; gap: 8px; }
.impact::before { content: "▲"; color: var(--ok); font-size: 10px; padding-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); }
.card.locked { border-style: dashed; display: grid; place-items: center; text-align: center; min-height: 220px; }
.card.locked .lockt { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.card.locked h3 { color: var(--muted); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter {
  font-family: var(--mono); font-size: 13px; padding: 8px 14px; border-radius: 8px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); transition: .2s;
}
.filter:hover { color: var(--text); }
.filter.on { color: #041015; background: var(--accent); border-color: var(--accent); }
.proj.hide { display: none; }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-size: 13px; color: var(--accent); display: block; margin-bottom: 14px;
}
.step h3 { font-family: var(--display); font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* skills */
.skill-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.skill-card h3 { font-family: var(--display); font-size: 18px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: baseline; }
.skill-card h3 small { font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 400; }
.skill-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; gap: 12px; }
.skill-row:last-child { border-bottom: none; }
.pips { display: flex; gap: 4px; flex-shrink: 0; }
.pips i { width: 14px; height: 6px; border-radius: 2px; background: var(--line); }
.pips i.on { background: var(--accent); box-shadow: 0 0 6px rgba(62,230,245,.5); }

/* quest log */
.quests { position: relative; padding-left: 36px; }
.quests::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--line) 30%); }
.quest { position: relative; margin-bottom: 22px; }
.quest::before {
  content: ""; position: absolute; left: -34px; top: 26px; width: 14px; height: 14px;
  transform: rotate(45deg); background: var(--bg); border: 2px solid var(--line);
}
.quest.active::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.quest-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.quest-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.quest h3 { font-family: var(--display); font-size: 20px; }
.quest .co { color: var(--accent); font-weight: 500; }
.quest .when { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.badge { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; padding: 3px 8px; border-radius: 4px; background: var(--accent-dim); color: var(--accent); margin-left: 8px; vertical-align: middle; }
.quest ul { margin-top: 12px; padding-left: 18px; color: var(--muted); font-size: 15px; }
.quest li { margin-bottom: 6px; }
.quest li::marker { color: var(--accent); content: "› "; }
.quest li b { color: var(--text); font-weight: 600; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.prose p { color: var(--muted); font-size: 17px; margin-bottom: 18px; }
.prose p b { color: var(--text); font-weight: 600; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ach { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: 14px; }
.ach .icon { width: 38px; height: 38px; font-size: 12px; }
.ach small { display: block; color: var(--muted); font-size: 12px; }

.degree {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(160deg, var(--accent-2-dim), var(--panel) 60%);
  border: 1px solid rgba(255,181,71,.35); border-radius: var(--radius); padding: 28px;
}
.degree > div:nth-child(2) { flex: 1; min-width: 220px; }
.degree h3 { font-family: var(--display); font-size: 22px; line-height: 1.25; }
.degree .co { color: var(--accent-2); margin-top: 4px; }
.degree .when { font-size: 13px; color: var(--muted); }
.degree .icon { width: 56px; height: 56px; font-size: 17px; }

/* cta band */
.cta-band {
  text-align: center; padding: 72px 32px; border-radius: 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(62,230,245,.12), transparent 60%), var(--panel);
  border: 1px solid var(--line);
}
.cta-band h2 { font-family: var(--display); font-size: clamp(30px, 4.5vw, 46px); margin: 12px 0 14px; letter-spacing: -.02em; }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0 auto 30px; }
.cta-band .cta-row { justify-content: center; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
form.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border-radius: 10px; font: inherit; font-size: 15px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text); transition: .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick input { display: none; }
.pick label {
  font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--muted);
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; margin: 0; transition: .2s;
}
.pick input:checked + label { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 16px; }
.side-card h3 { font-family: var(--display); font-size: 18px; margin-bottom: 12px; }
.side-card a.line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.side-card a.line:last-child { border-bottom: none; }
.side-card a.line span { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.side-card a.line:hover { color: var(--accent); }

/* footer */
footer { padding: 48px 0 36px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.foot-grid h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; font-weight: 600; }
.foot-grid a { display: block; padding: 3px 0; }
.foot-grid a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

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

/* toast */
#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140px); max-width: calc(100% - 32px);
  background: var(--panel-2); border: 1px solid var(--accent-2); color: var(--text);
  padding: 14px 20px; border-radius: 12px; font-family: var(--mono); font-size: 13px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5); transition: transform .4s cubic-bezier(.2,.8,.2,1); z-index: 90;
}
#toast.show { transform: translate(-50%, 0); }
#toast b { color: var(--accent-2); }

/* responsive */
@media (max-width: 960px) {
  .hero .wrap, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav nav { gap: 12px; }
  .nav ul {
    display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
  }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 14px 24px; }
  .nav ul a::before { display: none; }
  .menu-btn { display: block; }
  .hero { padding: 56px 0; }
  .page-hero { padding: 56px 0 32px; }
  .grid-2, .grid-3, .steps, .field-row, .foot-grid { grid-template-columns: 1fr; }
  section.block { padding: 64px 0; }
  .quests { padding-left: 26px; }
  .quest::before { left: -24px; }
  .quests::before { left: 4px; }
  form.panel { padding: 22px; }
}
@media (max-width: 420px) {
  .nav .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ======================================================================
   WordPress theme additions
   ====================================================================== */

.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--accent); color: #041015; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.admin-bar header.nav { top: 32px; }
@media (max-width: 782px) { .admin-bar header.nav { top: 46px; } }

/* WP menu current item */
.nav ul li.current-menu-item > a,
.nav ul li.current_page_item > a,
.nav ul li.current-menu-ancestor > a { color: var(--text); }
.nav ul li.current-menu-item > a::before,
.nav ul li.current_page_item > a::before { opacity: 1; transform: none; }

/* whole-card links */
.card-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.proj .thumb { overflow: hidden; letter-spacing: .14em; }
.proj .thumb img { width: 100%; height: 100%; object-fit: cover; }
.avatar-img { overflow: hidden; padding: 0; }
.avatar-img img { width: 100%; height: 100%; object-fit: cover; }

/* forms */
fieldset.field { border: 0; padding: 0; min-width: 0; }
fieldset.field legend { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.field label .opt { text-transform: none; letter-spacing: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: rgba(255, 92, 92, .1); border: 1px solid rgba(255, 92, 92, .45); color: #ffb3b3; padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 15px; }
.panel.notice { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 32px; }
.panel.notice.ok { border-color: rgba(62, 245, 138, .45); background: linear-gradient(160deg, rgba(62, 245, 138, .07), var(--panel) 60%); }
.panel.notice h2 { font-family: var(--display); font-size: 32px; margin: 10px 0 12px; }
.panel.notice p { color: var(--muted); margin-bottom: 24px; }

/* single project / posts */
.project-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.project-layout aside { position: sticky; top: 96px; }
.project-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 36px; }
.project-cover img { width: 100%; height: auto; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry h2 { font-family: var(--display); font-size: 26px; color: var(--text); margin: 36px 0 12px; letter-spacing: -.01em; }
.entry h2:first-child { margin-top: 0; }
.entry h3 { font-family: var(--display); font-size: 20px; color: var(--text); margin: 28px 0 10px; }
.entry ul, .entry ol { color: var(--muted); padding-left: 22px; margin-bottom: 18px; font-size: 17px; }
.entry li { margin-bottom: 6px; }
.entry a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry img { border-radius: 10px; height: auto; }
.entry code { font-family: var(--mono); font-size: .9em; background: var(--panel); border: 1px solid var(--line); padding: 2px 6px; border-radius: 5px; }
.entry pre { background: var(--panel); border: 1px solid var(--line); padding: 18px; border-radius: 10px; overflow-x: auto; margin-bottom: 18px; }
.entry pre code { border: 0; padding: 0; background: none; }
.entry blockquote { border-left: 3px solid var(--accent); padding-left: 18px; margin: 0 0 18px; }
.side-card h3 + .impact, .side-card .chips { margin-top: 0; }
.pager { margin-top: 40px; font-family: var(--mono); }
.pager .page-numbers { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; margin-right: 6px; }
.pager .current { background: var(--accent); color: #041015; border-color: var(--accent); }

.cta-section { padding-top: 0; }
.block.alt + .cta-section { padding-top: 96px; }

/* 404 */
.gameover { text-align: center; padding: 140px 0; }
.gameover h1 {
  font-family: var(--display); font-size: clamp(56px, 12vw, 140px); line-height: 1; margin: 16px 0;
  letter-spacing: .04em; color: var(--accent);
  text-shadow: 3px 0 rgba(255, 92, 140, .6), -3px 0 rgba(62, 230, 245, .6);
  animation: glitch 2.5s infinite steps(1);
}
.gameover p { color: var(--muted); font-size: 18px; margin-bottom: 32px; }
.gameover .cta-row { justify-content: center; }
@keyframes glitch { 0%, 92%, 100% { transform: none; } 94% { transform: translate(-3px, 1px) skewX(4deg); } 96% { transform: translate(3px, -1px) skewX(-4deg); } }

@media (max-width: 960px) {
  .project-layout { grid-template-columns: 1fr; }
  .project-layout aside { position: static; }
  .block.alt + .cta-section { padding-top: 64px; }
}

/* ======================================================================
   Mascot, power-ups, EXP bar
   ====================================================================== */
:root { --gold: #ffd23f; }

.avatar-mascot {
  width: 76px; height: 98px; padding: 0; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.avatar-mascot canvas { width: 64px; height: 92px; image-rendering: pixelated; }
.avatar-mascot.super {
  border-color: rgba(255, 210, 63, .75); background: rgba(255, 210, 63, .12);
  animation: auraPulse .45s ease-in-out infinite alternate;
}
@keyframes auraPulse {
  from { box-shadow: 0 0 10px rgba(255, 210, 63, .35), inset 0 0 10px rgba(255, 210, 63, .15); }
  to   { box-shadow: 0 0 24px rgba(255, 210, 63, .6), inset 0 0 18px rgba(255, 210, 63, .3); }
}

/* footer walker stands on the footer's top border */
footer.site-footer { position: relative; }
.walker {
  position: absolute; left: 0; bottom: 100%; width: 100%; height: 116px;
  image-rendering: pixelated; cursor: pointer;
}

/* power-up aura on primary buttons + glow on cards */
.btn-primary:hover { animation: btnAura .9s ease-in-out infinite alternate; }
@keyframes btnAura {
  from { box-shadow: 0 0 0 3px rgba(62, 230, 245, .18), 0 0 16px rgba(62, 230, 245, .35); }
  to   { box-shadow: 0 0 0 6px rgba(255, 210, 63, .12), 0 0 34px rgba(255, 210, 63, .45); }
}
.card:hover { box-shadow: 0 0 0 1px rgba(62, 230, 245, .15), 0 12px 40px -12px rgba(62, 230, 245, .35); }

/* EXP bar along the bottom of the sticky header */
.exp { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.exp-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--violet), var(--gold));
  box-shadow: 0 0 10px rgba(62, 230, 245, .6);
  transition: width .15s linear;
}
.exp-lbl {
  position: absolute; right: 16px; top: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px;
  opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s;
}
.exp.on .exp-lbl { opacity: 1; transform: none; }

/* screen flash (Konami) */
.flash {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 243, 160, .9), rgba(255, 210, 63, .35) 50%, transparent 80%);
  animation: flash .7s ease-out forwards;
}
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
#toast a { color: var(--accent-2); text-decoration: underline; }

/* ======================================================================
   Arcade
   ====================================================================== */
.cabinet {
  position: relative; border-radius: 20px; padding: 18px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(62, 230, 245, .25);
}
.cabinet-top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--muted);
  padding: 2px 6px 14px;
}
.cabinet-top b { color: var(--accent); font-weight: 600; }
.screen {
  position: relative; border-radius: 12px; overflow: hidden; border: 1px solid #1c2538;
  background: #070a10; aspect-ratio: 800 / 280;
}
.screen::after { /* CRT scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px);
}
#game { display: block; width: 100%; height: 100%; touch-action: manipulation; cursor: pointer; }
#game:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.controls { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.controls kbd {
  font-family: var(--mono); font-size: 11px; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 2px 7px; margin-right: 4px;
}
.legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.legend .ach { font-size: 13px; }
.legend canvas { width: 36px; height: auto; image-rendering: pixelated; flex-shrink: 0; }

@media (max-width: 760px) {
  .legend { grid-template-columns: 1fr 1fr; }
  .cabinet { padding: 10px; border-radius: 14px; }
  .screen { aspect-ratio: 2 / 1; }
}

/* 404 */
.gameover canvas { width: 232px; height: 148px; image-rendering: pixelated; margin: 0 auto 8px; display: block; }
.countdown { font-family: var(--mono); color: var(--accent-2); font-size: 15px; margin-bottom: 26px; }

@media (prefers-reduced-motion: reduce) {
  .walker { display: none; }
}

/* tighter nav on mid-size screens (6 items + button) */
@media (max-width: 1080px) and (min-width: 761px) {
  .nav ul { gap: 18px; }
  .nav ul a { font-size: 13px; }
  .nav nav { gap: 18px; }
}

/* 4-up grid (services engagement options) */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .grid-4 { grid-template-columns: 1fr; } }

/* tech stack marquee */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .chip { font-size: 13px; padding: 6px 14px; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 16px; } .marquee-track [aria-hidden] { display: none; } }

/* platform badges */
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.platforms .chip { color: var(--text); }
a.chip:hover { border-color: var(--accent); color: var(--accent); }

/* testimonials + proof */
.proof-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: stretch; }
.quote-card {
  margin: 0; position: relative; padding: 40px 40px 34px; border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(500px 200px at 0% 0%, rgba(255,181,71,.10), transparent 70%), var(--panel);
}
.quote-card::before { content: "“"; position: absolute; right: 30px; top: -10px; font-family: var(--display); font-size: 180px; line-height: 1; color: rgba(62,230,245,.08); }
.stars { color: var(--accent-2); letter-spacing: 4px; font-size: 18px; }
.quote-card blockquote { font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; margin: 18px 0 24px; color: var(--text); }
.quote-card figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.quote-card figcaption span { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.proof-stats { display: flex; flex-direction: column; gap: 14px; }
.proof-stat { display: flex; align-items: baseline; gap: 16px; padding: 20px 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.proof-stat b { font-family: var(--display); font-size: 34px; color: var(--accent); min-width: 96px; }
.proof-stat span { color: var(--muted); font-size: 15px; }
.proof-stats .btn { justify-content: center; }
@media (max-width: 960px) { .proof-grid { grid-template-columns: 1fr; } .quote-card { padding: 30px 24px; } }

/* review slider */
.quote-card .slides { position: relative; display: grid; }
.quote-card .slide { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateX(24px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.quote-card .slide.on { opacity: 1; transform: none; pointer-events: auto; }
.quote-card figcaption { flex-direction: row; align-items: center; gap: 14px; }
.quote-card figcaption > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.quote-card figcaption em { font-style: normal; font-size: 14px; color: var(--muted); }
.quote-card figcaption small { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.avatar-initials {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; color: var(--accent-2);
  background: var(--accent-2-dim); border: 1px solid rgba(255,181,71,.35);
}
.slider-nav { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.slider-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2);
  color: var(--text); cursor: pointer; font-size: 16px; transition: .2s;
}
.slider-btn:hover { border-color: var(--accent); color: var(--accent); }
.dots { display: flex; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: .3s; }
.dot.on { width: 26px; background: var(--accent-2); }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); }
.badges-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.badges .chip { color: var(--ok); border-color: rgba(62,245,138,.3); background: rgba(62,245,138,.06); }
.quote-card figcaption > span:last-child { font-family: var(--body); font-size: 15px; letter-spacing: 0; color: var(--text); }
.quote-card figcaption b { font-size: 16px; }

/* "leave a review" card */
.review-cta {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: 14px;
  border: 1px dashed rgba(255,181,71,.45); background: rgba(255,181,71,.05); transition: .2s;
}
.review-cta:hover { border-style: solid; background: rgba(255,181,71,.1); transform: translateY(-2px); }
.review-cta-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--accent-2-dim); flex-shrink: 0; }
.review-cta b { display: block; font-family: var(--display); font-size: 17px; }
.review-cta em { font-style: normal; font-size: 14px; color: var(--accent-2); }

/* "at a glance" strip for recruiters */
.glance { border-bottom: 1px solid var(--line); padding: 26px 0; }
.glance .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: center; }
.glance p { margin-top: 6px; font-size: 16px; }
.glance .chips { margin-top: 10px; }
.glance .chip { color: var(--text); }
.two-doors .btn-primary kbd { color: #041015; }
@media (max-width: 960px) { .glance .wrap { grid-template-columns: 1fr; gap: 18px; } }

/* About: what I'm looking for */
.looking {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start;
  padding: 36px; border-radius: 20px; border: 1px solid rgba(62,230,245,.3);
  background: radial-gradient(600px 240px at 0% 0%, rgba(62,230,245,.08), transparent 70%), var(--panel);
}
.looking h2 { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); margin: 10px 0 8px; }
.looking dl { display: grid; grid-template-columns: auto 1fr; gap: 14px 22px; font-size: 15px; }
.looking dt { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding-top: 2px; }
.looking dd { color: var(--muted); }
.looking dd b { color: var(--text); font-weight: 600; }
.looking .cta-row { grid-column: 1 / -1; }
@media (max-width: 860px) { .looking { grid-template-columns: 1fr; padding: 26px 22px; } .looking dl { grid-template-columns: 1fr; gap: 4px; } .looking dd { margin-bottom: 10px; } }

/* project source badges + source filter */
.proj-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.src { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.src-professional { color: var(--accent); background: var(--accent-dim); }
.src-freelance { color: var(--ok); background: rgba(62,245,138,.1); }
.src-personal { color: var(--violet); background: var(--violet-dim); }
.filters-src { margin-bottom: 12px; }
.filters-src .filter { font-family: var(--body); font-size: 14px; }
[hidden] { display: none !important; }

/* hero night sky: twinkling stars + server-rack skyline (drawn by main.js) */
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.services-grid .card { padding: 24px; }
.services-grid .card h3 { font-size: 19px; }
