/* ====== Reset & base ====== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
  --bg: #08080d;
  --bg-soft: #0d0d14;
  --surface: #12131c;
  --surface-2: #1a1c26;
  --surface-3: #22242f;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-bright: rgba(255, 255, 255, 0.22);
  --text: #f4f4f6;
  --text-dim: #a1a1ac;
  --text-mute: #6b6c78;
  --accent: #7c5cff;
  --accent-2: #b59cff;
  --accent-glow: rgba(124, 92, 255, 0.45);
  --accent-cyan: #38d4ff;
  --radius: 16px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Geist', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--accent); color: white; }

em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* ====== Aurora background ====== */
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.aurora-1, .aurora-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  will-change: transform;
}
.aurora-1 {
  width: 720px;
  height: 720px;
  top: -260px;
  left: -180px;
  background: radial-gradient(circle at 30% 30%, #7c5cff 0%, transparent 60%);
  animation: drift1 22s ease-in-out infinite;
}
.aurora-2 {
  width: 560px;
  height: 560px;
  top: 320px;
  right: -220px;
  background: radial-gradient(circle at 70% 30%, #38d4ff 0%, transparent 60%);
  opacity: 0.35;
  animation: drift2 28s ease-in-out infinite;
}
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, 40px); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, 60px); }
}

/* ====== Navigation ====== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  background: rgba(8, 8, 13, 0.6);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 30% 30%, #b59cff 0%, transparent 60%),
    linear-gradient(135deg, #7c5cff 0%, #4b2eff 100%);
  box-shadow: 0 0 18px var(--accent-glow), inset 0 0 8px rgba(255,255,255,0.2);
  position: relative;
}
.brand-name { font-size: 1rem; }
.brand-sep { color: var(--text-mute); font-weight: 300; }
.brand-sub {
  font-family: 'Geist Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-mid {
  display: flex;
  gap: 32px;
}
.nav-mid a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color .2s var(--ease);
  position: relative;
}
.nav-mid a:hover { color: var(--text); }
.nav-mid a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-mid a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.nav-cta:hover {
  background: rgba(124, 92, 255, 0.12);
  border-color: rgba(124, 92, 255, 0.35);
  transform: translateY(-1px);
}
.nav-cta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* ====== Hero ====== */
main { position: relative; z-index: 1; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 100px 6vw 80px;
  max-width: 1320px;
  margin: 0 auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: lowercase;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}
.kicker-line {
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.hero-title {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
}

.accent-word {
  position: relative;
  background: linear-gradient(120deg, #b59cff 0%, #7c5cff 40%, #38d4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.accent-dot { color: var(--accent); -webkit-text-fill-color: var(--accent); }

.accent-text {
  background: linear-gradient(120deg, #b59cff 0%, #7c5cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: 1.06rem;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease);
}

.btn-primary {
  background: linear-gradient(180deg, #8b6cff 0%, #6240ff 100%);
  color: white;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 12px 36px -12px var(--accent-glow),
    0 0 24px -6px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12) inset,
    0 18px 44px -10px var(--accent-glow),
    0 0 36px -4px var(--accent-glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-bright);
}

/* ====== Hero visual (banner stack) ====== */
.hero-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}

.stack {
  position: relative;
  width: 100%;
  max-width: 540px;
  transform-style: preserve-3d;
}

.stack-card {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
  transition: transform .6s var(--ease);
}
.stack-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.stack-card-1 {
  position: relative;
  z-index: 3;
  transform: rotate(-2deg) translateY(0);
}
.stack-card-2 {
  z-index: 2;
  transform: rotate(4deg) translate(36px, 38px) scale(0.96);
  opacity: 0.88;
}
.stack-card-3 {
  z-index: 1;
  transform: rotate(-7deg) translate(-44px, 72px) scale(0.92);
  opacity: 0.7;
}

.stack:hover .stack-card-1 { transform: rotate(-1deg) translateY(-6px); }
.stack:hover .stack-card-2 { transform: rotate(5deg) translate(44px, 34px) scale(0.96); }
.stack:hover .stack-card-3 { transform: rotate(-9deg) translate(-54px, 78px) scale(0.92); }

.stack-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
}

/* ====== Marquee ====== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, transparent 6%, transparent 94%, var(--bg) 100%);
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

.marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-family: 'Geist Mono', monospace;
  font-size: 0.84rem;
  color: var(--text-dim);
  text-transform: lowercase;
  letter-spacing: 0.04em;
}
.marquee-track .dot { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ====== Section head ====== */
.sec-head {
  margin-bottom: 50px;
  max-width: 720px;
}
.sec-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: none;
  gap: 24px;
}
.sec-tag {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent-2);
  text-transform: lowercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.sec-title {
  font-family: 'Geist', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.sec-aside {
  font-family: 'Geist Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-mute);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  padding-bottom: 8px;
}

/* ====== Services ====== */
.services {
  padding: 100px 6vw 80px;
  max-width: 1320px;
  margin: 0 auto;
}

.srv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.srv {
  position: relative;
  padding: 30px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.005) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s var(--ease);
}
.srv::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(124,92,255,0.4), transparent 40%, transparent 60%, rgba(56,212,255,0.25));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.srv:hover {
  transform: translateY(-3px);
  border-color: transparent;
}
.srv:hover::before { opacity: 1; }

.srv-num {
  font-family: 'Geist Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  padding-top: 6px;
}
.srv-body h3 {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.srv-body p {
  color: var(--text-dim);
  font-size: 0.96rem;
  line-height: 1.55;
}

.srv-badge {
  display: inline-flex;
  font-family: 'Geist Mono', monospace;
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #b59cff 100%);
  color: white;
}

.srv-line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width .6s var(--ease);
}
.srv:hover .srv-line { width: 100%; }

/* ====== Work / Portfolio ====== */
.work {
  padding: 80px 6vw 100px;
  max-width: 1320px;
  margin: 0 auto;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.work-item-wide { grid-column: 1 / -1; }

.work-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.work-item:hover {
  transform: translateY(-4px);
  border-color: var(--line-bright);
  box-shadow: 0 30px 80px -30px rgba(124, 92, 255, 0.45);
}

.work-frame {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 1px);
}
.work-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform .8s var(--ease), filter .5s var(--ease);
  filter: saturate(1);
}
.work-item-wide .work-frame img { aspect-ratio: 21 / 9; }
.work-item:hover .work-frame img {
  transform: scale(1.04);
  filter: saturate(1.1) brightness(1.05);
}

.work-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 8, 13, 0.85) 100%);
  pointer-events: none;
}
.w-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 0.78rem;
  text-transform: lowercase;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.w-arrow {
  font-size: 1rem;
  color: var(--text);
  opacity: 0.6;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.work-item:hover .w-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* ====== Contact ====== */
.contact {
  padding: 60px 6vw 100px;
  max-width: 1320px;
  margin: 0 auto;
}

.contact-inner {
  position: relative;
  padding: 70px 50px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% -10%, rgba(124, 92, 255, 0.22), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  text-align: center;
}

.contact-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.35) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.contact-inner .sec-tag {
  position: relative;
  z-index: 1;
}

.contact-title {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.contact-sub {
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 42px;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.discord {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 540px;
  margin: 0 auto;
  padding: 14px 14px 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  text-align: left;
}

.discord-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.discord-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5865f2 0%, #7c5cff 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 10px 24px -10px rgba(88, 101, 242, 0.7);
}
.discord-avatar svg { width: 26px; height: 26px; }

.discord-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.discord-label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.discord-name {
  font-family: 'Geist', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  user-select: all;
}

.discord-copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #8b6cff 0%, #6240ff 100%);
  color: white;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 8px 22px -8px var(--accent-glow);
}
.discord-copy:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.14) inset,
    0 14px 30px -10px var(--accent-glow);
}
.discord-copy .copy-default,
.discord-copy .copy-done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.discord-copy .copy-done {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.discord-copy.copied .copy-default { opacity: 0; }
.discord-copy.copied .copy-done { opacity: 1; }
.discord-copy.copied { background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%); }

/* ====== Footer ====== */
.footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 26px 6vw;
  border-top: 1px solid var(--line);
  font-family: 'Geist Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-mute);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.footer-left { display: flex; align-items: center; gap: 10px; }
.footer-mid { text-align: center; color: var(--text-dim); }
.footer-right { text-align: right; }
.footer-right strong { color: var(--text); font-weight: 600; }

/* ====== Lightbox ====== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 13, 0.94);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 5vw;
}
.lightbox.open { display: flex; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-strong);
  color: white;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

/* ====== Reveal animations ====== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero { gap: 40px; padding: 80px 5vw 60px; }
  .hero-visual { min-height: 380px; }
  .stack { max-width: 460px; }
}

@media (max-width: 900px) {
  .nav { padding: 14px 20px; }
  .nav-mid { display: none; }
  .brand-sep, .brand-sub { display: none; }
  .nav-cta { padding: 7px 12px; font-size: 0.78rem; }

  .hero {
    grid-template-columns: 1fr;
    padding: 56px 5vw 48px;
    gap: 56px;
    text-align: left;
  }
  .hero-text { order: 1; }
  .hero-visual {
    order: 2;
    min-height: auto;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    aspect-ratio: 16 / 11;
  }
  .stack { max-width: 100%; height: 100%; }
  .stack-card { position: absolute; inset: auto; width: 88%; }
  .stack-card-1 { top: 0; left: 6%; }
  .stack-card-2 { top: 8%; left: 12%; }
  .stack-card-3 { top: 16%; left: 0; }

  .services, .work, .contact { padding: 70px 5vw; }
  .sec-head { margin-bottom: 36px; }
  .sec-head-row { flex-direction: column; align-items: flex-start; gap: 10px; }

  .srv-grid { grid-template-columns: 1fr; gap: 14px; }
  .srv { padding: 24px 22px; gap: 18px; }

  .work-grid { grid-template-columns: 1fr; gap: 14px; }
  .work-item-wide { grid-column: auto; }
  .work-item-wide .work-frame img { aspect-ratio: 16 / 9; }

  .contact-inner { padding: 48px 26px; }
  .contact-sub { margin-bottom: 30px; }
  .discord {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }
  .discord-head { width: 100%; }
  .discord-copy { width: 100%; justify-content: center; padding: 14px 18px; }

  .footer {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 5vw;
    text-align: center;
  }
  .footer-left { justify-content: center; }
  .footer-mid, .footer-right { text-align: center; }

  .marquee { padding: 14px 0; }
  .marquee-track { gap: 22px; font-size: 0.78rem; }
}

@media (max-width: 560px) {
  .nav { padding: 12px 16px; }
  .brand-name { font-size: 0.94rem; }

  .hero { padding: 40px 5vw 36px; gap: 44px; }
  .kicker { font-size: 0.72rem; margin-bottom: 20px; }
  .hero-title {
    font-size: clamp(2.2rem, 11vw, 3rem);
    line-height: 1.02;
    margin-bottom: 20px;
  }
  .hero-sub { font-size: 0.96rem; margin-bottom: 28px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; padding: 13px 18px; }

  .hero-visual { aspect-ratio: 16 / 12; max-width: 100%; }
  .stack-card-1 { top: 0; left: 4%; width: 92%; }
  .stack-card-2 { top: 10%; left: 8%; width: 90%; transform: rotate(3deg) scale(0.96); }
  .stack-card-3 { top: 18%; left: 0; width: 86%; transform: rotate(-6deg) scale(0.92); }
  .stack:hover .stack-card-1,
  .stack:hover .stack-card-2,
  .stack:hover .stack-card-3 { transform: rotate(0) scale(1); }

  .services, .work, .contact { padding: 56px 5vw; }
  .sec-title { font-size: 1.9rem; }

  .srv { grid-template-columns: 1fr; gap: 10px; padding: 22px 20px; border-radius: 18px; }
  .srv-num { padding-top: 0; }
  .srv-body h3 { font-size: 1.18rem; gap: 8px; flex-wrap: wrap; }
  .srv-body p { font-size: 0.92rem; }

  .work-item { border-radius: 16px; }
  .work-item figcaption { padding: 14px 16px; }
  .w-meta { font-size: 0.7rem; }

  .contact-inner { padding: 40px 20px; border-radius: 20px; }
  .contact-title { font-size: 2rem; }
  .contact-sub { font-size: 0.94rem; margin-bottom: 26px; }
  .discord-avatar { width: 40px; height: 40px; border-radius: 12px; }
  .discord-avatar svg { width: 22px; height: 22px; }
  .discord-name { font-size: 1.2rem; }
  .discord-label { font-size: 0.66rem; }
  .discord-copy { font-size: 0.84rem; }

  .footer { font-size: 0.72rem; gap: 8px; }

  .lightbox-close { top: 14px; right: 14px; width: 38px; height: 38px; }
}

@media (hover: none) {
  .nav-mid a::after { display: none; }
  .stack:hover .stack-card-1,
  .stack:hover .stack-card-2,
  .stack:hover .stack-card-3 { transform: inherit; }
  .work-item:hover { transform: none; }
  .work-item:hover .work-frame img { transform: none; }
}
