/* =========================================================
   thekeq.com · portfolio
   ========================================================= */
:root {
  --bg: #0e0e0c;
  --bg-2: #151513;
  --card: #1a1a17;
  --card-2: #20201c;
  --line: rgba(242, 239, 230, 0.09);
  --line-2: rgba(242, 239, 230, 0.16);
  --text: #f2efe6;
  --muted: #9a978d;
  --accent: #d4ff3f;
  --accent-ink: #141a00;
  --green: #1ed760;
  --blue: #0057b7;
  --yellow: #ffd700;
  --radius: 22px;
  --radius-sm: 14px;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 600; color: var(--text); }
::selection { background: var(--accent); color: var(--accent-ink); }
.accent { color: var(--accent); }
.mono { font-family: var(--mono); }

/* ---------- ambient layers ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); }
  40% { transform: translate(3%, -6%); } 60% { transform: translate(-4%, 5%); } 80% { transform: translate(6%, 2%); }
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; z-index: 0; pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 255, 63, .09) 0%, rgba(212, 255, 63, 0) 65%);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .4s;
}
body.has-pointer .cursor-glow { opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  will-change: transform; white-space: nowrap;
}
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #e4ff7a; }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: rgba(242, 239, 230, .05); }
.btn-green { background: var(--green); color: #04220f; }
.btn-green:hover { background: #4be283; }
.btn-small { padding: 10px 18px; font-size: 14px; background: var(--text); color: var(--bg); }
.btn-small:hover { background: var(--accent); }
.btn-xl { padding: 22px 38px; font-size: 19px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50;
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px;
  border: 1px solid transparent; border-radius: 999px;
  transition: background .4s, border-color .4s, backdrop-filter .4s, top .4s;
}
.nav.scrolled {
  background: rgba(20, 20, 18, .72); border-color: var(--line);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-size: 17px; font-weight: 800;
  transition: transform .5s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.06); }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--muted);
  transition: color .25s, background .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(242, 239, 230, .06); }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  min-height: 100svh;
  padding: 130px var(--gutter) 40px;
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 40px;
}
.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(242, 239, 230, .03);
  font-size: 14px; color: var(--muted);
}
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(30, 215, 96, .6); animation: ping 2s infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(30, 215, 96, .55); } 70% { box-shadow: 0 0 0 10px rgba(30, 215, 96, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 215, 96, 0); } }
.hero-hi { margin: 26px 0 6px; font-size: 20px; color: var(--muted); }
.hero-title {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(38px, 5.3vw, 78px); line-height: 1.02; letter-spacing: -0.035em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .word { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.loaded .hero-title .word { transform: translateY(0); }
.loaded .hero-title .line:nth-child(2) .word { transition-delay: .08s; }
.loaded .hero-title .line:nth-child(3) .word { transition-delay: .16s; }
.loaded .hero-title .line:nth-child(4) .word { transition-delay: .24s; }
.accent-word {
  background: linear-gradient(100deg, var(--accent) 0%, #f4ffc4 45%, var(--accent) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.hero-sub { max-width: 540px; margin: 26px 0 0; font-size: 19px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 440px); }
.photo-wrap {
  position: relative; aspect-ratio: 1; border-radius: 36px;
  transform-style: preserve-3d; transition: transform .25s ease-out;
}
.photo-wrap::before {
  content: ""; position: absolute; inset: -2px; border-radius: 38px; z-index: -1;
  background: conic-gradient(from var(--angle, 0deg), var(--accent), transparent 30%, transparent 70%, var(--accent));
  animation: rotate 6s linear infinite;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes rotate { to { --angle: 360deg; } }
.photo {
  width: 100%; height: 100%; object-fit: cover; border-radius: 36px;
  filter: saturate(.92) contrast(1.04);
}
.photo-tag {
  position: absolute; padding: 9px 15px; border-radius: 999px;
  background: rgba(20, 20, 18, .82); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transform: translateZ(40px); animation: bob 5s ease-in-out infinite;
}
.photo-tag-1 { top: 9%; left: -9%; }
.photo-tag-2 { top: 46%; right: -11%; animation-delay: -1.6s; }
.photo-tag-3 { bottom: 8%; left: -5%; animation-delay: -3.2s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.spin-badge {
  position: absolute; right: -24px; bottom: -34px; width: 136px; height: 136px;
}
.spin-badge .spin-ring { transform-origin: 100px 100px; transform-box: view-box; animation: spin 18s linear infinite; }
.spin-badge text { font-family: var(--mono); font-size: 13.4px; letter-spacing: 1.6px; fill: var(--text); font-weight: 600; }
.spin-badge .spin-core { fill: var(--accent); }
.spin-badge .spin-k { font-family: var(--display); font-size: 34px; font-weight: 800; fill: var(--accent-ink); letter-spacing: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-meta {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center;
  padding-top: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.scroll-hint { display: inline-flex; align-items: center; gap: 12px; }
.scroll-line { position: relative; width: 60px; height: 1px; background: var(--line-2); overflow: hidden; }
.scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  animation: scrollline 2.2s var(--ease) infinite;
}
@keyframes scrollline { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: 1; overflow: hidden;
  padding: 26px 0; margin: 30px 0 0;
  background: var(--accent); color: var(--accent-ink);
  transform: rotate(-1.6deg) scale(1.03);
}
.marquee-track {
  display: flex; gap: 32px; width: max-content; align-items: center;
  font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3vw, 36px);
  text-transform: uppercase; letter-spacing: -0.01em;
  animation: marquee 32s linear infinite;
}
.marquee-track i { font-style: normal; font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 140px var(--gutter) 0; }
.section-head { margin-bottom: 56px; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.section-head h2, .contact-title {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -0.03em;
}

/* ---------- bento ---------- */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(170px, auto);
}
.card {
  position: relative; overflow: hidden;
  padding: 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transition: border-color .4s, transform .5s var(--ease);
}
.card:hover { border-color: var(--line-2); }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 255, 63, .07), transparent 40%);
}
.card:hover::after { opacity: 1; }
.card h3 { margin: 0 0 14px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.card p { margin: 0 0 12px; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card-about { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; }
.card-about::before {
  content: "”"; position: absolute; top: -40px; right: 20px;
  font-family: var(--display); font-size: 220px; line-height: 1; color: rgba(212, 255, 63, .08);
}
.card-stat { display: flex; flex-direction: column; justify-content: space-between; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 4vw, 54px); letter-spacing: -0.04em; line-height: 1; }
.stat-label { color: var(--muted); font-size: 15px; margin-top: 18px; }
.card-lime { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.card-lime .stat-label { color: rgba(20, 26, 0, .72); }
.card-lime::after { display: none; }
.card-ua { display: flex; flex-direction: column; justify-content: space-between; }
.ua-flag { width: 54px; height: 38px; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transform: rotate(-6deg); }
.ua-flag span { flex: 1; }
.ua-flag span:first-child { background: var(--blue); }
.ua-flag span:last-child { background: var(--yellow); }
.card-kicker { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.card-big { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -0.03em; }
.card-now { grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.now-list { display: flex; flex-direction: column; gap: 10px; }
.now-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-radius: var(--radius-sm); background: var(--card-2); border: 1px solid var(--line);
  font-weight: 600; transition: background .3s, border-color .3s, padding .3s var(--ease);
}
.now-list a span { color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.now-list a:hover { border-color: var(--accent); padding-left: 24px; }
.now-list a:hover span { color: var(--accent); transform: translate(2px, -2px); }
.card-code { grid-column: span 2; background: #11110f; padding: 0; display: flex; align-items: center; }
.card-code pre { margin: 0; padding: 26px 28px; font-family: var(--mono); font-size: 14.5px; line-height: 1.75; color: #cfccc2; overflow-x: auto; }
.c-k { color: var(--accent); } .c-f { color: #8fd3ff; } .c-c { color: #6b6960; }

/* ---------- projects ---------- */
.project {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center;
  padding: 48px; margin-bottom: 24px; border-radius: 32px;
  background: var(--bg-2); border: 1px solid var(--line);
}
.project-nz, .project-spotify { grid-template-columns: 1.25fr 1fr; }
.project-spotify { grid-template-columns: 1fr 1.2fr; }
.project-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.project-index { font-family: var(--mono); color: var(--muted); font-size: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; border: 1px solid var(--line-2);
}
.pill-live { color: var(--text); }
.pill-green { color: var(--green); border-color: rgba(30, 215, 96, .35); }
.project h3 {
  margin: 0 0 14px; font-family: var(--display); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.035em; line-height: 1.05;
}
.project-lead { margin: 0 0 22px; color: var(--muted); font-size: 18px; }
.project-points { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.project-points li { position: relative; padding-left: 26px; color: #c9c6bc; font-size: 16px; }
.project-points li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tags span {
  padding: 6px 12px; border-radius: 8px; font-family: var(--mono); font-size: 12.5px;
  background: rgba(242, 239, 230, .05); border: 1px solid var(--line); color: #c9c6bc;
}
.project-links { display: flex; flex-wrap: wrap; gap: 10px; }

.browser { border-radius: 16px; overflow: hidden; background: #1c1c1a; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #232320; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a36; }
.browser-bar i:nth-child(1) { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span {
  margin-left: 12px; padding: 4px 14px; border-radius: 8px; background: #161614;
  font-family: var(--mono); font-size: 12px; color: var(--muted); flex: 1; text-align: center; max-width: 280px; margin-inline: auto;
}
.shots { position: relative; aspect-ratio: 1440 / 860; }
.shots img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.03); transition: opacity .7s var(--ease), transform 1.2s var(--ease);
}
.shots img.active { opacity: 1; transform: scale(1); }
.shot-tabs { display: flex; gap: 8px; margin-top: 16px; justify-content: center; flex-wrap: wrap; }
.shot-tabs button {
  position: relative; overflow: hidden;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--muted); font: 600 14px var(--body); cursor: pointer; transition: color .3s, border-color .3s;
}
.shot-tabs button.active { color: var(--accent-ink); border-color: var(--accent); background: var(--accent); }
.shot-tabs button:not(.active):hover { color: var(--text); border-color: var(--text); }

.phone {
  width: min(100%, 330px); margin: 0 auto; border-radius: 40px; padding: 10px;
  background: #050505; border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -30px rgba(38, 165, 228, .45);
}
.phone-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: #17212b; border-radius: 30px 30px 0 0;
}
.phone-head b { display: block; font-size: 15px; line-height: 1.2; }
.phone-head small { color: #6c8aa5; font-size: 12px; }
.phone-ava { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #26a5e4; font-size: 18px; }
.chat {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 14px 22px; min-height: 380px;
  background: #0e1621; border-radius: 0 0 30px 30px;
}
.msg {
  max-width: 82%; padding: 10px 14px; border-radius: 16px 16px 16px 4px;
  background: #182533; font-size: 14px; line-height: 1.45; color: #d6dde6;
  opacity: 0; transform: translateY(14px) scale(.96);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.msg b { color: #8ec5ff; }
.msg-me { align-self: flex-end; background: #2b5278; border-radius: 16px 16px 4px 16px; }
.in .msg { opacity: 1; transform: none; }
.in .msg:nth-child(2) { transition-delay: .6s; }
.in .msg:nth-child(3) { transition-delay: 1.2s; }
.in .msg:nth-child(4) { transition-delay: 1.8s; }

.bio-demo {
  margin: 0 0 24px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: #17212b; border: 1px solid rgba(38, 165, 228, .25); font-size: 15px;
}
.bio-label { font-size: 12px; color: #6c8aa5; margin-bottom: 6px; }
.bio-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bio-line.muted { color: #8b9aab; }
#track { color: var(--green); font-weight: 600; transition: opacity .3s; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--green); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.shot-single { border-radius: 16px; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(30, 215, 96, .25); transition: transform .25s ease-out; }

.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.mini {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s;
}
.mini:hover { transform: translateY(-6px); border-color: var(--line-2); }
.mini img { aspect-ratio: 2 / 1; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); transition: transform .8s var(--ease); }
.mini:hover img { transform: scale(1.04); }
.mini .light-img { background: #fff; }
.mini-body { padding: 20px 22px 24px; }
.mini h4 { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.mini h4 span { color: var(--muted); transition: color .3s, transform .3s var(--ease); }
.mini:hover h4 span { color: var(--accent); transform: translate(2px, -2px); }
.mini p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.mini-text { justify-content: space-between; }
.mini-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 22px 22px 0;
  border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); font-size: 26px; color: var(--accent);
}

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.service {
  position: relative; padding: 40px 40px 44px 0; border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease);
}
.service:nth-child(odd) { border-right: 1px solid var(--line); }
.service:nth-child(even) { padding-left: 40px; }
.service-n { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.service h3 {
  margin: 14px 0 12px; font-family: var(--display); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.03em; transition: color .3s;
}
.service p { margin: 0; color: var(--muted); max-width: 460px; }
.service:hover h3 { color: var(--accent); }

/* ---------- stack ---------- */
.stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stack-group { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.stack-group h4 { margin: 0 0 18px; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  padding: 9px 15px; border-radius: 999px; font-size: 15px; font-weight: 500;
  background: var(--card-2); border: 1px solid var(--line);
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.chips span:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: translateY(-2px); }

/* ---------- contact ---------- */
.contact {
  position: relative; z-index: 1; max-width: var(--max); margin: 140px auto 0;
  padding: 100px var(--gutter); text-align: center; overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; left: 50%; top: 55%; width: 900px; height: 900px; z-index: -1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 255, 63, .14), transparent 60%);
  filter: blur(10px);
}
.contact-title { font-size: clamp(42px, 8vw, 112px); line-height: 1; letter-spacing: -0.045em; }
.contact-sub { max-width: 560px; margin: 28px auto 40px; color: var(--muted); font-size: 19px; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin-top: 46px; }
.socials a { position: relative; color: var(--muted); font-weight: 500; transition: color .3s; }
.socials a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.socials a:hover { color: var(--text); }
.socials a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer {
  position: relative; z-index: 1; max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 28px var(--gutter) 36px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
.footer a:hover { color: var(--accent); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .msg { opacity: 1; transform: none; }
.no-js .hero-title .word { transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .project, .project-nz, .project-spotify { grid-template-columns: 1fr; gap: 36px; padding: 36px; }
  .project-nz .project-media { order: 2; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; gap: 56px; }
  .hero-visual { width: min(100%, 360px); }
  .services, .stack { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 32px 0 36px; border-right: 0 !important; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .card-about, .card-now, .card-code { grid-column: auto; grid-row: auto; }
  .project, .project-nz, .project-spotify { padding: 22px; border-radius: 24px; }
  .mini-grid { grid-template-columns: 1fr; }
  .section { padding-top: 100px; }
  .photo-tag { font-size: 12px; padding: 7px 12px; }
  .photo-tag-1 { left: 3%; } .photo-tag-2 { right: 3%; } .photo-tag-3 { left: 3%; }
  .spin-badge { width: 104px; height: 104px; right: -8px; bottom: -26px; }
  .hero-meta { flex-direction: column; gap: 10px; align-items: flex-start; }
  .btn-xl { padding: 18px 28px; font-size: 17px; }
  .card-code pre { font-size: 13px; padding: 22px; }
}

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