/* ================= Theme tokens ================= */
:root,
:root[data-theme="graphite"] {
  --bg: #18191d;
  --bg-2: #1d1e23;
  --surface: #222328;
  --surface-2: #2b2c33;
  --line: #2f3138;
  --line-2: #3d3f48;
  --text: #ececef;
  --muted: #9a9ca6;
}
:root {
  --acc: #5063eb;        /* fills: buttons, badges (Discord avatar blue) */
  --acc-text: #8b98f5;   /* lighter shade for accent text on dark backgrounds */
  --on-acc: #ffffff;     /* text on top of --acc */
  --radius: 10px;
  --font: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --maxw: 1400px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* category colours (used for covers / dots) */
  --c-bots: var(--acc-text);
  --c-ml: #7aa2f7;
  --c-games: #5fd3a5;
}

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
::selection { background: var(--acc); color: var(--on-acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }

.ico {
  width: 16px; height: 16px; flex: none; display: inline-block;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
          mask: var(--i) center / contain no-repeat;
}

/* ================= Buttons / tags ================= */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 20px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s, background-color .25s, box-shadow .25s;
}
.btn:hover { border-color: var(--muted); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--on-acc); font-weight: 600; }
.btn.primary:hover { box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--acc) 70%, transparent); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:hover .arrow.down { transform: translateY(3px); }
.btn.small { padding: 9px 14px; font-size: 14px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px; line-height: 1.4;
  padding: 4px 9px; border-radius: 6px;
  background: var(--surface-2); color: var(--muted);
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ================= Header ================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; transition: transform .4s var(--ease); }
.brand span { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 0; opacity: 0; transform: translateX(-6px);
  transition: max-width .5s var(--ease), opacity .35s, transform .5s var(--ease); }
.past-hero .brand span { max-width: 140px; opacity: 1; transform: none; }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav { position: relative; display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; z-index: 1;
  padding: 8px 14px; border-radius: 8px; font-size: 14.5px; color: var(--muted);
  transition: color .2s;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav-pill {
  position: absolute; top: 0; height: 100%; border-radius: 8px; background: var(--surface-2);
  transition: left .35s var(--ease), width .35s var(--ease), opacity .25s; opacity: 0;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px;
  color: var(--muted); border: 1px solid transparent; background: none; cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn .ico { width: 19px; height: 19px; }
.menu-btn { display: none; flex-direction: column; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn span + span { margin-top: 4px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ================= Hero ================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--muted) 35%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(300px circle at var(--mx, 70%) var(--my, 40%), #000 0%, transparent 70%);
          mask-image: radial-gradient(300px circle at var(--mx, 70%) var(--my, 40%), #000 0%, transparent 70%);
  opacity: .45;
}
.hero-glow {
  position: absolute; width: 640px; height: 640px; border-radius: 50%;
  left: var(--mx, 70%); top: var(--my, 40%); transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 6%, transparent), transparent);
  pointer-events: none; transition: left .6s var(--ease), top .6s var(--ease);
}
.hero .wrap { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
.role { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--acc-text); }
.hero .name { font-size: clamp(60px, 9vw, 128px); line-height: .95; letter-spacing: -.045em; font-weight: 700; margin-top: 6px; }
.hero .tagline { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -.02em; font-weight: 600; margin-top: 30px; max-width: 680px; }
.hero .tagline .hl { color: var(--acc-text); }
.hero .lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); max-width: 600px; margin-top: 16px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero .actions .btn { padding: 17px 28px; font-size: 17px; border-radius: 12px; gap: 11px; }
.hero .actions .btn .ico { width: 20px; height: 20px; }

/* services list inside hero */
.offer h2 { font-size: 14px; font-family: var(--mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.offer ol { list-style: none; border-top: 1px solid var(--line); }
.offer li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding: 26px 4px; border-bottom: 1px solid var(--line);
}
.offer .n { font-family: var(--mono); font-size: 15px; color: var(--acc-text); }
.offer h3 { font-size: clamp(19px, 1.7vw, 23px); letter-spacing: -.01em; line-height: 1.3; }
.offer p { color: var(--muted); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.55; margin-top: 6px; }
.offer-note { font-size: 15px; color: var(--muted); margin-top: 20px; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase;
  transition: opacity .3s;
}
.scroll-hint i { width: 1px; height: 34px; background: linear-gradient(var(--muted), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ================= Sections ================= */
section.block { padding: 120px 0; }
section.block + section.block { padding-top: 40px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-head .eyebrow { font-family: var(--mono); font-size: 12.5px; color: var(--acc-text); letter-spacing: .06em; margin-bottom: 10px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.025em; }
.sec-head p { color: var(--muted); max-width: 480px; margin-top: 10px; }

/* ================= Filters ================= */
.filters { position: relative; display: flex; flex-wrap: wrap; gap: 6px 30px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.filters button {
  border: 0; background: none; cursor: pointer; padding: 0 0 14px;
  font-size: 15.5px; font-weight: 500; color: var(--muted); transition: color .2s;
  display: inline-flex; align-items: baseline; gap: 7px;
}
.filters button sup { font-family: var(--mono); font-size: 11.5px; color: var(--muted); opacity: .8; top: 0; }
.filters button:hover, .filters button.on { color: var(--text); }
.filters .pill { position: absolute; bottom: -1px; height: 2px; border-radius: 2px; background: var(--acc); transition: left .4s var(--ease), width .4s var(--ease); }

/* ================= Project cards ================= */
.projects { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.sec-head.stack { display: block; margin-bottom: 28px; }
.card {
  --spot-x: 50%; --spot-y: 0%;
  position: relative; grid-column: span 2;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  background: var(--surface); cursor: pointer; overflow: hidden; text-align: left;
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease), opacity .35s, scale .35s;
}
.card.big { grid-column: span 3; }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(360px circle at var(--spot-x) var(--spot-y), color-mix(in srgb, var(--text) 4%, transparent), transparent 50%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 24px 50px -28px #000; }
.card:hover::after { opacity: 1; }
.card.hidden { display: none; }
.card.fading { opacity: 0; scale: .97; }

.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.card:not(.big) .thumb { aspect-ratio: 16 / 8; }
.card.big .thumb { aspect-ratio: 16 / 7.2; }
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .4s; }
.card:hover .thumb img, .card:hover .thumb video { transform: scale(1.045); }
.thumb video { opacity: 0; }
.card.playing .thumb video { opacity: 1; }
.thumb .play-hint {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  font-size: 11.5px; font-weight: 500; padding: 4px 9px; border-radius: 99px;
  background: rgba(10, 10, 12, .7); color: #eee; backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 6px; transition: opacity .3s;
}
.card.playing .play-hint { opacity: 0; }

/* generated cover for projects without screenshots */
.cover {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(circle at 75% 20%, color-mix(in srgb, var(--cat) 22%, transparent), transparent 55%),
    linear-gradient(color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--bg-2);
  color: var(--cat);
}
.cover svg { width: 46px; height: 46px; opacity: .9; transition: transform .6s var(--ease); }
.card:hover .cover svg { transform: scale(1.12) rotate(-6deg); }
.cover img { position: static; width: 64px; height: 64px; border-radius: 14px; }

.cbody { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; padding: 24px 24px 22px; }
.cmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.cmeta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cat); }
.badge { white-space: nowrap; font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 99px; background: var(--acc); color: var(--on-acc); margin-left: auto; }
.badge.soft { background: var(--surface-2); color: var(--text); }
.card h3 { font-size: 21px; letter-spacing: -.015em; line-height: 1.25; }
.card.big h3 { font-size: 26px; }
.card p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.card .tags { margin-top: auto; padding-top: 20px; }
.card .more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  font-size: 14px; font-weight: 500; color: var(--text);
}
.card .more svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.card:hover .more { color: var(--acc-text); }
.card:hover .more svg { transform: translateX(4px); }

/* ================= Toolbox ================= */
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tool-group { padding: 28px 24px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--surface); }
.tool-group h3 { font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.tool-group ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tool-group li {
  display: flex; align-items: center; gap: 14px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px;
  transition: background-color .25s, transform .3s var(--ease);
}
.tool-group li:hover { background: var(--surface-2); transform: translateX(4px); }
.ti {
  width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface-2));
  transition: transform .35s var(--ease), background-color .25s;
}
.tool-group li:hover .ti { transform: scale(1.08); background: color-mix(in srgb, var(--c) 22%, var(--surface-2)); }
.ti .ico, .ti svg { width: 22px; height: 22px; }
.tool-group li b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.tool-group li small { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.35; }

/* ================= About ================= */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about .eyebrow { font-family: var(--mono); font-size: 12.5px; color: var(--acc-text); letter-spacing: .06em; margin-bottom: 10px; }
.about h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.025em; }
.facts { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.facts li { display: flex; align-items: center; gap: 14px; font-size: clamp(17px, 1.4vw, 20px); }
.facts li::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--acc); flex: none; }
.about-text p { font-size: clamp(18px, 1.45vw, 20px); line-height: 1.7; color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.about-text p + p { margin-top: 22px; }
.about-text p.big { font-size: clamp(23px, 2.3vw, 30px); line-height: 1.45; color: var(--text); font-weight: 500; letter-spacing: -.01em; }
.about-text b { color: var(--text); font-weight: 600; }

/* ================= Contact ================= */
.contact-card {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr); gap: 40px; align-items: center;
  padding: 36px 40px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(600px circle at 100% 0%, color-mix(in srgb, var(--acc) 14%, transparent), transparent 60%), var(--surface);
}
.contact-card h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -.025em; }
.contact-card .cc-text > p { color: var(--muted); margin-top: 6px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps span {
  width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; color: var(--acc-text); background: color-mix(in srgb, var(--acc) 16%, var(--surface-2));
}
.steps b { display: block; font-size: 15.5px; line-height: 1.3; }
.steps small { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.cc-actions { display: flex; flex-direction: column; gap: 10px; }
.cc-actions .btn { justify-content: center; }
.handle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 14px 14px 18px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg-2);
  cursor: pointer; transition: border-color .25s, transform .25s var(--ease); width: 100%; text-align: left;
}
.handle:hover { border-color: var(--acc); transform: translateY(-2px); }
.handle .who { display: flex; align-items: center; gap: 12px; }
.handle .who .ico { width: 22px; height: 22px; color: #7983f5; }
.handle small { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.handle b { font-family: var(--mono); font-size: 16px; font-weight: 500; }
.handle .copy { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 7px; background: var(--acc); color: var(--on-acc); }

footer { padding: 48px 0 56px; color: var(--muted); font-size: 14px; }
footer .frow { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
footer a:hover { color: var(--text); }

/* ================= Project detail ================= */
dialog.project {
  border: 1px solid var(--line-2); border-radius: calc(var(--radius) + 6px); padding: 0; margin: auto;
  background: var(--surface); color: var(--text);
  width: min(1080px, calc(100vw - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  overflow-y: auto; overscroll-behavior: contain;
}
dialog.project::backdrop { background: rgba(8, 8, 10, .72); backdrop-filter: blur(6px); }
dialog.project[open] { animation: pop .45s var(--ease); }
dialog.project[open]::backdrop { animation: fade .3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }

.pm-close {
  position: sticky; top: 14px; float: right; margin: 14px 14px -52px 0; z-index: 5;
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 75%, transparent); backdrop-filter: blur(8px);
  transition: transform .25s var(--ease), border-color .2s;
}
.pm-close:hover { transform: rotate(90deg); border-color: var(--muted); }
.pm-close svg { width: 18px; height: 18px; }

.pm-media { position: relative; background: #0c0c0e; border-bottom: 1px solid var(--line); }
.pm-stage { position: relative; height: clamp(220px, 46vh, 600px); }
.pm-stage img, .pm-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: fade .35s ease; }
.pm-stage video { cursor: pointer; }
.pm-strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; gap: 14px; padding: 28px 16px 12px; background: linear-gradient(transparent, rgba(8, 8, 10, .85)); pointer-events: none; }
.pm-strip > * { pointer-events: auto; }
.pm-thumbs { display: flex; gap: 8px; }
.pm-thumbs button {
  flex: none; width: 68px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; cursor: pointer; padding: 0;
  border: 2px solid transparent; background: #1a1a1d; opacity: .55; transition: opacity .2s, border-color .2s;
}
.pm-thumbs button:hover { opacity: 1; }
.pm-thumbs button.on { opacity: 1; border-color: var(--acc); }
.pm-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pm-caption { font-size: 13px; color: #c9cad1; margin-left: auto; text-align: right; text-shadow: 0 1px 4px #000; }

.pm-body { padding: 26px 36px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 44px; }
.pm-main { min-width: 0; }
.pm-side { min-width: 0; }
.pm-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-right: 48px; }
.pm-title h2:focus { outline: none; }
.pm-title h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.025em; line-height: 1.15; }
.pm-title .badge { margin-left: 0; }
.pm-sub { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.pm-desc { font-size: 16px; line-height: 1.6; margin-top: 14px; max-width: 70ch; color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.pm-body h4 { font-size: 12.5px; font-family: var(--mono); color: var(--muted); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 12px; }
.pm-body ul.hl { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.pm-body ul.hl li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.pm-body ul.hl li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 2px; background: var(--acc-text); }
.pm-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 20px; }
.pm-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ================= Toast ================= */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 20px); opacity: 0;
  display: flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: var(--radius);
  font-size: 14.5px; font-weight: 500; transition: .35s var(--ease); pointer-events: none;
  box-shadow: 0 16px 40px -16px #000;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================= Scroll reveal ================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ================= Responsive ================= */
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero { min-height: 0; }
  .scroll-hint { display: none; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card.big { grid-column: span 1; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .wrap { padding: 0 20px; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 2px; padding: 12px 20px 20px;
    background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
  }
  .menu-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { font-size: 17px; padding: 12px 8px; }
  .nav-pill { display: none; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  .menu-btn { display: flex; }
  .menu-open .site-header { background: var(--bg); border-bottom-color: var(--line); }
  section.block { padding: 88px 0; }
  .projects { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tools { grid-template-columns: minmax(0, 1fr); }
  .filters { flex-wrap: nowrap; gap: 22px; overflow-x: auto; scrollbar-width: none; margin-right: -20px; padding-right: 20px; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { white-space: nowrap; }
  .contact-card { padding: 28px 24px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .pm-body { grid-template-columns: minmax(0, 1fr); }
  .pm-stage { height: auto; aspect-ratio: 16 / 9; }
  .pm-body { padding: 26px 22px 28px; }
  .pm-body ul.hl { grid-template-columns: minmax(0, 1fr); }
  .pm-caption { display: none; }
  .hero .actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (hover: none) {
  .card:hover { transform: none; }
  .thumb .play-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
