:root {
  --paper: #f7f2ff;
  --paper-2: #ded3ff;
  --ink: #080710;
  --muted: rgba(247, 242, 255, 0.68);
  --muted-dark: #b9add8;
  --panel: rgba(255, 255, 255, 0.1);
  --panel-dark: #0c0917;
  --line: rgba(255, 255, 255, 0.16);
  --line-light: rgba(255, 255, 255, 0.18);
  --acid: #c9a7ff;
  --cyan: #75e7ff;
  --warm: #ff6b35;
  --violet: #7c3cff;
  --shadow: 0 28px 90px rgba(4, 2, 12, 0.42);
  --grain-opacity: 0.035;
  --reveal-duration: 0.8s;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 72% 0%, rgba(124, 60, 255, 0.34), transparent 24rem),
    radial-gradient(circle at 18% 84%, rgba(255, 122, 223, 0.16), transparent 24rem),
    linear-gradient(180deg, #050509 0%, #0b0714 44%, #10091f 72%, #050509 100%);
  font-family: "Inter", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}





/* ── Skip to Content ── */
.skip-to-content {
  position: fixed; top: -100%; left: 50%; transform: translateX(-50%);
  z-index: 10001; padding: 12px 24px;
  background: var(--violet); color: var(--paper);
  border-radius: 0 0 12px 12px;
  font-weight: 800; font-size: 0.88rem; transition: top 0.3s;
}
.skip-to-content:focus { top: 0; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 78px;
  margin: 0;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(5, 5, 9, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.contact-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 400px;
  margin: 100px auto 60px;
  padding: clamp(40px, 6vw, 80px);
  background: linear-gradient(135deg, rgba(32, 24, 58, 0.4), rgba(16, 12, 32, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: grayscale(100%);
  z-index: 0;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.brand-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
}
.brand-wave span {
  width: 4px;
  background: linear-gradient(180deg, var(--cyan), #a282ff);
  border-radius: 2px;
  animation: brandEqualize 1.2s infinite ease-in-out;
}
.brand-wave span:nth-child(1) { animation-delay: 0.1s; height: 12px; }
.brand-wave span:nth-child(2) { animation-delay: 0.3s; height: 22px; }
.brand-wave span:nth-child(3) { animation-delay: 0.0s; height: 14px; }
.brand-wave span:nth-child(4) { animation-delay: 0.4s; height: 24px; }
.brand-wave span:nth-child(5) { animation-delay: 0.2s; height: 10px; }

@keyframes brandEqualize {
  0%, 100% { height: 6px; }
  50% { height: 100%; }
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  color: rgba(247, 242, 255, 0.72);
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--acid);
  background: transparent;
}

.language-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.language-switch button {
  min-width: 42px;
  height: 36px;
  color: rgba(247, 242, 255, 0.74);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.language-switch button.is-active {
  color: var(--ink);
  background: linear-gradient(135deg, var(--acid), var(--cyan));
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px;
  background: linear-gradient(135deg, var(--violet), #2a145b);
  border: 0;
  border-radius: 50%;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--paper);
}

.section,
.contact-panel,
.site-footer {
  width: min(1240px, calc(100% - 28px));
  margin-right: auto;
  margin-left: auto;
}

.hero {
  display: block;
  min-height: calc(100vh - 78px);
  padding: 0;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
}

.hero-main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(26px, 5vw, 60px) max(14px, calc((100vw - 1240px) / 2));
  overflow: hidden;
  color: var(--paper);
  background: #050509;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-content-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  .hero-content-wrapper {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-glow-bg {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle at center, rgba(124, 60, 255, 0.4), rgba(117, 231, 255, 0.15) 50%, transparent 70%);
  filter: blur(90px);
  animation: aurora 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes aurora {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.6; }
  50% { transform: translate(-10%, 15%) scale(1.2) rotate(10deg); opacity: 0.9; }
  100% { transform: translate(5%, 5%) scale(1.1) rotate(-5deg); opacity: 0.7; }
}

.since-mark {
  color: rgba(247, 242, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  margin-bottom: 16px;
}

.dynamic-kicker-wrap {
  margin: 0 0 14px;
}

.kicker {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  display: inline-block;
}

.kicker::after {
  content: '|';
  animation: blink 1s step-end infinite;
  margin-left: 4px;
}
@keyframes blink {
  50% { opacity: 0; }
}

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

h1 {
  position: relative;
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(4.6rem, 14vw, 12.5rem);
  line-height: 0.78;
  letter-spacing: 0;
  animation: heroClipReveal 1.4s cubic-bezier(0.77, 0, 0.175, 1) 0.3s both;
}

h1.hero-title {
  margin: 0 0 4px;
  padding-bottom: 12px;
  font-size: clamp(3.4rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 20%, #a282ff 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 40px rgba(162, 130, 255, 0.25));
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

p {
  color: var(--muted-dark);
  line-height: 1.65;
}

.hero-main p {
  color: rgba(247, 242, 255, 0.78);
}

.lead {
  position: relative;
  max-width: 760px;
  font-size: clamp(1.18rem, 2.2vw, 1.58rem);
}

.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.audio-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
  margin-left: 16px;
}

.audio-visualizer span {
  width: 5px;
  background: var(--cyan);
  border-radius: 3px;
  animation: equalize 1.5s infinite ease-in-out;
}
.audio-visualizer span:nth-child(1) { animation-delay: 0.1s; height: 40%; }
.audio-visualizer span:nth-child(2) { animation-delay: 0.3s; height: 80%; }
.audio-visualizer span:nth-child(3) { animation-delay: 0.0s; height: 60%; }
.audio-visualizer span:nth-child(4) { animation-delay: 0.4s; height: 100%; }
.audio-visualizer span:nth-child(5) { animation-delay: 0.2s; height: 50%; }

@keyframes equalize {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}

/* ── Hero staggered animations ── */
.hero-main .kicker { animation: fadeInUp 0.8s 0.2s ease both; }
.hero-main .lead { animation: fadeInUp 0.8s 0.5s ease both; }
.hero-actions { animation: fadeInUp 0.8s 0.7s ease both; }

@keyframes heroClipReveal {
  from { clip-path: inset(0 0 100% 0); opacity: 0; }
  to { clip-path: inset(-50% -50% -50% -50%); opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ── Hero Wave SVG ── */
.hero-wave {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 80px;
  opacity: 0.07; pointer-events: none; overflow: hidden;
}
.hero-wave rect { fill: var(--acid); }
.hero-wave rect:nth-child(odd) { animation: waveBar 1.4s ease-in-out infinite alternate; }
.hero-wave rect:nth-child(even) { animation: waveBar 1.4s 0.3s ease-in-out infinite alternate-reverse; }
@keyframes waveBar {
  0% { transform: scaleY(0.3); transform-origin: bottom; }
  50% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0.5); transform-origin: bottom; }
}

/* ── Hero Stat Badges ── */
.hero-stats {
  position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px;
  animation: fadeInUp 0.8s 0.9s ease both;
}
.stat-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: rgba(16, 12, 32, 0.6);
  border: 1px solid rgba(124, 60, 255, 0.2);
  border-radius: 999px; backdrop-filter: blur(16px);
  font-size: 0.85rem; font-weight: 600; color: rgba(247, 242, 255, 0.8);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.stat-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 60, 255, 0.4);
  background: rgba(32, 24, 58, 0.7);
}
.stat-badge svg {
  color: #a282ff;
}
.stat-badge strong { color: #fff; font-weight: 800; }

/* ── Hero Visual (Right Column) ── */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  perspective: 1000px;
  animation: fadeInUp 1s 0.6s ease both;
}
.hero-visual .portrait-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
  transition: transform 0.8s ease;
}
.hero-visual:hover img {
  transform: scale(1.04);
}
.floating-badge {
  position: absolute;
  background: rgba(16, 12, 32, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 60, 255, 0.3);
  padding: 12px 20px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  animation: floatBadge 6s infinite ease-in-out alternate;
}
.floating-badge svg { color: var(--cyan); }
.floating-badge.top-right {
  top: 15%;
  right: -8%;
  animation-delay: 0s;
}
.floating-badge.bottom-left {
  bottom: 20%;
  left: -8%;
  animation-delay: -3s;
}
@keyframes floatBadge {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(2deg); }
}

.button,
.work-top a,
.work-top button,
.link-strip a,
.link-strip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.button.dark,
.work-top a,
.work-top button,
.link-strip a,
.link-strip button {
  color: var(--paper);
  background: linear-gradient(135deg, var(--violet), #4b22b5);
  box-shadow: 0 12px 34px rgba(124, 60, 255, 0.3);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.button.dark:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(124, 60, 255, 0.5);
}

.button.light {
  color: var(--ink);
  background: linear-gradient(135deg, var(--acid), var(--cyan));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.button.light:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(117, 231, 255, 0.3);
}

.button.full {
  width: 100%;
  margin-top: 18px;
}

.hero-side {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.portrait-card {
  grid-column: span 2;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 456px;
  overflow: hidden;
}

.portrait-card img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  filter: grayscale(0.25) saturate(0.8) contrast(1.05);
}

.portrait-card div,
.mini-card {
  padding: 22px;
}

.portrait-card span,
.mini-card span,
.work-top span,
.timeline span,
.contact-links span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portrait-card strong,
.mini-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  line-height: 1.08;
}

.mini-card {
  min-height: 188px;
}

.accent-card {
  color: var(--ink);
  background: linear-gradient(135deg, var(--acid), var(--cyan));
  border-color: rgba(255, 255, 255, 0.18);
}

.accent-card span {
  color: rgba(8, 7, 16, 0.62);
}

.section {
  padding: clamp(54px, 8vw, 106px) 0;
}

#works {
  position: relative;
  width: 100%;
  padding-right: max(14px, calc((100vw - 1240px) / 2));
  padding-left: max(14px, calc((100vw - 1240px) / 2));
  background:
    linear-gradient(180deg, rgba(5, 5, 9, 0) 0%, rgba(25, 12, 52, 0.72) 18%, rgba(7, 6, 14, 0.94) 100%),
    radial-gradient(circle at 88% 12%, rgba(117, 231, 255, 0.16), transparent 22rem);
}

#works .section-head,
#works .works-grid {
  width: min(1240px, 100%);
  margin-right: auto;
  margin-left: auto;
}

/* ── Service Rail → Marquee ── */
.service-rail {
  display: flex; overflow: hidden; width: 100%; margin: 0; padding: 0;
  background: rgba(8, 7, 16, 0.95);
  border-top: 1px solid rgba(124, 60, 255, 0.15);
  border-bottom: 1px solid rgba(124, 60, 255, 0.15);
  box-shadow: 0 0 40px rgba(124, 60, 255, 0.08);
  white-space: nowrap;
  backdrop-filter: blur(12px);
}
.marquee-track {
  display: flex; flex-shrink: 0;
  width: fit-content;
  animation: marqueeScroll 20s linear infinite;
}
.marquee-track span {
  flex: 0 0 auto; min-height: 70px;
  padding: 24px clamp(22px, 4vw, 48px);
  color: #a282ff; 
  border-right: 1px solid rgba(124, 60, 255, 0.15);
  font-size: 0.85rem; font-weight: 900; letter-spacing: 0.15em;
  text-transform: uppercase; display: flex; align-items: center;
  text-shadow: 0 0 16px rgba(124, 60, 255, 0.4);
}
.marquee-track .separator { font-size: 0.6rem; padding: 24px 12px; opacity: 0.5; border: 0; color: #fff; text-shadow: none; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 24px;
  position: relative;
  align-items: stretch;
}

.about-photo {
  height: auto;
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.5s ease, transform 0.5s ease;
}
.about-photo:hover img {
  filter: grayscale(0%) contrast(1.1);
  transform: scale(1.04);
}

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-photo {
    height: 400px;
  }
}

.about-copy {
  color: var(--paper);
  background: linear-gradient(145deg, rgba(16, 12, 32, 0.8), rgba(8, 6, 18, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-glow {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(124, 60, 255, 0.15), transparent 70%);
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 0;
}

.about-copy > * {
  position: relative;
  z-index: 1;
}

.about-copy h2.gradient-text {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, #a282ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.about-copy p {
  max-width: 640px;
  color: rgba(247, 242, 255, 0.75);
  font-size: 1.1rem;
  line-height: 1.6;
}

.scope-cards-wrapper {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}

.scope-card {
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(22, 16, 42, 0.6), rgba(12, 9, 22, 0.8));
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
  padding: clamp(24px, 3vw, 32px);
  height: 100%;
}

.scope-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(32, 24, 58, 0.7), rgba(16, 12, 32, 0.9));
  border-color: rgba(255, 255, 255, 0.12);
}

.scope-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(124, 60, 255, 0.1);
  color: #a282ff;
  border: 1px solid rgba(124, 60, 255, 0.2);
}

.scope-content {
  flex: 1;
}

.scope-num {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  background: rgba(117, 231, 255, 0.1);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 8px;
  letter-spacing: 0.05em;
}

.scope-card h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: #fff;
}

.scope-card p {
  color: rgba(247, 242, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) minmax(0, 0.66fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.section-head h2 {
  margin-bottom: 0;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 22px;
  overflow: hidden;
  transition: box-shadow 0.5s ease, transform 0.5s ease;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}

.work-card:hover {
  box-shadow: 0 0 60px rgba(201,167,255,0.12), 0 28px 90px rgba(4,2,12,0.5);
}
.work-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  opacity: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(201,167,255,0.06), transparent 40%);
  transition: opacity 0.5s; pointer-events: none; z-index: 0;
}
.work-card:hover::after { opacity: 1; }

.work-card.large {
  grid-column: 1 / -1;
  min-height: 370px;
  color: var(--paper);
  background: linear-gradient(135deg, rgba(13, 10, 27, 0.98), rgba(67, 30, 148, 0.48));
  border-color: rgba(255, 255, 255, 0.12);
}

.work-card.with-video {
  grid-column: span 2;
  min-height: 440px;
}

.work-card.with-video:hover .case-media iframe {
  transform: scale(1.01);
}

.work-card.warm {
  color: var(--paper);
  background: linear-gradient(135deg, rgba(30, 15, 45, 0.9), rgba(60, 20, 60, 0.6));
  border-color: rgba(255, 122, 223, 0.2);
}

.work-card.warm p,
.work-card.warm .role {
  color: rgba(247, 242, 255, 0.72);
}

.work-card.large p {
  color: rgba(247, 242, 255, 0.72);
}

.work-card p {
  margin-bottom: 14px;
}

.case-media {
  position: relative;
  width: calc(100% + 44px);
  margin: -8px -22px 20px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(124, 60, 255, 0.2), rgba(117, 231, 255, 0.12)),
    #080710;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.case-media::after {
  content: attr(data-label);
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 7px 10px;
  color: var(--paper);
  background: rgba(8, 7, 16, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-media > iframe, .case-media > .lite-youtube {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0.94;
  filter: saturate(0.95) contrast(1.04);
  transition: transform 600ms ease;
}

.media-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.media-open {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--acid), var(--cyan));
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

/* ── Card Video Grid & Reel Strip (inside work cards) ── */
.card-video-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 10px; }
.card-video-grid.two-up { grid-template-columns: repeat(2, 1fr); }
.card-video-grid iframe, .card-video-grid .lite-youtube { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; background: #080710; }
.card-reel-strip { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.card-reel-strip a {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px;
  color: var(--paper); background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 999px;
  font-size: 0.68rem; font-weight: 800; transition: all 0.3s ease;
}
.card-reel-strip a:hover { color: var(--ink); background: linear-gradient(135deg, var(--acid), var(--cyan)); border-color: transparent; }

.project-playlist { aspect-ratio: auto; }
.project-playlist .card-video-grid { padding: 16px 22px 0; }
.project-playlist .card-reel-strip { padding: 0 22px 16px; }

.playlist-preview {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(117, 231, 255, 0.22), transparent 12rem),
    linear-gradient(135deg, rgba(124, 60, 255, 0.32), rgba(255, 122, 223, 0.18)),
    #080710;
}

.poster-preview {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}



.poster-preview .media-placeholder {
  position: relative;
  z-index: 1;
}

.poster-preview a,
.media-placeholder a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--acid), var(--cyan));
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.pubg-poster {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 196, 87, 0.28), transparent 14rem),
    linear-gradient(135deg, rgba(32, 24, 10, 0.92), rgba(124, 60, 255, 0.3)),
    #080710;
}

.vodafone-poster {
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 92, 124, 0.34), transparent 14rem),
    linear-gradient(135deg, rgba(58, 8, 24, 0.92), rgba(255, 122, 223, 0.32)),
    #080710;
}

.film-poster {
  background: #080710;
}

.kulyas-poster {
  background: #080710;
}

.media-placeholder {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 22px;
  text-align: center;
}

.playlist-preview .media-placeholder {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  justify-items: start;
  max-width: min(82%, 340px);
  padding: 14px;
  background: rgba(8, 7, 16, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  text-align: left;
  backdrop-filter: blur(14px);
}

.playlist-preview .media-placeholder strong {
  font-size: clamp(1rem, 2vw, 1.45rem);
}

.media-placeholder span {
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media-placeholder strong {
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  line-height: 1;
}

.media-placeholder button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--acid), var(--cyan));
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.work-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: auto;
  padding-bottom: 30px;
}

.work-top a,
.work-top button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.8rem;
}

.work-card.large .work-top a {
  color: var(--ink);
  background: linear-gradient(135deg, var(--acid), var(--cyan));
}

.role {
  color: rgba(247, 242, 255, 0.62);
  font-weight: 800;
}

.watch-section {
  width: 100%;
  padding: clamp(54px, 8vw, 96px) max(14px, calc((100vw - 1240px) / 2));
  background:
    linear-gradient(135deg, rgba(247, 242, 255, 0.98), rgba(222, 211, 255, 0.94)),
    radial-gradient(circle at 10% 0%, rgba(124, 60, 255, 0.22), transparent 24rem);
  color: var(--ink);
}

.watch-section .section-head,
.watch-section .link-strip,
.watch-section .playlist-board {
  width: min(1240px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.watch-section .kicker,
.watch-section h2 {
  color: var(--ink);
}

.link-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
  background: rgba(8, 7, 16, 0.08);
  border: 1px solid rgba(8, 7, 16, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.link-strip a,
.link-strip button {
  min-height: 44px;
}

.playlist-board {
  display: grid;
  gap: 18px;
}

.playlist-group {
  padding: clamp(18px, 3vw, 28px);
  color: var(--paper);
  background:
    radial-gradient(circle at 92% 8%, rgba(124, 60, 255, 0.22), transparent 18rem),
    linear-gradient(135deg, rgba(8, 7, 16, 0.96), rgba(37, 18, 74, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.playlist-group header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.playlist-group header span {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.playlist-group header strong {
  max-width: 560px;
  font-size: clamp(1.35rem, 3vw, 2.8rem);
  line-height: 0.96;
  text-align: right;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.video-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #080710;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
}

.video-tile iframe, .video-tile .lite-youtube {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-tile button {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  min-height: 34px;
  padding: 0 11px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--acid), var(--cyan));
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
}

.reel-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.reel-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.reel-strip a:hover {
  color: var(--ink);
  background: linear-gradient(135deg, var(--acid), var(--cyan));
}

.compact-playlist .link-strip {
  margin: 0;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.cv-section {
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(8, 7, 16, 0.98), rgba(13, 8, 29, 0.96)),
    radial-gradient(circle at 18% 8%, rgba(124, 60, 255, 0.26), transparent 25rem),
    #080710;
  width: 100%;
  padding-right: max(14px, calc((100vw - 1240px) / 2));
  padding-left: max(14px, calc((100vw - 1240px) / 2));
}

.cv-section .section-head,
.cv-section .cv-layout {
  width: min(1240px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.cv-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
}

.cv-layout .panel {
  padding: clamp(24px, 4vw, 42px);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.timeline,
.skills {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li,
.skills li {
  padding: 16px 0;
  border-top: 1px solid var(--line-light);
}

.timeline span {
  margin-bottom: 7px;
  color: var(--cyan);
}

.timeline strong {
  display: block;
  margin-bottom: 4px;
}

.timeline p,
.skills li {
  margin-bottom: 0;
  color: rgba(247, 242, 255, 0.68);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 48px);
  margin-top: 16px;
  margin-bottom: 42px;
  padding: clamp(26px, 5vw, 52px);
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(8, 7, 16, 0.94), rgba(72, 31, 159, 0.68)),
    url("https://images.unsplash.com/photo-1478737270239-2f02b77fc618?auto=format&fit=crop&w=1800&q=88") center / cover;
  border-radius: 28px;
}

.contact-panel h2 {
  margin-bottom: 0;
}

.contact-links {
  display: grid;
  gap: 10px;
}

.contact-links a {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 18px;
  overflow-wrap: anywhere;
  background: rgba(247, 242, 255, 0.1);
  border: 1px solid rgba(247, 242, 255, 0.14);
  border-radius: 18px;
  font-weight: 900;
  backdrop-filter: blur(16px);
}

.contact-links span {
  color: rgba(247, 242, 255, 0.58);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 0 30px;
  color: var(--muted);
  flex-wrap: wrap;
}

.developer-signature {
  font-size: 0.8rem;
  color: var(--muted-dark);
}

.developer-signature a {
  color: rgba(247, 242, 255, 0.78) !important;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.developer-signature a:hover {
  color: var(--acid) !important;
}

.site-footer a {
  font-weight: 900;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 500px;
  background: rgba(15, 11, 28, 0.4);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  margin-top: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(247, 242, 255, 0.8);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: var(--paper);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(0, 0, 0, 0.5);
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 20px;
  margin-top: 8px;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(17, 17, 17, 0.78);
  backdrop-filter: blur(24px);
}

.video-modal.is-open {
  display: grid;
}

.video-frame {
  width: min(1080px, 100%);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.4);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

/* ── Scroll Reveal ── */
[data-reveal] {
  opacity: 0; transform: translateY(40px); filter: blur(4px);
  transition: opacity var(--reveal-duration) ease, transform var(--reveal-duration) ease, filter var(--reveal-duration) ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }
[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
[data-reveal]:nth-child(3) { transition-delay: 0.2s; }
[data-reveal]:nth-child(4) { transition-delay: 0.3s; }
[data-reveal]:nth-child(5) { transition-delay: 0.4s; }
[data-reveal]:nth-child(6) { transition-delay: 0.5s; }

@media (max-width: 1100px) {
  .about-grid,
  .section-head,
  .cv-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-main {
    min-height: calc(100vh - 78px);
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 0;
    width: 100%;
    margin-top: 0;
    border-radius: 0;
    padding-right: 10px;
    padding-left: 10px;
  }

  .nav-toggle {
    display: block;
  }

  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 10px;
    left: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: rgba(15, 11, 28, 0.96);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .language-switch {
    margin-left: auto;
  }

  .hero,
  .section,
  .service-rail,
  .contact-panel,
  .site-footer {
    width: min(100% - 16px, 1240px);
  }

  .works-grid,
  .hero-side,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .playlist-group header {
    display: grid;
  }

  .playlist-group header strong {
    text-align: left;
  }

  .hero-main {
    min-height: calc(100vh - 78px);
    background-attachment: scroll;
  }

  .portrait-card {
    grid-column: span 1;
  }

  .work-card.large {
    grid-column: span 1;
  }

  .work-card.with-video {
    grid-column: span 1;
  }

  .panel,
  .contact-panel,
  .link-strip {
    border-radius: 20px;
  }

  .hero-main {
    border-radius: 0;
  }

  .about-copy,
  .scope-card {
    border-radius: 0;
  }

  .hero-actions .button,
  .button.full {
    width: 100%;
  }

  #cursor-dot, #cursor-ring { display: none !important; }
  .hero-stats { flex-direction: column; }
  .hero-wave { height: 40px; }
  .card-video-grid.two-up { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  h1 {
    font-size: clamp(2.8rem, 16vw, 4.4rem);
  }

  h1.hero-title {
    font-size: clamp(2.6rem, 14vw, 4.4rem);
  }

  h2 {
    font-size: 1.85rem;
  }

  .about-photo {
    height: 200px;
  }

  .hero-main {
    padding: 16px;
    min-height: calc(100vh - 78px);
  }

  .since-mark {
    left: 22px;
  }
}



/* --- Lite YouTube --- */
.lite-youtube {
  position: relative;
  background-color: #080710;
  background-position: center;
  background-size: cover;
  cursor: pointer;
  overflow: hidden;
}
.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 42px;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.yt-play-btn::before {
  content: '';
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
}
.lite-youtube:hover .yt-play-btn {
  background-color: #f00;
  border-color: #f00;
  transform: translate(-50%, -50%) scale(1.05);
}
.playlist-preview .yt-play-btn {
  display: none !important;
}
