/* =========================================================
   Сергей Цацурин — Portfolio
   Premium Dark Minimal Tech
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg:        #08090b;
  --panel:     #101216;
  --card:      #13151a;
  --card2:     #171a21;
  --text:      #f7f7f8;
  --text-body: #b8bdc7;
  --muted:     #9aa0ab;
  --muted2:    #7d828e;
  --line:      rgba(255, 255, 255, .09);
  --line-soft: rgba(255, 255, 255, .06);

  --violet:  #8b5cf6;
  --violet2: #a78bfa;
  --blue:    #38bdf8;
  --cyan:    #67e8f9;
  --green:   #4ade80;

  --grad: linear-gradient(95deg, #a78bfa 0%, #67e8f9 100%);
  --grad-soft: linear-gradient(95deg, rgba(167,139,250,.14), rgba(103,232,249,.14));

  --radius-lg: 28px;
  --radius:    20px;
  --radius-sm: 14px;

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;

  --header-h: 74px;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(139,92,246,.35); color: #fff; }

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

/* Ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 6%, rgba(139,92,246,.13), transparent 36%),
    radial-gradient(circle at 12% 42%, rgba(56,189,248,.07), transparent 30%),
    radial-gradient(circle at 55% 92%, rgba(103,232,249,.05), transparent 32%);
  animation: ambMove 24s ease-in-out infinite alternate;
}

@keyframes ambMove {
  from { opacity: .85; transform: translate3d(0,0,0) scale(1); }
  to   { opacity: 1;   transform: translate3d(0,-30px,0) scale(1.05); }
}

/* Film grain */
.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* Cursor glow (desktop only, JS gates) */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 560px; height: 560px;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.10), transparent 62%);
  opacity: 0;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.has-cursor .cursor-glow { opacity: 1; }

/* ---------- Layout ---------- */
.container {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Let grid/flex children shrink to their track (prevents wide content
   — e.g. balled marquee text, long words — from blowing out layout). */
.hero__grid, .hero__copy, .about__grid, .about__head, .copy, .portrait,
.card__body, .marquee, .skill, .workflow__step, .statement__big {
  min-width: 0;
}

.section { padding: 116px 0; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(8,9,11,.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s ease;
}
.header.is-scrolled { box-shadow: 0 10px 40px rgba(0,0,0,.5); }

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
}
.logo__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(167,139,250,.7);
}

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  position: relative;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 10px;
  transition: color .2s ease, background .2s ease;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav a[aria-current="page"] { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.btn:active { transform: translateY(0); }

.btn--primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), #6d5ae8);
  box-shadow: 0 8px 30px rgba(109,90,232,.35);
}
.btn--primary:hover { box-shadow: 0 12px 40px rgba(109,90,232,.5); border-color: transparent; }

.btn--ghost { background: rgba(255,255,255,.02); }

.btn--sm  { padding: 10px 15px; font-size: 14px; }
.btn--lg  { padding: 17px 26px; font-size: 16px; }

.btn .icon { width: 16px; height: 16px; }
.btn .icon--down { width: 15px; height: 15px; opacity: .8; transition: transform .25s ease; }
.btn:hover .icon--down { transform: translateY(3px); }

/* Burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}
.burger span {
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Eyebrows / labels ---------- */
.eyebrow, .label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #c3c7d0;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11.5px;
  font-weight: 700;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(74,222,128,.7);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ---------- Typography ---------- */
h1, h2, h3, p { margin-top: 0; }

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 30px 0 24px;
  text-wrap: balance;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 16px 0 12px;
  max-width: 900px;
  text-wrap: balance;
}

h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -.01em; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 19px;
  line-height: 1.68;
  color: var(--text-body);
  max-width: 640px;
}

::marker { content: ""; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 86px 0 60px; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: center;
}

.hero__copy .eyebrow { margin-bottom: 4px; }

/* Marquee */
.marquee {
  margin-top: 34px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  border-block: 1px solid var(--line-soft);
  padding: 11px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}
.marquee__track span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .22em;
  color: var(--muted);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* Portrait */
.portrait {
  position: relative;
  max-width: 400px;
  margin-inline: auto;
}
.portrait__glow {
  position: absolute;
  inset: 8% -12% -12% -12%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139,92,246,.38), rgba(56,189,248,.14) 55%, transparent 75%);
  filter: blur(30px);
  animation: glowPulse 7s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  from { opacity: .7; transform: scale(.98); }
  to   { opacity: 1;  transform: scale(1.04); }
}

.portrait__frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #1b2030, #0c0e13);
  box-shadow: var(--shadow);
}
.portrait__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(to top, rgba(8,9,11,.55), transparent 42%),
    linear-gradient(150deg, rgba(255,255,255,.06), transparent 40%);
  pointer-events: none;
}
.portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.portrait img.is-missing { display: none; }

.portrait__ph {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}
.portrait__ph.show { display: flex; }
.portrait__ph-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 84px;
  letter-spacing: -.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.portrait__ph-hint { color: var(--text); font-weight: 600; font-size: 16px; }
.portrait__ph-note { color: var(--muted2); font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; }

.portrait__cap {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 4px;
}
.portrait__cap > span:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
}
.portrait__cap .portrait__role { color: var(--muted); font-size: 13px; }

/* ---------- Strip ---------- */
.strip {
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,.015);
}
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__grid > div {
  padding: 30px 22px;
  border-right: 1px solid var(--line);
  transition: background .25s ease;
}
.strip__grid > div:last-child { border-right: 0; }
.strip__grid > div:hover { background: rgba(255,255,255,.02); }
.strip b { display: block; font-family: var(--font-display); font-size: 17px; letter-spacing: -.01em; }
.strip span { display: block; font-size: 13px; color: var(--muted); margin-top: 7px; line-height: 1.45; }

/* ---------- Sections head ---------- */
.section-head { margin-bottom: 46px; }
.section-head h2 span { color: var(--muted2); }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: start;
  margin-top: 18px;
}
.about__head h2 { margin: 0; }
.copy { color: var(--text-body); font-size: 18px; line-height: 1.85; padding-top: 6px; }
.copy p + p { margin-top: 18px; }

.about__stats {
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 42px;
}
.about__stats span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.about__stats span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

/* ---------- Projects ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px 8px 30px;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(167,139,250,.4);
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}

.card--feature { grid-column: span 2; }

.card__tag--num {
  position: absolute;
  top: 16px; right: 18px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted2);
  letter-spacing: .1em;
}

.card__visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
  min-height: 240px;
  background:
    radial-gradient(circle at 78% 18%, rgba(139,92,246,.28), transparent 38%),
    linear-gradient(150deg, #1a1f2e, #0c0e13 55%);
}
.card--feature .card__visual { min-height: 380px; }

.card__visual-tags {
  position: absolute;
  left: 14px; bottom: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 2;
}
.card__visual-tags span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(8,9,11,.55);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,.82);
}

.card__body { padding: 0 20px; }

.card__tags { display: flex; gap: 7px; flex-wrap: wrap; }
.card__tags span {
  font-size: 10px;
  letter-spacing: .09em;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c4c8d0;
  font-weight: 600;
}

.card h3 { margin: 14px 0 9px; font-size: 26px; }
.card__body > p { color: var(--muted); line-height: 1.7; font-size: 15px; margin-bottom: 18px; }

.card__meta { display: flex; flex-direction: column; gap: 12px; }
.tag-status {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--violet2);
  padding: 6px 11px;
  border: 1px solid rgba(139,92,246,.35);
  border-radius: 999px;
  background: rgba(139,92,246,.08);
}
.tag-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet2); }
.tag-status--concept { color: var(--blue); border-color: rgba(56,189,248,.35); background: rgba(56,189,248,.08); }
.tag-status--concept::before { background: var(--blue); }
.tag-status--exp { color: var(--cyan); border-color: rgba(103,232,249,.35); background: rgba(103,232,249,.08); }
.tag-status--exp::before { background: var(--cyan); }

.role { color: var(--muted2); font-size: 12.5px; line-height: 1.6; }

.workflow-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.workflow-inline i { font-style: normal; color: var(--text-body); letter-spacing: .04em; }
.workflow-inline b { color: var(--violet2); font-weight: 700; }

/* --- Mockup art primitives --- */
.card__visual svg, .card__visual span { pointer-events: none; }

/* Game art */
.game-art { position: relative; height: 100%; min-height: 240px; }
.card--feature .game-art { min-height: 380px; }
.game-art__sun {
  position: absolute;
  top: 9%; right: 10%;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103,232,249,.9), rgba(103,232,249,.05) 70%);
  opacity: .55;
}
.game-art__ground {
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 45%;
  background:
    linear-gradient(to top, rgba(139,92,246,.14), transparent),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.04) 46px 47px);
}
.game-art__house {
  position: absolute;
  left: 50%;
  bottom: 34%;
  transform: translateX(-50%);
  width: 74px; height: 74px;
  border-radius: 8px;
  background: linear-gradient(150deg, #3a4060, #232741);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 40px rgba(139,92,246,.35);
}
.game-art__house::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 100%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 46px solid transparent;
  border-right: 46px solid transparent;
  border-bottom: 40px solid #2c3152;
  filter: drop-shadow(0 0 24px rgba(103,232,249,.4));
}
.game-art__guy {
  position: absolute;
  bottom: 40%;
  width: 16px; height: 22px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #a78bfa, #7c3aed);
  box-shadow: 0 0 18px rgba(167,139,250,.6);
}
.game-art__guy--1 { left: 22%; }
.game-art__guy--2 { right: 22%; background: linear-gradient(180deg, #67e8f9, #22d3ee); box-shadow: 0 0 18px rgba(103,232,249,.6); }
.game-art__bug {
  position: absolute;
  width: 12px; height: 8px;
  border-radius: 50% 50% 6px 6px;
  background: #ef4444;
  opacity: .85;
  box-shadow: 0 0 14px rgba(239,68,68,.7);
}
.game-art__bug::before, .game-art__bug::after {
  content: "";
  position: absolute;
  top: -3px; width: 5px; height: 4px;
  background: #f87171;
  border-radius: 50%;
}
.game-art__bug::before { left: 1px; }
.game-art__bug::after  { right: 1px; }
.game-art__bug--1 { left: 14%; bottom: 32%; animation: bugMove 5s ease-in-out infinite; }
.game-art__bug--2 { left: 34%; bottom: 40%; animation: bugMove 6s ease-in-out 1s infinite; }
.game-art__bug--3 { right: 30%; bottom: 34%; animation: bugMove 5.5s ease-in-out 2s infinite; }
@keyframes bugMove {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(6px,-4px); }
}

/* Social art */
.social-ui { position: relative; height: 100%; min-height: 240px; padding: 34px 22px 26px; overflow: hidden; }
.social-ui__bar { position: absolute; top: 11%; left: 22px; right: 22px; height: 14px; border-radius: 7px; background: rgba(255,255,255,.08); }
.social-ui__chip {
  position: absolute;
  width: 29%;
  top: 30%;
  height: 34%;
  max-height: 110px;
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(167,139,250,.25), rgba(103,232,249,.12));
  border: 1px solid rgba(255,255,255,.1);
}
.social-ui__chip--1 { left: 22px; }
.social-ui__chip--2 { left: 36.5%; }
.social-ui__chip--3 { right: 22px; }
.social-ui__line { position: absolute; left: 22px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.14); }
.social-ui__line--1 { top: 72%; width: 40%; }
.social-ui__line--2 { top: 78%; width: 26%; background: rgba(255,255,255,.09); }
.social-ui__like {
  position: absolute;
  right: 7%; bottom: 8%;
  font-size: clamp(20px, 2.4vw, 28px);
  color: rgba(103,232,249,.8);
  animation: likeBeat 2.4s ease-in-out infinite;
}
@keyframes likeBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); opacity: 1; }
}

/* Studio art */
.studio-art { position: relative; height: 100%; min-height: 240px; padding: 22px; }
.studio-art__slide {
  position: absolute;
  width: 46%; height: 62%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139,92,246,.35), rgba(56,189,248,.25));
  box-shadow: 0 0 30px rgba(139,92,246,.3);
  top: 20px;
}
.studio-art__slide--2 { left: 46%; transform: rotate(4deg); background: linear-gradient(135deg, rgba(56,189,248,.3), rgba(103,232,249,.2)); }
.studio-art__line {
  position: absolute;
  left: 20px; right: 20px; bottom: 30px;
  height: 8px; border-radius: 4px;
  background: rgba(255,255,255,.16);
}
.studio-art__line--b { bottom: 18px; width: 42%; background: rgba(255,255,255,.09); }
.studio-art__arrow {
  position: absolute;
  top: 30%; left: 42%;
  font-size: 30px;
  color: var(--cyan);
  transform: rotate(-8deg);
  text-shadow: 0 0 20px rgba(103,232,249,.5);
}

/* Landing art */
.landing-art { position: relative; height: 100%; min-height: 240px; padding: 26px; }
.landing-art__nav { display: block; height: 12px; width: 100%; border-radius: 6px; background: rgba(255,255,255,.12); }
.landing-art__heroH { display: block; width: 72%; height: 26px; border-radius: 8px; margin-top: 34px; background: linear-gradient(90deg, rgba(255,255,255,.3), rgba(255,255,255,.1)); }
.landing-art__heroP { display: block; width: 58%; height: 10px; border-radius: 5px; margin-top: 16px; background: rgba(255,255,255,.14); }
.landing-art__btn { display: block; width: 120px; height: 26px; border-radius: 8px; margin-top: 22px; background: linear-gradient(135deg, var(--violet), #6d5ae8); box-shadow: 0 6px 20px rgba(109,90,232,.4); }
.landing-art__row { display: flex; gap: 12px; margin-top: 30px; width: 100%; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; }
.landing-art__row i { flex: 1; height: 52px; border-radius: 9px; background: linear-gradient(160deg, rgba(167,139,250,.18), rgba(56,189,248,.1)); border: 1px solid rgba(255,255,255,.08); }

/* ---------- Skills ---------- */
.skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.skill {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.skill:hover { transform: translateY(-3px); border-color: rgba(167,139,250,.35); background: rgba(255,255,255,.045); }

.skill__head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.skill__head b { font-family: var(--font-display); font-size: 19px; letter-spacing: -.01em; }
.skill__icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.skill__icon::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--grad);
}
.skill__icon--ai::after    { background: linear-gradient(135deg,#a78bfa,#7c3aed); box-shadow: 0 0 14px rgba(167,139,250,.6); }
.skill__icon--dev::after   { background: linear-gradient(135deg,#38bdf8,#0ea5e9); box-shadow: 0 0 14px rgba(56,189,248,.5); }
.skill__icon--vis::after   { background: linear-gradient(135deg,#67e8f9,#22d3ee); box-shadow: 0 0 14px rgba(103,232,249,.5); border-radius: 50%; }
.skill__icon--prod::after  { background: linear-gradient(135deg,#a78bfa,#67e8f9); box-shadow: 0 0 14px rgba(167,139,250,.5); }

.skill p { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.skill p span {
  font-size: 13px;
  color: var(--muted);
  padding: 7px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  transition: color .2s ease, border-color .2s ease;
}
.skill p span:hover { color: var(--text); border-color: var(--line); }

/* ---------- Workflow ---------- */
.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: wf;
  position: relative;
}
.workflow::before {
  content: "";
  position: absolute;
  top: 28px; left: 4px; right: 4px;
  height: 1px;
  background: linear-gradient(90deg, rgba(139,92,246,.5), rgba(103,232,249,.5), transparent);
  z-index: 0;
}
.workflow__step {
  position: relative;
  z-index: 1;
  padding: 44px 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform .25s ease, border-color .25s ease;
}
.workflow__step:hover { transform: translateY(-4px); border-color: rgba(167,139,250,.4); }

.workflow__num {
  position: absolute;
  top: -22px; left: 20px;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--violet), #6d5ae8);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 6px 20px rgba(109,90,232,.4);
}
.workflow__step h3 { margin: 8px 0 8px; font-size: 20px; }
.workflow__step p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* ---------- Statement ---------- */
.statement {
  padding: 130px 0;
  position: relative;
  overflow: hidden;
}
.statement::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 120%, rgba(139,92,246,.16), transparent 55%),
    radial-gradient(circle at 50% -20%, rgba(56,189,248,.1), transparent 50%);
}
.statement__inner { text-align: center; max-width: 980px; }

.statement__big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 82px);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.statement__big--2 { margin-bottom: 40px; }

.statement__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.statement__meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 12px var(--violet); }

.statement__bar {
  margin: 54px auto 0;
  width: min(420px, 80%);
  height: 2px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  overflow: hidden;
}
.statement__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
  border-radius: 2px;
  transition: width .1s linear;
}

/* ---------- Contact ---------- */
.contact { padding-bottom: 140px; }
.contact__inner { text-align: center; max-width: 760px; }
.contact__inner h2 { margin-left: auto; margin-right: auto; }
.contact__inner .lead { margin-left: auto; margin-right: auto; margin-top: 4px; }

.contact__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
}
.contact__note {
  margin-top: 26px;
  color: var(--muted2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
}
.contact__note code {
  color: var(--text-body);
  background: rgba(255,255,255,.06);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 11px;
}

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line-soft); }
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}
.footer b { color: var(--text); font-family: var(--font-display); letter-spacing: .03em; }
.to-top { color: var(--text-body); transition: color .2s ease; }
.to-top:hover { color: var(--cyan); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: .08s; }
.reveal--delay-2 { transition-delay: .16s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero__grid { gap: 40px; }
  .workflow { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .workflow__step:nth-child(n+3) { margin-top: 14px; }
}

@media (max-width: 880px) {
  /* Mobile nav → burger */
  .burger { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 12px;
    background: rgba(8,9,11,.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav a { font-size: 17px; padding: 14px 16px; }
  .nav-cta { display: none; }

  .hero__grid { grid-template-columns: 1fr; }
  .portrait { grid-row: 1; max-width: 360px; }
  .hero__copy { grid-row: 2; }
  .about__grid { grid-template-columns: 1fr; gap: 26px; }
  .projects { grid-template-columns: 1fr; }
  .card--feature { grid-column: auto; }
  .card--feature .card__visual { min-height: 300px; }
  .skills { grid-template-columns: 1fr; }
  .section { padding: 88px 0; }
  .strip__grid { grid-template-columns: 1fr 1fr; }
  .strip__grid > div:nth-child(2) { border-right: 0; }
  .strip__grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .container { width: min(1180px, calc(100% - 32px)); }
  h1 { font-size: clamp(36px, 10.5vw, 46px); }
  h2 { font-size: clamp(28px, 8vw, 34px); }
  .lead { font-size: 17px; }
  .hero { padding-top: 48px; }
  .portrait { max-width: 300px; }
  .strip__grid { grid-template-columns: 1fr; }
  .strip__grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .strip__grid > div:nth-child(2) { border-right: 0; }
  .strip__grid > div:last-child { border-bottom: 0; }
  .card--feature .card__visual { min-height: 260px; }
  .card__visual, .game-art, .social-ui, .studio-art, .landing-art { min-height: 210px; }
  .actions .btn { width: 100%; }
  .contact__actions .btn { width: 100%; }
  .statement { padding: 100px 0; }
  .footer { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
