/* ---------- Tokens (palette from the PyrusPhoenix sheet) ---------- */
:root {
  --bg: #faf3ee;
  --bg-2: #f3e5dc;
  --surface: #fffaf6;
  --ink: #1b1414;
  --muted: #6b5752;
  --line: #eed5ca;
  --red: #d63a22;
  --orange: #f07a26;
  --amber: #f6a632;
  --fire: linear-gradient(120deg, var(--red), var(--orange) 55%, var(--amber));
  --glow: rgba(240, 122, 38, .35);

  --radius: 20px;
  --shadow: 0 1px 0 rgba(0,0,0,.03), 0 14px 34px -16px rgba(120, 40, 10, .28);
  --font-display: 'Barlow Condensed', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --grid: rgba(140, 60, 30, .07);
  --code-bg: #140c0b;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0909;
    --bg-2: #1b1110;
    --surface: #181010;
    --ink: #f8ece5;
    --muted: #b8a19a;
    --line: #3a2320;
    --red: #ff5236;
    --orange: #ff8a3d;
    --amber: #ffb347;
    --glow: rgba(255, 110, 40, .45);
    --grid: rgba(255, 140, 90, .055);
    --shadow: 0 16px 40px -18px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0909;
  --bg-2: #1b1110;
  --surface: #181010;
  --ink: #f8ece5;
  --muted: #b8a19a;
  --line: #3a2320;
  --red: #ff5236;
  --orange: #ff8a3d;
  --amber: #ffb347;
  --glow: rgba(255, 110, 40, .45);
  --grid: rgba(255, 140, 90, .055);
  --shadow: 0 16px 40px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background .4s, color .4s;
}
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: .95; margin: 0; text-transform: uppercase; }
em {
  font-style: italic; background: var(--fire);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 10px; }

#embers { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
main, .nav, .footer { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding-top: 14px; padding-bottom: 14px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo img { width: 34px; height: auto; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.logo:hover img { transform: rotate(-12deg) scale(1.15); }
.logo span { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 26px; letter-spacing: .01em; }
.logo b { background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav nav { display: flex; gap: 4px; }
.nav nav a { text-decoration: none; font-weight: 500; padding: 8px 14px; border-radius: 999px; color: var(--muted); transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav nav .nav-cta { color: var(--ink); border: 1.5px solid var(--red); }
.nav nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.menu-toggle { display: none; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; font-size: 18px; display: grid; place-items: center;
}
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: inline; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--fire); color: #fff; box-shadow: 0 10px 24px -10px var(--red); }
.btn-primary:hover { box-shadow: 0 14px 30px -8px var(--orange); }
.btn-ghost { border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-lg { font-size: 20px; padding: 18px 32px; }

/* Red slanted panel label, like the character sheet */
.tag, .label {
  display: inline-block; position: relative;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: #fff; background: var(--red);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.tag { font-size: 15px; padding: 6px 26px 6px 14px; margin: 0 0 22px; }
.label { font-size: clamp(30px, 4vw, 44px); padding: 6px 40px 4px 18px; margin-bottom: 44px; }
.label::after {
  content: ''; position: absolute; left: 100%; bottom: 0; width: 120px; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 72px);
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px;
  padding: 24px 0 64px;
}
.hero h1 { font-size: clamp(50px, 7vw, 96px); font-weight: 800; }
.hero h1 em { display: inline-block; padding-right: .08em; }
.lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 22px 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { list-style: none; padding: 0; margin: 44px 0 0; display: flex; gap: 36px; }
.stats li { max-width: 130px; }
.stats strong { display: block; font-family: var(--font-display); font-size: 48px; font-weight: 800; line-height: 1; color: var(--orange); }
.stats span { color: var(--muted); font-size: 14px; }

.hero-stage { position: relative; display: grid; place-items: center; min-height: min(640px, calc(100vh - 110px)); perspective: 900px; }
.aura {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  animation: pulse 3.2s ease-in-out infinite;
  transition: transform .3s ease-out;
}
.stage-powered .aura { animation: flare 1.4s ease-out; }

.hero-character {
  position: relative; z-index: 2;
  width: min(300px, 70vw, calc((100vh - 170px) * .428));
}
.wing {
  opacity: 0; transform: rotate(var(--fold)) scale(.25);
  transition: transform .75s cubic-bezier(.22,1.45,.42,1), opacity .3s;
}
.wing-left { --fold: 62deg; --flap: -10deg; }
.wing-right { --fold: -62deg; --flap: 10deg; }
.stage-powered .wing { opacity: 1; transform: rotate(0) scale(1); animation: wingFlap 1.05s cubic-bezier(.45,0,.35,1) .75s infinite; }
.hint { position: absolute; bottom: 0; margin: 0; font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }

@keyframes pulse { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes flare { 0% { transform: scale(1); } 30% { transform: scale(1.6); opacity: 1; } 100% { transform: scale(1); } }
@keyframes wingFlap { 0%, 100% { transform: rotate(0) scale(1); } 45% { transform: rotate(var(--flap)) scale(1.02, .96); } }

/* ---------- Speech bubbles ---------- */
.bubble {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--red);
  padding: 10px 16px 10px 10px; border-radius: 18px;
  font-weight: 700; font-size: 16px; line-height: 1.3;
  box-shadow: 4px 4px 0 var(--red);
  max-width: 290px; min-height: 56px;
  opacity: 0; transform: translateY(8px) scale(.95);
  transition: opacity .25s, transform .3s cubic-bezier(.3,1.6,.5,1);
  pointer-events: none;
}
.bubble.show { opacity: 1; transform: none; }
.bubble::after {
  content: ''; position: absolute; bottom: -9px; left: 34px;
  width: 14px; height: 14px; background: var(--surface);
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(45deg);
}
.bubble-face { width: 40px; height: 40px; object-fit: cover; object-position: top; border-radius: 50%; background: var(--bg-2); flex: none; }
.bubble-face.pop { animation: pop .35s cubic-bezier(.3,1.8,.5,1); }
#heroBubble { top: 9%; right: calc(50% + 62px); width: max-content; max-width: min(250px, 40vw); }
#heroBubble::after { left: auto; right: -9px; bottom: auto; top: 22px; transform: rotate(-45deg); }
@keyframes pop { from { transform: scale(.4); } to { transform: scale(1); } }

/* ---------- Pyrix (cursor companion) ---------- */
.pyrix {
  position: fixed; left: 0; top: 0; z-index: 40; width: 64px;
  pointer-events: none; will-change: transform;
  filter: drop-shadow(0 0 12px rgba(255, 120, 40, .55));
}
.pyrix img { display: block; width: 100%; transform-origin: 60% 40%; animation: hover 0.5s ease-in-out infinite alternate; }
.pyrix.flip img { scale: -1 1; }
.menu-open .pyrix { opacity: 0; transition: opacity .2s; }
@keyframes hover { from { transform: translateY(-3px) rotate(-3deg); } to { transform: translateY(3px) rotate(3deg); } }

/* ---------- Mini avatar ---------- */
.mini {
  position: fixed; right: 22px; bottom: 20px; z-index: 30;
  padding: 0; border: 0; background: none; cursor: pointer;
  transform: translateY(160%); transition: transform .5s cubic-bezier(.3,1.5,.5,1);
}
.mini.visible { transform: none; }
.mini-ring {
  position: relative; display: block; width: 78px; height: 78px; border-radius: 50%; padding: 4px;
  background: conic-gradient(var(--red), var(--orange), var(--amber), var(--red));
  animation: spin 4s linear infinite;
  box-shadow: 0 0 24px var(--glow);
}
.mini-ring img {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; object-position: 50% 10%;
  background: var(--surface); animation: spin 4s linear infinite reverse;
}
.mini-ring img.pop { animation: spin 4s linear infinite reverse, pop .35s cubic-bezier(.3,1.8,.5,1); }
.mini-bubble {
  bottom: 100%; right: 6px; margin-bottom: 10px; padding: 10px 14px;
  width: max-content; max-width: 230px; font-size: 14px; min-height: 0;
}
.mini-bubble::after { left: auto; right: 28px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.pose { flex: none; }
.pose-punch { width: 190px; margin: -40px 0 18px; }
.pose-laptop { width: 210px; margin: -40px 0 14px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.3,1.5,.5,1), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--orange); box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--orange) 18%, transparent); }

/* About */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.big { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; margin-top: 0; font-weight: 600; }
.about-grid p { color: var(--muted); }
.about-grid .big { color: var(--ink); }
.facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-weight: 500; display: flex; gap: 10px; align-items: center; }
.facts span { font-size: 20px; }

.flip-card { aspect-ratio: 4 / 5; perspective: 1000px; cursor: pointer; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.4,1.4,.5,1); }
.flip-card:hover .flip-inner, .flip-card:focus-visible .flip-inner, .flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 26px; overflow: hidden; border: 1px solid var(--line);
  display: grid; place-items: center;
}
.flip-front { background: radial-gradient(circle at 50% 42%, #3a1410, #140908 70%); }
.flip-front img { width: 72%; filter: drop-shadow(0 0 28px rgba(255, 110, 40, .6)); animation: float 4s ease-in-out infinite; }
.flip-back { transform: rotateY(180deg); background: linear-gradient(160deg, var(--amber), var(--red)); align-items: end; }
.flip-back img { width: 88%; display: block; }
.flip-face span {
  position: absolute; left: 16px; bottom: 16px; padding: 4px 12px; border-radius: 999px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.skill-card { padding: 24px; }
.skill-card h3 { font-size: 30px; margin-bottom: 16px; }
.chips, .tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--bg-2); padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project { overflow: hidden; }
.thumb { aspect-ratio: 16 / 8; display: grid; place-items: center; font-size: 64px; }
.thumb > span { transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.project:hover .thumb > span { transform: scale(1.25) rotate(-8deg); }
.t1 { background: linear-gradient(135deg, #ffb58a, #d63a22); }
.t2 { background: linear-gradient(135deg, #3a2320, #0f0909); }
.t3 { background: linear-gradient(135deg, #ffd27a, #f07a26); }
.t4 { background: linear-gradient(135deg, #f6a632, #7a1c10); }
.project-body { padding: 22px 26px 26px; }
.project h3 { font-size: 34px; }
.project p { color: var(--muted); margin: 10px 0 16px; }
.tags li { font-size: 13px; font-weight: 700; color: var(--red); border: 1.5px solid currentColor; padding: 3px 10px; border-radius: 999px; }
.link { display: inline-block; margin-top: 16px; font-weight: 700; text-decoration: none; color: var(--orange); }
.link:hover { text-decoration: underline; }

/* Journey */
.journey-grid { display: grid; grid-template-columns: 1fr 220px; gap: 40px; align-items: end; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px dashed var(--line); display: grid; gap: 40px; }
.timeline li { position: relative; }
.timeline li::before {
  content: ''; position: absolute; left: -39px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--fire); box-shadow: 0 0 0 5px var(--bg), 0 0 18px var(--orange);
}
.timeline time { color: var(--orange); font-weight: 700; font-size: 14px; }
.timeline h3 { font-size: 32px; margin: 4px 0 6px; }
.timeline p { color: var(--muted); margin: 0; max-width: 620px; }
.pose-arms { width: 200px; }

/* Contact */
.contact-card { padding: 40px 56px 40px 24px; display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: center; }
.contact-card:hover { transform: none; }
.pose-wave { width: 100%; max-width: 260px; margin: 0 auto; }
.contact-card h3 { font-size: clamp(40px, 5vw, 64px); }
.contact-card p { color: var(--muted); max-width: 480px; margin: 12px 0 26px; }
.socials { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 24px; }
.socials a { font-weight: 700; color: var(--muted); text-decoration: none; }
.socials a:hover { color: var(--orange); }

.footer { padding-top: 40px; padding-bottom: 60px; color: var(--muted); font-size: 14px; text-align: center; border-top: 1px solid var(--line); }
.perch { position: absolute; width: 76px; top: -68px; right: 12%; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 280px 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  main, .nav, .footer { padding-left: 16px; padding-right: 16px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 8px; gap: 8px; }
  .hero-stage { order: -1; min-height: 480px; }
  .hero-character { width: 200px; }
  .aura { width: 320px; height: 320px; }
  #heroBubble { top: 0; right: 0; font-size: 14px; max-width: 220px; }
  #heroBubble::after { right: auto; left: 34px; top: auto; bottom: -9px; transform: rotate(45deg); }
  .stats { gap: 24px; }
  .stats strong { font-size: 38px; }
  .about-grid, .journey-grid, .contact-card { grid-template-columns: 1fr; }
  .flip-card { max-width: 320px; }
  .facts { grid-template-columns: 1fr; }
  .skills-grid, .work-grid { grid-template-columns: 1fr; }
  .pose-punch, .pose-laptop { width: 130px; margin-top: -20px; }
  .pose-arms { width: 150px; margin: 0 auto; }
  .contact-card { padding: 28px 20px; text-align: center; }
  .pose-wave { width: 220px; margin: 0 auto; }
  .contact-card p { margin-left: auto; margin-right: auto; }
  .socials { justify-content: center; }
  .section { padding: 72px 0; }
  .btn-lg { font-size: 16px; padding: 16px 22px; }
  .mini-ring { width: 62px; height: 62px; }
  .pyrix { width: 48px; }
}

/* ================= Pages & new components ================= */
.inline-link { color: var(--orange); font-weight: 700; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service { padding: 26px 24px; }
.service-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 26px; background: color-mix(in srgb, var(--orange) 16%, transparent); margin-bottom: 18px; }
.service h3 { font-size: 28px; margin-bottom: 10px; }
.service p { color: var(--muted); margin: 0; font-size: 15px; }
.service .link { margin-top: 12px; }

/* Case studies */
.project-kind { margin: 0 0 6px !important; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange) !important; }
.outcome { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.outcome strong { color: var(--ink); margin-right: 6px; }

/* Feature bands (AI / gaming teasers) */
.feature-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 48px; overflow: hidden; }
.feature-band:hover { transform: none; }
.feature-band .tag { margin-bottom: 16px; }
.feature-title { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 14px; }
.feature-band p { color: var(--muted); max-width: 560px; margin: 0 0 24px; }
.gaming-band { grid-template-columns: 220px 1fr; background:
  radial-gradient(circle at 12% 60%, color-mix(in srgb, var(--orange) 22%, transparent), transparent 55%), var(--surface); }
.pose-thumbs { width: 190px; margin: 0 auto; }
.mini-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.mini-flow li {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px;
  background: var(--bg-2); font-family: var(--font-display); font-size: 26px; font-weight: 800; text-transform: uppercase;
}
.mini-flow span { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: #fff; background: var(--fire); border-radius: 999px; padding: 3px 9px; }
.mini-flow li:nth-child(2) { margin-left: 18px; } .mini-flow li:nth-child(3) { margin-left: 36px; }
.mini-flow li:nth-child(4) { margin-left: 18px; }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; text-decoration: none; }
.post-card h3 { font-size: 30px; }
.post-card p { color: var(--muted); margin: 0; flex: 1; }
.post-meta { font-size: 13px; color: var(--muted); font-weight: 500; }
.post-cat { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1.5px solid currentColor; }
.cat-ai { color: #8b7bff; } .cat-ui { color: var(--orange); } .cat-ux { color: #2bb39a; } .cat-gaming { color: var(--red); }

/* Sub-page hero */
.page-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(52px, 7.5vw, 104px); font-weight: 800; }
.page-hero .lead { max-width: 600px; }
.page-hero .pose { width: min(300px, 70vw); margin: 0 auto; }

/* AI Lab: principles, workflow tabs, toolbox */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle { padding: 26px; }
.principle h3 { font-size: 28px; margin: 8px 0 8px; }
.principle p { color: var(--muted); margin: 0; }
.principle-num { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; }

.workflow { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.step-list { display: grid; gap: 8px; align-content: start; }
.step-list button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-family: var(--font-display); font-size: 26px; font-weight: 800; text-transform: uppercase;
  transition: transform .25s cubic-bezier(.3,1.5,.5,1), border-color .2s, background .2s;
}
.step-list button span { font-family: var(--font-body); font-size: 13px; color: var(--muted); }
.step-list button:hover { transform: translateX(4px); }
.step-list button[aria-selected="true"] { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, var(--surface)); }
.step-list button[aria-selected="true"] span { color: var(--orange); }
.step-panel { padding: 32px; }
.step-panel:hover { transform: none; }
.step-panel h3 { font-size: 40px; margin-bottom: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.split > div { padding: 18px; border-radius: 14px; background: var(--bg-2); }
.split h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.split p { margin: 0; color: var(--muted); font-size: 15px; }
.step-panel .chips li { background: color-mix(in srgb, var(--orange) 14%, transparent); }

.toolbox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-group { padding: 24px; }
.tool-group h3 { font-size: 26px; margin-bottom: 14px; }
.tool-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tool-list li { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.tool-list small { color: var(--muted); font-weight: 400; text-align: right; }

/* Blog index */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); transition: all .2s;
}
.filters button:hover { color: var(--ink); border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--fire); border-color: transparent; color: #fff; }
.post-list { display: grid; gap: 18px; }
.post-row { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px; text-decoration: none; }
.post-row h2 { font-size: clamp(30px, 3.4vw, 40px); margin: 10px 0 8px; }
.post-row p { margin: 0; color: var(--muted); max-width: 640px; }
.post-row .arrow { font-size: 32px; color: var(--orange); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.post-row:hover .arrow { transform: translateX(8px); }
.empty { color: var(--muted); }

/* Blog post */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--fire); transform-origin: 0 50%; transform: scaleX(0); z-index: 50; }
.post-header { max-width: 760px; margin: 0 auto; padding: 56px 0 24px; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--muted); text-decoration: none; font-weight: 700; }
.back-link:hover { color: var(--orange); }
.post-header h1 { font-size: clamp(44px, 6vw, 76px); margin: 16px 0 18px; }
.byline { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 10%; background: var(--bg-2); border: 2px solid var(--orange); }
.byline strong { color: var(--ink); display: block; }
.prose { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.75; }
.prose h2 { font-size: 38px; margin: 48px 0 12px; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 86%, var(--muted)); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { margin: 32px 0; padding: 18px 24px; border-left: 4px solid var(--orange); background: var(--bg-2); border-radius: 0 14px 14px 0; font-family: var(--font-display); font-size: 26px; line-height: 1.2; }
.prose code { background: var(--bg-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.post-end { max-width: 760px; margin: 56px auto 0; display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; padding: 28px; }
.post-end:hover { transform: none; }
.post-end h3 { font-size: 30px; margin-bottom: 8px; }
.post-end p { color: var(--muted); margin: 0 0 16px; }
.post-end .pose { width: 160px; }
.post-nav { max-width: 760px; margin: 24px auto 0; display: flex; justify-content: space-between; gap: 16px; }

/* Gaming: player card */
.player-card { display: grid; grid-template-columns: 300px 1fr; gap: 36px; padding: 36px; align-items: center; }
.player-card:hover { transform: none; }
.player-card .pose { width: 260px; margin: 0 auto; }
.player-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 24px; }
.player-meta div { padding: 12px 14px; border-radius: 12px; background: var(--bg-2); }
.player-meta dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.player-meta dd { margin: 2px 0 0; font-weight: 700; }
.stat-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stat-bars li { display: grid; grid-template-columns: 170px 1fr 44px; gap: 12px; align-items: center; font-weight: 700; font-size: 15px; }
.stat-bars .bar { height: 12px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.stat-bars .bar i { display: block; height: 100%; width: var(--v); background: var(--fire); border-radius: inherit; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.stat-bars li:nth-child(2) .bar i { transition-delay: .1s; } .stat-bars li:nth-child(3) .bar i { transition-delay: .2s; }
.stat-bars li:nth-child(4) .bar i { transition-delay: .3s; } .stat-bars li:nth-child(5) .bar i { transition-delay: .4s; }
.stat-bars.in .bar i { transform: scaleX(1); }
.stat-bars b { color: var(--orange); text-align: right; font-family: var(--font-display); font-size: 22px; }
.lessons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.lesson { padding: 26px; display: grid; grid-template-columns: 56px 1fr; gap: 16px; }
.lesson .service-icon { margin: 0; }
.lesson h3 { font-size: 28px; margin-bottom: 6px; }
.lesson p { margin: 0; color: var(--muted); }
.lesson em { font-style: normal; font-weight: 700; }

.quest { margin: 22px 0 0; padding: 14px 18px; border-radius: 14px; border: 1.5px dashed var(--orange); color: var(--muted); }
.quest strong { color: var(--ink); }
.feature-band .btn, .post-end .btn { margin: 4px 8px 4px 0; }
.prose pre { background: #150d0c; color: #ffd9c2; padding: 18px 20px; border-radius: 14px; overflow-x: auto; font-size: 14px; line-height: 1.6; border: 1px solid var(--line); }
.prose pre code { background: none; padding: 0; color: inherit; }
.post-nav .link { max-width: 48%; }
.footer-nav { display: flex; justify-content: center; gap: 22px; margin-bottom: 10px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-weight: 700; }
.footer-nav a:hover { color: var(--orange); }

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbox { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .menu-toggle {
    display: grid; align-content: center; gap: 5px; width: 42px; height: 42px; padding: 0 11px;
    border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .2s; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav nav {
    position: fixed; inset: 70px 12px auto 12px; z-index: 60;
    flex-direction: column; gap: 4px; padding: 12px; border-radius: 20px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; visibility: hidden;
    transition: opacity .2s, transform .25s cubic-bezier(.3,1.4,.5,1), visibility 0s .25s;
  }
  .menu-open .nav nav { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav nav a { padding: 14px 16px; font-size: 18px; }
  .post-grid, .principles { grid-template-columns: 1fr; }
  .feature-band, .gaming-band, .page-hero, .player-card, .workflow { grid-template-columns: 1fr; }
  .feature-band { padding: 32px 24px; }
  .page-hero .pose { order: -1; width: 200px; }
  .step-list { grid-template-columns: repeat(5, minmax(0, 1fr)); overflow-x: auto; }
  .step-list button { flex-direction: column; font-size: 18px; padding: 12px 8px; text-align: center; justify-content: center; }
  .lessons { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .services-grid, .toolbox, .split { grid-template-columns: 1fr; }
  .post-row { grid-template-columns: 1fr; padding: 22px; }
  .post-row .arrow { display: none; }
  .post-end { grid-template-columns: 1fr; text-align: center; }
  .post-end .pose { margin: 0 auto; }
  .player-meta { grid-template-columns: repeat(2, 1fr); }
  .stat-bars li { grid-template-columns: 1fr 44px; }
  .stat-bars .bar { grid-column: 1 / -1; grid-row: 2; }
  .step-list button { font-size: 15px; }
  .step-panel { padding: 22px; }
  .prose { font-size: 17px; }
}

/* ================= Developer & AI identity ================= */
/* design-canvas grid behind everything */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 80%);
}
.mono { font-family: var(--font-mono); }

/* typed role line */
.role-line { font-family: var(--font-mono); font-size: clamp(15px, 1.6vw, 19px); margin: 18px 0 0; color: var(--ink); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.role-line .prompt { color: var(--orange); }
.typed { font-weight: 600; }
.caret { display: inline-block; width: .55em; height: 1.15em; background: var(--orange); margin-left: -6px; animation: caret 1s steps(1) infinite; vertical-align: -0.15em; }
@keyframes caret { 50% { opacity: 0; } }

/* floating cards around the hero */
.float-card {
  position: absolute; z-index: 3; pointer-events: none;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.4;
  padding: 10px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: floaty 6s ease-in-out infinite;
}
.fc-code { top: -1%; right: -6%; display: grid; gap: 4px; }
.fc-file { font-size: 11px; color: var(--muted); }
.fc-ai { bottom: 17%; right: 0; display: flex; align-items: center; gap: 8px; animation-delay: -2s; }
.fc-a11y { top: 38%; right: 2%; display: grid; text-align: center; animation-delay: -4s; }
.fc-a11y b { font-family: var(--font-display); font-size: 22px; line-height: 1; color: #2bb39a; }
.fc-a11y span { font-size: 11px; color: var(--muted); }
.fc-spark, .pg-spark { color: #8b7bff; font-size: 15px; }
.dots { display: inline-flex; gap: 3px; }
.dots i, .pg-thinking i { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); animation: blink 1.2s infinite; }
.dots i:nth-child(2), .pg-thinking i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3), .pg-thinking i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.t-tag { color: #ff7a5c; } .t-attr { color: #f6a632; } .t-str { color: #7ee0b5; } .t-key { color: #b79cff; } .t-var { color: #ffd27a; } .t-com { color: #8a7a74; font-style: italic; }

/* tech marquee */
.marquee {
  position: relative; overflow: hidden; margin: 0 -24px; padding: 18px 0;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee li { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.marquee li span { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; background: var(--bg-2); color: var(--orange); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* code-comment kickers above section labels */
.label-wrap { display: block; }
.label-wrap .label { margin-bottom: 44px; }
.kicker { font-family: var(--font-mono); font-size: 13px; color: var(--orange); margin: 0 0 10px; opacity: .9; }
.section-head .label-wrap .label { margin-bottom: 44px; }

/* code / terminal windows */
.about-side { display: grid; gap: 18px; }
.code-window, .terminal { margin: 0; border-radius: 16px; overflow: hidden; background: var(--code-bg); border: 1px solid #3a2320; box-shadow: var(--shadow); color: #f3e6de; }
.cw-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #1f1412; border-bottom: 1px solid #3a2320; }
.cw-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.cw-bar i:nth-child(2) { background: #febc2e; } .cw-bar i:nth-child(3) { background: #28c840; }
.cw-bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: #b8a19a; }
.code-window pre { margin: 0; padding: 16px 18px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; overflow-x: auto; }

.terminal-section { padding-top: 0; }
.terminal { max-width: 880px; }
.term-body { padding: 20px 22px; font-family: var(--font-mono); font-size: 14px; line-height: 1.9; min-height: 250px; }
.term-body p { margin: 0; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; white-space: pre-wrap; }
.term-body p.shown { opacity: 1; transform: none; }
.term-body b { color: #ffd27a; font-weight: 600; display: inline-block; min-width: 76px; }
.t-prompt, .run { color: var(--orange); } .ok { color: #28c840; }
.term-body .cmd { color: #fff; }

/* case-study UI mockups */
.thumb { padding: 22px 26px 0; align-items: end; }
.mock { width: 100%; max-width: 440px; margin: 0 auto; border-radius: 12px 12px 0 0; overflow: hidden; background: #fffaf6; box-shadow: 0 -10px 30px -12px rgba(0,0,0,.35); transform: translateY(8px); transition: transform .5s cubic-bezier(.3,1.5,.5,1); color: #2a1d1a; }
.project:hover .mock { transform: translateY(0) rotate(-1deg); }
.mock-bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: #f1e4dc; }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: #e0b8a8; }
.mock-bar span { margin-left: 8px; flex: 1; font-family: var(--font-mono); font-size: 10px; color: #8a6f66; background: #fffaf6; border-radius: 6px; padding: 2px 8px; }
.mock-body { padding: 14px 16px 16px; display: grid; gap: 9px; font-size: 11px; min-height: 150px; }
.field { height: 16px; border-radius: 6px; background: #f3e6de; border: 1px solid #ead5ca; }
.field.short { width: 60%; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.steps { display: flex; align-items: center; gap: 6px; }
.steps b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: #f3e6de; color: #8a6f66; }
.steps b.done, .steps b.on { background: linear-gradient(120deg, #d63a22, #f07a26); color: #fff; }
.steps em { flex: 1; height: 2px; background: #ead5ca; }
.cta { justify-self: end; padding: 6px 14px; border-radius: 999px; background: linear-gradient(120deg, #d63a22, #f07a26); color: #fff; font-weight: 700; }
.m-chat .msg { max-width: 75%; padding: 7px 10px; border-radius: 10px; }
.m-chat .user { justify-self: end; background: #2a1d1a; color: #fff; }
.m-chat .ai { display: flex; gap: 8px; background: #f3e6de; width: 75%; }
.m-chat .ai div { flex: 1; display: grid; gap: 5px; }
.m-chat .ai i { height: 6px; border-radius: 3px; background: #e0c6ba; } .m-chat .ai i.short { width: 60%; }
.m-chat .spark { color: #8b7bff; }
.sources { display: flex; gap: 6px; } .sources span { font-family: var(--font-mono); font-size: 9px; padding: 2px 6px; border-radius: 6px; background: #efe7ff; color: #6b5bd6; }
.composer { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 10px; border: 1px solid #ead5ca; color: #a08a82; }
.composer b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #2a1d1a; color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpis div { padding: 7px 8px; border-radius: 8px; background: #f3e6de; display: grid; }
.kpis small { color: #8a6f66; font-size: 9px; } .kpis b { font-size: 15px; }
.bars { display: flex; align-items: end; gap: 7px; height: 66px; padding-top: 4px; }
.bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(#f6a632, #d63a22); transform-origin: bottom; transition: transform .6s cubic-bezier(.3,1.4,.5,1); }
.project:hover .bars i { transform: scaleY(1.08); }
.m-hud { background: linear-gradient(#1b1030, #3a1410); color: #fff; font-family: var(--font-mono); }
.hud-top, .hud-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hud-top small { font-size: 9px; color: #ffb58a; margin-right: 6px; }
.meter { display: inline-block; width: 90px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; vertical-align: middle; }
.meter i { display: block; height: 100%; width: 72%; background: linear-gradient(90deg, #d63a22, #f6a632); }
.meter.xp { width: 55%; } .meter.xp i { width: 45%; background: linear-gradient(90deg, #6b5bd6, #b79cff); }
.score { font-size: 13px; color: #ffd27a; }
.hud-mid { display: grid; place-items: center; height: 58px; }
.hud-mid img { height: 56px; animation: floaty 2.4s ease-in-out infinite; }
.hud-bottom b { font-size: 10px; letter-spacing: .1em; animation: caret 1.2s steps(1) infinite; }

/* Prompt → UI playground */
.pg-hint { font-family: var(--font-mono); font-size: 13px; color: var(--orange) !important; margin: -8px 0 18px !important; }
.playground { display: grid; gap: 12px; }
.pg-prompt { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 14px; min-height: 48px; }
.pg-input { color: var(--ink); }
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-chips button { cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); transition: all .2s; }
.pg-chips button:hover { color: var(--ink); border-color: var(--ink); }
.pg-chips button[aria-pressed="true"] { border-color: var(--orange); color: var(--ink); background: color-mix(in srgb, var(--orange) 14%, var(--surface)); }
.pg-preview { position: relative; display: grid; place-items: center; padding: 24px; border-radius: 18px; border: 1px dashed var(--line); min-height: 250px; }
.pg-card { width: min(280px, 100%); display: grid; justify-items: center; gap: 12px; padding: 22px; text-align: center; transition: all .5s cubic-bezier(.3,1.3,.5,1); }
.pg-card img { width: 64px; height: 64px; object-fit: cover; object-position: 50% 10%; transition: all .5s; }
.pg-text { display: grid; } .pg-text b { font-family: var(--font-display); font-size: 26px; text-transform: uppercase; line-height: 1; } .pg-text span { font-size: 13px; }
.pg-stats { display: flex; gap: 16px; font-size: 11px; } .pg-stats span { display: grid; } .pg-stats b { font-size: 16px; }
.pg-btn { padding: 9px 22px; font-weight: 700; font-size: 14px; transition: all .5s; }
.pg-thinking { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 85%, transparent); font-family: var(--font-mono); font-size: 13px; color: var(--muted); opacity: 0; pointer-events: none; transition: opacity .2s; }
.pg-thinking span { margin-left: 6px; }
.pg-preview.thinking .pg-thinking { opacity: 1; }
.pg-preview.thinking .pg-card { filter: blur(3px); transform: scale(.96); }
/* styles the "AI" generates */
[data-style="fire"] .pg-card { background: linear-gradient(160deg, #2a1210, #120909); color: #fff; border-radius: 22px; box-shadow: 0 16px 40px -14px #d63a22; }
[data-style="fire"] .pg-card img { border-radius: 50%; border: 3px solid #f07a26; background: #3a1410; }
[data-style="fire"] .pg-btn { background: linear-gradient(120deg, #d63a22, #f6a632); color: #fff; border-radius: 999px; }
[data-style="minimal"] .pg-card { background: #fff; color: #111; border-radius: 4px; border: 1px solid #ddd; box-shadow: none; }
[data-style="minimal"] .pg-card img { border-radius: 4px; background: #f2f2f2; filter: grayscale(1); }
[data-style="minimal"] .pg-text b { font-family: var(--font-body); font-size: 20px; text-transform: none; }
[data-style="minimal"] .pg-btn { background: #111; color: #fff; border-radius: 4px; }
[data-style="neon"] .pg-card { background: #07071a; color: #d8fbff; border-radius: 16px; border: 1px solid #2ef2ff; box-shadow: 0 0 24px rgba(46,242,255,.45), inset 0 0 18px rgba(177,76,255,.25); }
[data-style="neon"] .pg-card img { border-radius: 12px; border: 2px solid #b14cff; box-shadow: 0 0 14px #b14cff; background: #120a2a; }
[data-style="neon"] .pg-text b { color: #2ef2ff; text-shadow: 0 0 10px #2ef2ff; }
[data-style="neon"] .pg-btn { background: transparent; color: #2ef2ff; border: 1.5px solid #2ef2ff; border-radius: 8px; box-shadow: 0 0 12px rgba(46,242,255,.6); }
[data-style="playful"] .pg-card { background: #fff4c7; color: #3b1d6e; border-radius: 28px 8px 28px 8px; border: 3px solid #3b1d6e; box-shadow: 6px 6px 0 #3b1d6e; transform: rotate(-2deg); }
[data-style="playful"] .pg-card img { border-radius: 40% 60% 55% 45%; background: #ffb3d9; border: 3px solid #3b1d6e; }
[data-style="playful"] .pg-btn { background: #ff6fb5; color: #fff; border-radius: 999px; border: 3px solid #3b1d6e; box-shadow: 3px 3px 0 #3b1d6e; }

/* footer status */
.status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #28c840; box-shadow: 0 0 0 0 rgba(40,200,64,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(40,200,64,0); } 100% { box-shadow: 0 0 0 0 rgba(40,200,64,0); } }

@media (max-width: 980px) {
  .fc-code { right: 0; }
}
@media (max-width: 760px) {
  .float-card { display: none; }
  .marquee { margin: 0 -16px; }
  .role-line { font-size: 15px; }
  .about-side { justify-items: center; }
  .code-window { width: 100%; }
  .term-body { font-size: 12px; padding: 16px; }
  .term-body b { min-width: 60px; }
  .thumb { padding: 16px 16px 0; }
}

/* ================= Words → Design → Code ================= */
.section-lead { max-width: 640px; margin: -24px 0 34px; font-size: 19px; color: var(--muted); }
.hero h1 br + em, .hero h1 em { white-space: nowrap; }

/* pipeline: numbered steps joined by arrows */
.pipeline { counter-reset: step; }
.pipeline .service { position: relative; padding-top: 30px; }
.step-no { position: absolute; top: 18px; right: 20px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--orange); opacity: .8; }
.pipeline .service:not(:last-child)::after {
  content: '→'; position: absolute; top: 50%; right: -16px; transform: translateY(-50%); z-index: 2;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: #fff; background: var(--fire); box-shadow: 0 0 0 4px var(--bg);
}

/* inspiration board */
.inspo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.inspo { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.inspo:nth-child(3n+2) { transform: translateY(18px); }
.inspo:nth-child(3n+2):hover { transform: translateY(12px); }
.inspo-icon { font-size: 30px; line-height: 1; }
.inspo h3 { font-size: 30px; }
.inspo p { margin: 0; color: var(--muted); }
.inspo .became { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink); }
.became span { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--fire); padding: 2px 8px; border-radius: 999px; margin-right: 6px; }

/* case study: words → design → code */
.wdc { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; gap: 0; position: relative; }
.wdc li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: baseline; padding: 7px 0 7px 16px; position: relative; font-size: 15px; }
.wdc li::before { content: ''; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--fire); }
.wdc li:not(:last-child)::after { content: ''; position: absolute; left: 3.5px; top: 24px; bottom: -8px; width: 1px; background: var(--line); }
.wdc b { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.wdc span { color: var(--muted); }
.wdc .quote { color: var(--ink); font-style: italic; font-weight: 500; }

.motto { margin: 0 0 6px; font-size: 13px; letter-spacing: .08em; color: var(--orange); }

@media (max-width: 1080px) {
  .pipeline .service:nth-child(2n)::after { display: none; }
}
@media (max-width: 900px) {
  .inspo-grid { grid-template-columns: repeat(2, 1fr); }
  .inspo:nth-child(3n+2) { transform: none; }
}
@media (max-width: 760px) {
  .inspo-grid { grid-template-columns: 1fr; }
  .section-lead { font-size: 17px; margin-top: -20px; }
  .pipeline .service:not(:last-child)::after { content: '↓'; top: auto; bottom: -16px; right: 50%; transform: translateX(50%); }
  .pipeline .service:nth-child(2n)::after { display: grid; }
  .wdc li { grid-template-columns: 58px 1fr; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .pyrix, #embers { display: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .term-body p { opacity: 1; transform: none; }
}

/* ================= WordPress ================= */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .nav { top: 0; } }
.admin-bar { scroll-padding-top: 112px; }

.project h3 a { color: inherit; text-decoration: none; }
.project h3 a:hover { color: var(--orange); }
.project-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; }
.project-links .link { margin-top: 0; }
.thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px 12px 0 0; }

/* pagination */
.pager { margin-top: 28px; }
.pager .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pager .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; }
.pager .page-numbers.current { background: var(--fire); color: #fff; border-color: transparent; }

/* search */
.search-form { display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.search-prompt { font-family: var(--font-mono); color: var(--orange); }
.search-field { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: 16px var(--font-mono); outline: none; }
.search-form .btn { padding: 10px 18px; }
.search-again { margin-bottom: 28px; }

/* single post extras */
.post-header .post-cat { text-decoration: none; }
.post-header .lead { color: var(--muted); font-size: 19px; }
.post-cover { max-width: 900px; margin: 0 auto 32px; }
.post-cover img { width: 100%; height: auto; border-radius: 20px; display: block; }

/* WordPress content inside .prose */
.prose img, .prose video { max-width: 100%; height: auto; border-radius: 14px; }
.prose figure { margin: 32px 0; }
.prose figcaption, .prose .wp-element-caption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.prose a { color: var(--orange); }
.prose .wp-block-quote, .prose .wp-block-pullquote { margin: 32px 0; padding: 18px 24px; border-left: 4px solid var(--orange); background: var(--bg-2); border-radius: 0 14px 14px 0; }
.prose .wp-block-code, .prose pre.wp-block-preformatted { background: #150d0c; color: #ffd9c2; padding: 18px 20px; border-radius: 14px; overflow-x: auto; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 14px; }
.prose .wp-block-button__link { display: inline-block; padding: 12px 24px; border-radius: 999px; background: var(--fire); color: #fff; text-decoration: none; font-weight: 700; }
.prose .alignwide { max-width: 1000px; margin-left: 50%; transform: translateX(-50%); width: calc(100vw - 48px); }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose hr { border: 0; border-top: 1px dashed var(--line); margin: 40px 0; }

/* comments */
.comments { max-width: 760px; margin: 56px auto 0; }
.comments-title { font-size: 34px; margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.comment-list .comment-body { padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 24px; margin-top: 14px; display: grid; gap: 14px; }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-metadata, .comment-metadata a { font-size: 13px; color: var(--muted); }
.comment-respond { margin-top: 32px; }
.comment-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit;
}
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }

/* case study page */
.case-study .post-header .project-kind { margin: 18px 0 0 !important; }
.case-hero { max-width: 900px; margin: 0 auto 40px; }
.case-hero .thumb { border-radius: 20px; overflow: hidden; }
.wdc-steps { list-style: none; max-width: 900px; margin: 0 auto 32px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wdc-steps li { padding: 22px; }
.wdc-steps h2 { font-size: 32px; margin: 4px 0 8px; }
.wdc-steps p { margin: 0; color: var(--muted); }
.wdc-steps .quote { color: var(--ink); font-style: italic; font-size: 18px; }
.case-tags { max-width: 900px; margin: 0 auto 32px; }
.case-link { max-width: 900px; margin: 32px auto 0; }
@media (max-width: 760px) { .wdc-steps { grid-template-columns: 1fr; } }
.case-hero .thumb { aspect-ratio: auto; padding-top: 44px; }
.case-hero .mock { max-width: 560px; }
