:root {
  color-scheme: dark;
  --bg: #000;
  --panel: rgba(15, 16, 24, 0.72);
  --panel-strong: rgba(20, 21, 31, 0.9);
  --text: #f6f7fb;
  --muted: #a7adbd;
  --line: rgba(255, 255, 255, 0.13);
  --purple: #c49aff;
  --deep-purple: #7c3cff;
  --magenta: #d946ef;
  --gold: #ffd21f;
  --logo-gold: #ffcc00;
  --logo-gold-deep: #f0a800;
  --premium-gold: linear-gradient(120deg, #ffe56a 0%, #ffcc00 48%, #f0a800 100%);
  --cyan: #24d9ff;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 72px;
  background:
    radial-gradient(circle at 4% 26%, rgba(196, 154, 255, 0.14), transparent 28rem),
    radial-gradient(circle at 78% 22%, rgba(124, 60, 255, 0.13), transparent 32rem),
    radial-gradient(circle at 18% 72%, rgba(255, 210, 31, 0.095), transparent 36rem),
    radial-gradient(circle at 78% 86%, rgba(217, 70, 239, 0.08), transparent 34rem),
    #020307;
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.gallery-open {
  overflow: hidden;
}

img,
video,
.video-player,
.work-card,
.hero-art,
.logo-stage,
.tool-logo {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

.cursor-glow {
  position: fixed;
  left: var(--x, 50vw);
  top: var(--y, 50vh);
  z-index: 2;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 154, 255, 0.055), rgba(255, 210, 31, 0.026) 34%, transparent 66%);
  filter: blur(34px);
  opacity: 0.42;
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease;
}

main,
footer,
.site-header {
  position: relative;
}

main,
footer {
  z-index: 2;
}

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

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene::before,
.scene::after {
  position: absolute;
  content: "";
  pointer-events: none;
  mix-blend-mode: screen;
}

.scene::before {
  width: 62vw;
  height: 62vw;
  left: -34vw;
  top: 16vh;
  background:
    radial-gradient(circle, rgba(196, 154, 255, 0.16), transparent 58%),
    radial-gradient(circle at 62% 54%, rgba(255, 210, 31, 0.08), transparent 46%);
  filter: blur(30px);
}

.scene::after {
  width: 76vw;
  height: 58vw;
  right: -38vw;
  bottom: -22vw;
  background:
    radial-gradient(circle, rgba(124, 60, 255, 0.15), transparent 58%),
    radial-gradient(circle at 38% 48%, rgba(217, 70, 239, 0.1), transparent 48%);
  filter: blur(36px);
}

.grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(black 0 55%, transparent 100%);
  opacity: 0.13;
}

.particle-field {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 210, 31, 0.55) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(196, 154, 255, 0.48) 0 1px, transparent 1.6px);
  background-position: 8% 17%, 73% 29%;
  background-size: 310px 270px, 430px 360px;
  mask-image: linear-gradient(transparent, black 14%, black 82%, transparent);
  opacity: 0.16;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 0.72rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(196, 154, 255, 0.16);
  background: rgba(0, 0, 0, 0.78);
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.46),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px) saturate(145%);
}

.site-header::before {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(196, 154, 255, 0.72), rgba(255, 210, 31, 0.46), transparent);
  opacity: 0.5;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(190px, 34vw);
}

.brand img,
footer img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 210, 31, 0.18));
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9rem, 2.3vw, 1.85rem);
  justify-self: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(246, 247, 251, 0.74);
  font-size: 0.82rem;
  font-weight: 800;
  transition: 180ms ease;
}

.nav a::after {
  display: none;
}

.nav a:hover {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.nav a::before {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--purple), var(--gold));
  opacity: 0;
  transform: scaleX(0.35);
  transition: 180ms ease;
}

.nav a:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.header-cta,
.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 11px;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-cta {
  min-height: 40px;
  padding: 0 1.05rem;
  border: 1px solid rgba(255, 210, 31, 0.48);
  border-radius: 9px;
  background: rgba(255, 210, 31, 0.12);
  color: #ffd76a;
  font-size: 0.82rem;
  box-shadow:
    inset 0 0 18px rgba(255, 210, 31, 0.04),
    0 10px 26px rgba(0, 0, 0, 0.26);
}

.header-cta:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(520px, 0.96fr) minmax(360px, 1.04fr);
  align-items: center;
  gap: clamp(0.5rem, 3vw, 2.5rem);
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero::before {
  position: absolute;
  inset: 4% -8% 0 38%;
  z-index: 2;
  content: "";
  background:
    radial-gradient(circle at 62% 42%, rgba(196, 154, 255, 0.18), transparent 28%),
    radial-gradient(circle at 45% 58%, rgba(255, 210, 31, 0.12), transparent 31%),
    radial-gradient(circle at 75% 70%, rgba(217, 70, 239, 0.08), transparent 30%);
  filter: blur(24px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  min-height: 30px;
  padding: 0 0.72rem;
  border: 1px solid rgba(196, 154, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(196, 154, 255, 0.075), rgba(255, 210, 31, 0.055)),
    rgba(255, 255, 255, 0.022);
  color: #c7cfdd;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  box-shadow: inset 0 0 18px rgba(196, 154, 255, 0.06);
}

.badge-mark {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--purple));
  box-shadow: 0 0 16px rgba(231, 163, 41, 0.72);
}

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

h1,
h2,
h3 {
  font-family: Montserrat, Manrope, system-ui, sans-serif;
}

h1 {
  max-width: 690px;
  margin-bottom: 1.45rem;
  font-size: clamp(2.75rem, 5.2vw, 4.85rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: none;
}

.headline-main,
.headline-white {
  white-space: nowrap;
}

.headline-line {
  display: block;
}

.headline-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  animation: wordPop 620ms cubic-bezier(0.2, 0.8, 0.2, 1) 80ms forwards;
}

.headline-word:nth-child(2) {
  animation-delay: 180ms;
}

.headline-line:nth-child(2) .headline-word:first-child {
  animation-delay: 820ms;
}

.headline-line:nth-child(2) .headline-word:nth-child(2) {
  animation-delay: 980ms;
}

.headline-main {
  background: linear-gradient(110deg, #ffd76a 0%, #f0a51f 34%, #c49aff 72%, #7c3cff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.headline-gradient-line {
  display: block;
  width: fit-content;
  background: linear-gradient(105deg, #ffd76a 0%, #f0a51f 34%, #c49aff 72%, #7c3cff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  animation: wordPop 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 420ms forwards;
}

.headline-white {
  color: #f8fafc;
  -webkit-text-fill-color: #f8fafc;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 4.4vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text,
.section-heading p,
.contact-section p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  width: 100%;
  max-width: 720px;
  margin-top: 1.55rem;
}

.hero-stats article {
  display: grid;
  min-height: 122px;
  align-content: center;
  justify-items: center;
  padding: 1.05rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 13px;
  background:
    linear-gradient(#070b13, #070b13) padding-box,
    linear-gradient(120deg, rgba(255, 210, 31, 0.38), rgba(196, 154, 255, 0.48)) border-box;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.24),
    inset 0 0 24px rgba(196, 154, 255, 0.035);
  opacity: 0;
  transform: translateY(18px);
  text-align: center;
  animation: statIn 880ms ease forwards;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.hero-stats article:hover {
  transform: translateY(-5px);
  filter: saturate(1.15);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.36),
    0 0 36px rgba(196, 154, 255, 0.12);
}

.hero-stats article:nth-child(2) {
  animation-delay: 120ms;
}

.hero-stats article:nth-child(3) {
  animation-delay: 240ms;
}

.hero-stats strong {
  display: block;
  order: 2;
  margin-top: 0.5rem;
  background: linear-gradient(110deg, #ffd76a, #c49aff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: clamp(1.42rem, 2vw, 2.05rem);
  font-family: Montserrat, Manrope, system-ui, sans-serif;
  font-weight: 900;
  line-height: 1;
}

.count-up {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hero-stats article > span {
  order: 1;
  color: #9da8ba;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.primary-btn {
  min-width: 154px;
  min-height: 50px;
  gap: 0.55rem;
  padding: 0 1.25rem;
  border: 1px solid rgba(255, 204, 0, 0.72);
  border-radius: 10px;
  background: linear-gradient(135deg, #ffe56a 0%, var(--logo-gold) 42%, var(--logo-gold-deep) 100%);
  color: #07080b;
  box-shadow:
    0 12px 28px rgba(255, 204, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.ghost-btn {
  min-width: 132px;
  min-height: 50px;
  gap: 0.55rem;
  padding: 0 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: #f7f8fb;
}

.primary-btn span,
.ghost-btn span {
  display: inline-flex;
  width: auto;
  height: auto;
  place-items: center;
  border-radius: 0;
  background: transparent;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.primary-btn:hover span {
  transform: translateY(3px);
}

.ghost-btn:hover span {
  transform: translate(2px, -2px);
}

.hero-panel {
  position: relative;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgba(196, 154, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02)),
    rgba(10, 10, 17, 0.76);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-art {
  position: relative;
  display: grid;
  z-index: 1;
  min-height: clamp(430px, 48vw, 650px);
  place-items: center;
  margin-right: clamp(-4rem, -5vw, -1.5rem);
}

.hero-art::after {
  position: absolute;
  inset: 5% 2% 4% 2%;
  z-index: 2;
  height: auto;
  content: "";
  background:
    radial-gradient(circle at 64% 42%, rgba(196, 154, 255, 0.2), transparent 29%),
    radial-gradient(circle at 37% 56%, rgba(255, 210, 31, 0.14), transparent 32%),
    radial-gradient(circle at 75% 68%, rgba(217, 70, 239, 0.11), transparent 25%);
  filter: blur(18px);
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
}

.hero-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(760px, 116%);
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
  mask-image:
    linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%),
    linear-gradient(180deg, transparent 0%, black 10%, black 88%, transparent 100%);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%),
    linear-gradient(180deg, transparent 0%, black 10%, black 88%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  filter:
    saturate(1.08)
    contrast(1.03)
    drop-shadow(0 38px 80px rgba(0, 0, 0, 0.56));
}

.hero-panel::before {
  position: absolute;
  inset: -2px;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(255, 210, 31, 0.28), transparent),
    linear-gradient(135deg, rgba(196, 154, 255, 0.18), transparent 42%);
  opacity: 0.5;
  pointer-events: none;
}

.logo-stage {
  position: relative;
  display: grid;
  min-height: 330px;
  place-items: center;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(196, 154, 255, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(255, 210, 31, 0.1), transparent),
    rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.logo-stage::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(transparent 0 48%, rgba(255, 255, 255, 0.08) 49%, transparent 51%);
  background-size: 100% 9px;
  opacity: 0.28;
  mix-blend-mode: screen;
}

.logo-stage img {
  position: relative;
  z-index: 1;
  width: min(92%, 540px);
  filter:
    drop-shadow(0 0 22px rgba(255, 255, 255, 0.24))
    drop-shadow(0 0 34px rgba(255, 210, 31, 0.2));
}

.metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.metrics article,
.feature-card,
.work-card,
.contact-card {
  border: 1px solid rgba(196, 154, 255, 0.14);
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.metrics article {
  min-height: 112px;
  padding: 1rem;
  border-radius: 18px;
}

.metrics strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #fff;
  font-family: Montserrat, Manrope, system-ui, sans-serif;
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  line-height: 1;
}

.metrics span,
.block-title span,
footer span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(2.8rem, 5.5vw, 4.8rem) 0;
}

.why-section {
  padding-bottom: clamp(2.2rem, 4vw, 3.6rem);
}

.creative-stack-section {
  padding-top: clamp(2rem, 3.8vw, 3.2rem);
  padding-bottom: clamp(2.4rem, 4.5vw, 3.8rem);
}

.portfolio-section {
  padding-top: clamp(2rem, 4vw, 3.4rem);
}

#home,
#why-us,
#creative-stack,
#portfolio,
#contact,
#long-form,
#short-form,
#thumbnails {
  scroll-margin-top: 92px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
}

.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 104px;
  padding: 0.82rem 1rem;
  border-color: transparent;
  border-radius: 11px;
  background:
    linear-gradient(#080d16, #080d16) padding-box,
    linear-gradient(100deg, rgba(88, 148, 255, 0.74), rgba(196, 154, 255, 0.72), rgba(255, 210, 31, 0.18)) border-box;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.35, 1), box-shadow 220ms ease, filter 220ms ease, background 220ms ease;
}

.feature-card:hover {
  transform: translateY(-4px) scale(1.008);
  filter: saturate(1.1);
  background:
    linear-gradient(#0a101b, #0a101b) padding-box,
    linear-gradient(105deg, rgba(255, 204, 0, 0.72), rgba(196, 154, 255, 0.88), rgba(88, 148, 255, 0.74)) border-box;
  box-shadow:
    0 20px 58px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(196, 154, 255, 0.1);
}

.feature-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.07);
  font-size: 1.18rem;
  font-weight: 900;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.35, 1), background 220ms ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.06) rotate(-2deg);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.24), transparent 42%),
    rgba(255, 204, 0, 0.13);
}

.feature-card h3 {
  margin-bottom: 0.25rem;
  font-size: 0.96rem;
  line-height: 1.2;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.42;
}

.feature-card strong {
  color: #79ffc1;
  font-size: 1.25rem;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.45rem;
}

.portfolio-section .section-heading {
  align-items: center;
  text-align: center;
}

.contact-section h2 {
  margin-bottom: 1rem;
  background: none;
  color: #f8fafc;
  font-size: clamp(2.35rem, 4.6vw, 4.2rem);
  font-weight: 900;
  line-height: 0.9;
}

.contact-section h2 span {
  background: linear-gradient(110deg, #ffd76a 0%, #f0a51f 28%, #c49aff 64%, #7c3cff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.section-heading.centered {
  align-items: center;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered h2 {
  background: none;
  color: #f8fafc;
  font-size: clamp(2.35rem, 4.6vw, 4.2rem);
  font-weight: 900;
  line-height: 0.9;
}

.section-heading.centered h2 span {
  background: linear-gradient(110deg, #ffd76a 0%, #f0a51f 34%, #c49aff 72%, #7c3cff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.95rem;
  color: var(--logo-gold);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.22));
  letter-spacing: 0.08em;
}

.rating-stars span {
  display: inline-block;
  opacity: 0;
  transform: translateY(4px) scale(0.92);
}

.rating-stars.is-visible span {
  animation: starPop 260ms ease-out forwards;
}

.rating-stars.is-visible span:nth-child(1) {
  animation-delay: 50ms;
}

.rating-stars.is-visible span:nth-child(2) {
  animation-delay: 110ms;
}

.rating-stars.is-visible span:nth-child(3) {
  animation-delay: 170ms;
}

.rating-stars.is-visible span:nth-child(4) {
  animation-delay: 230ms;
}

.rating-stars.is-visible span:nth-child(5) {
  animation-delay: 290ms;
}

.creative-stack-section {
  overflow: hidden;
}

.creative-stack-section .section-heading {
  margin-bottom: 1.65rem;
}

.creative-stack-section .section-heading p {
  max-width: 780px;
  margin: 1rem auto 0;
  color: #b7c0d2;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 1.75;
}

.stack-marquee {
  position: relative;
  width: 100vw;
  margin-left: 50%;
  padding: 0.35rem 0 0.6rem;
  overflow: hidden;
  transform: translateX(-50%);
}

.stack-marquee::before,
.stack-marquee::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(14vw, 180px);
  content: "";
  pointer-events: none;
}

.stack-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #020307, rgba(2, 3, 7, 0));
}

.stack-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #020307, rgba(2, 3, 7, 0));
}

.stack-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  padding-inline: 1rem;
  animation: stackMarquee 44s linear infinite;
  will-change: transform;
}

.stack-marquee:hover .stack-track {
  animation-play-state: running;
}

.stack-grid {
  display: grid;
  gap: 1rem;
  width: min(1140px, calc(100vw - 1.25rem));
  margin: 0 auto;
}

.stack-row {
  display: grid;
  justify-content: center;
  gap: 0.55rem;
}

.stack-row-primary {
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.stack-row-secondary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: min(690px, 100%);
  margin: 0 auto;
}

.stack-card {
  position: relative;
  display: grid;
  width: 106px;
  min-height: 120px;
  flex: 0 0 auto;
  place-items: center;
  gap: 0.76rem;
  padding: 1rem 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 0%, rgba(255, 204, 0, 0.1), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(196, 154, 255, 0.12), transparent 50%),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(135%);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.stack-grid .stack-card {
  width: 106px;
  min-height: 120px;
}

.stack-card:hover {
  z-index: 3;
  transform: translateY(-4px) scale(1.035);
  border-color: rgba(255, 204, 0, 0.44);
  background:
    linear-gradient(145deg, rgba(255, 204, 0, 0.11), rgba(196, 154, 255, 0.14)),
    rgba(255, 255, 255, 0.065);
  box-shadow:
    0 24px 66px rgba(0, 0, 0, 0.34),
    0 0 32px rgba(196, 154, 255, 0.12),
    0 0 24px rgba(255, 204, 0, 0.08);
}

.tool-logo {
  position: relative;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #fff;
  font-family: Montserrat, Manrope, system-ui, sans-serif;
  font-size: 0;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: none;
  overflow: hidden;
}

.tool-logo.logo-image {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tool-logo.logo-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.32));
}

.tool-logo.inline-logo svg {
  display: block;
  width: 84%;
  height: 84%;
  fill: currentColor;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.32));
}

.chatgpt-logo img {
  filter: invert(1) brightness(1.35) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.32));
}

.gemini-logo svg {
  width: 90%;
  height: 90%;
}

.capcut-logo,
.elevenlabs-logo {
  color: #fff;
}

.claude-logo {
  color: #d97757;
}

.tool-logo::before,
.tool-logo::after {
  position: absolute;
  content: "";
}

.tool-logo.adobe {
  border: 1px solid rgba(165, 140, 255, 0.3);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18), transparent 35%),
    linear-gradient(145deg, rgba(18, 18, 128, 0.96), rgba(16, 10, 56, 0.98));
  color: #bfb7ff;
  font-size: 2.05rem;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tool-logo.blender {
  color: #ff9326;
}

.stack-card:nth-child(17n + 6) .tool-logo::before {
  width: 48px;
  height: 30px;
  border: 8px solid #ff9428;
  border-left-width: 18px;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.stack-card:nth-child(17n + 6) .tool-logo::after {
  width: 18px;
  height: 18px;
  border: 5px solid #5aa7ff;
  border-radius: 50%;
  background: #10131d;
}

.stack-card:nth-child(17n + 7) .tool-logo::before,
.stack-card:nth-child(17n + 7) .tool-logo::after {
  width: 48px;
  height: 22px;
  border: 5px solid #fff;
  border-radius: 6px;
  transform: rotate(18deg);
}

.stack-card:nth-child(17n + 7) .tool-logo::after {
  transform: rotate(-18deg);
}

.stack-card:nth-child(17n + 8) .tool-logo::before {
  content: "✺";
  color: #fff;
  font-size: 3.7rem;
  line-height: 1;
}

.stack-card:nth-child(17n + 9) .tool-logo::before {
  content: "AI";
  color: #ff9d64;
  font-size: 2.5rem;
  letter-spacing: -0.1em;
}

.stack-card:nth-child(17n + 10) .tool-logo::before {
  content: "✦";
  background: linear-gradient(135deg, #fff, #77b8ff 42%, #b675ff 76%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 4.15rem;
  line-height: 1;
}

.stack-card:nth-child(17n + 11) .tool-logo::before {
  content: "◜";
  color: #f4f0ff;
  font-size: 5rem;
  transform: rotate(-22deg);
}

.stack-card:nth-child(17n + 11) .tool-logo::after {
  width: 44px;
  height: 20px;
  border-bottom: 3px solid #f4f0ff;
  border-radius: 50%;
  transform: translateY(14px);
}

.stack-card:nth-child(17n + 12) .tool-logo::before {
  content: "H";
  color: #bcff3f;
  font-family: Georgia, serif;
  font-size: 4.1rem;
  font-style: italic;
  text-shadow: 0 0 18px rgba(188, 255, 63, 0.5);
}

.stack-card:nth-child(17n + 13) .tool-logo::before {
  width: 0;
  height: 0;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  border-left: 34px solid #4b8dff;
  filter: drop-shadow(0 0 16px rgba(75, 141, 255, 0.5));
}

.stack-card:nth-child(17n + 14) .tool-logo::before,
.stack-card:nth-child(17n + 14) .tool-logo::after {
  width: 12px;
  height: 48px;
  border-radius: 6px;
  background: #fff;
}

.stack-card:nth-child(17n + 14) .tool-logo::before {
  transform: translateX(-12px);
}

.stack-card:nth-child(17n + 14) .tool-logo::after {
  transform: translateX(12px);
}

.stack-card:nth-child(17n + 15) .tool-logo::before {
  content: ")))";
  color: #8270ff;
  font-size: 2.65rem;
  letter-spacing: -0.18em;
}

.stack-card:nth-child(17n + 16) .tool-logo::before {
  width: 0;
  height: 0;
  border-right: 24px solid transparent;
  border-bottom: 44px solid #ff6b6b;
  border-left: 24px solid transparent;
  filter: drop-shadow(0 0 16px rgba(196, 154, 255, 0.48));
}

.stack-card:nth-child(17n + 16) .tool-logo::after {
  width: 48px;
  height: 15px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3aa9ff, #c49aff);
  transform: translateY(17px);
}

.stack-card:nth-child(17n + 17) .tool-logo::before {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: conic-gradient(from 40deg, #fff 0 74%, transparent 74% 100%);
}

.stack-card:nth-child(17n + 17) .tool-logo::after {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #11131d;
}

.tool-logo.logo-image::before,
.tool-logo.logo-image::after {
  content: none;
}

.stack-card strong {
  color: #f5f7fb;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

#creative-stack .stack-grid {
  display: grid;
  gap: 1rem;
  width: min(1140px, calc(100vw - 1.25rem));
  margin-inline: auto;
}

#creative-stack .stack-row {
  display: grid;
  gap: 0.55rem;
  justify-content: center;
}

#creative-stack .stack-row-primary {
  grid-template-columns: repeat(10, 106px);
}

#creative-stack .stack-row-secondary {
  grid-template-columns: repeat(6, 106px);
  width: auto;
  margin-inline: auto;
}

#creative-stack .stack-card {
  width: 106px;
  min-height: 120px;
}

#creative-stack .tool-logo.logo-image::before,
#creative-stack .tool-logo.logo-image::after,
#creative-stack .tool-logo.inline-logo::before,
#creative-stack .tool-logo.inline-logo::after {
  content: none !important;
  display: none !important;
}

.portfolio-section .section-heading h2 {
  max-width: 850px;
  background: none;
  color: #f8fafc;
  font-size: clamp(2.35rem, 4.6vw, 4.2rem);
  font-weight: 900;
  line-height: 0.9;
}

.portfolio-section .section-heading h2 span {
  background: linear-gradient(110deg, #ffd76a 0%, #f0a51f 28%, #c49aff 64%, #7c3cff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.portfolio-jump {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 270px));
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 2.1rem;
}

.portfolio-jump a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 58px;
  padding: 0 1.25rem;
  border: 1px solid rgba(255, 204, 0, 0.46);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  color: #eef2fb;
  text-align: center;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.portfolio-jump a:nth-child(2) {
  border-color: rgba(196, 154, 255, 0.5);
}

.portfolio-jump a:nth-child(3) {
  border-color: rgba(255, 255, 255, 0.22);
}

.portfolio-jump a:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 204, 0, 0.78);
  background: rgba(255, 204, 0, 0.055);
  box-shadow: 0 16px 38px rgba(255, 204, 0, 0.12);
  color: #fff;
}

.portfolio-jump a:nth-child(2):hover {
  border-color: rgba(196, 154, 255, 0.82);
  background: rgba(196, 154, 255, 0.06);
  box-shadow: 0 16px 38px rgba(196, 154, 255, 0.13);
}

.portfolio-jump a:nth-child(3):hover {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 16px 38px rgba(255, 255, 255, 0.08);
}

.portfolio-jump span {
  font-family: Montserrat, Manrope, system-ui, sans-serif;
  font-size: clamp(0.9rem, 1.6vw, 1.04rem);
  font-weight: 900;
}

.portfolio-jump em {
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.portfolio-jump strong {
  display: inline-flex;
  color: var(--logo-gold);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 200ms ease;
}

.portfolio-jump a:nth-child(2) strong {
  color: #c49aff;
}

.portfolio-jump a:nth-child(3) strong {
  color: #fff;
}

.portfolio-jump a:hover strong {
  transform: translateY(3px);
}

.portfolio-block + .portfolio-block {
  margin-top: 3rem;
}

.block-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.block-title h3 {
  margin-bottom: 0;
  font-size: 2rem;
}

.category-bar {
  position: relative;
  display: flex;
  width: 100%;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: clamp(1rem, 1.8vw, 1.55rem);
  margin: 0 0 1.45rem;
  padding: 0 0 0.36rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-bar::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04));
}

.category-bar button {
  position: relative;
  min-height: 30px;
  padding: 0 0 0.28rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(203, 212, 229, 0.62);
  cursor: pointer;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
  transition: color 200ms ease, transform 200ms ease;
}

.category-bar button::after {
  position: absolute;
  right: 0;
  bottom: -0.08rem;
  left: 0;
  z-index: 1;
  height: 2px;
  content: "";
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.28);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms ease;
}

.category-bar button:hover {
  transform: translateY(-1px);
  color: #fff;
}

.category-bar button.is-active {
  color: #fff;
}

.category-bar button:hover::after,
.category-bar button.is-active::after {
  transform: scaleX(1);
}

.work-grid {
  display: grid;
  gap: 1.15rem;
}

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

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

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.numbered-thumbnail {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
}

.numbered-thumbnail.is-hidden {
  display: none;
}

.thumbnail-grid img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  transition: transform 180ms ease;
}

.numbered-thumbnail:hover img {
  z-index: 1;
  transform: scale(1.018);
}


.work-card {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition: transform 180ms ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

.work-card.is-hidden {
  display: none;
}

.work-card.is-limited {
  display: none;
}

.video-player {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  border: 0;
  background: #000;
  overflow: hidden;
  box-shadow: none;
}

button.video-player {
  padding: 0;
  cursor: pointer;
}

.video-player img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transition: transform 220ms ease;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 23px solid #fff;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.46));
  transform: translate(-42%, -50%);
  transition: transform 180ms ease, filter 180ms ease;
}

button.video-player:hover img {
  filter: none;
  transform: scale(1.03);
}

button.video-player:hover .play-mark {
  filter: drop-shadow(0 0 22px rgba(231, 163, 41, 0.74));
  transform: translate(-42%, -50%) scale(1.1);
}

.vertical .video-player {
  aspect-ratio: 9 / 16;
}

.clean-video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #000;
  overflow: hidden;
}

.clean-video-shell.vertical {
  aspect-ratio: 9 / 16;
}

.clean-video-shell iframe,
.clean-video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: cover;
}

.see-more-btn {
  display: flex;
  min-width: 168px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 1.55rem;
  margin: 1.45rem auto 0;
  padding: 0 1.08rem 0 1.35rem;
  border: 1px solid rgba(255, 204, 0, 0.42);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(3, 4, 8, 0.9);
  color: #f8fafc;
  cursor: pointer;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 204, 0, 0.03),
    0 0 22px rgba(255, 204, 0, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.see-more-btn::after {
  content: "⌄";
  color: var(--logo-gold);
  font-size: 0.95rem;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 180ms ease;
}

.see-more-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 204, 0, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 204, 0, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(3, 4, 8, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 32px rgba(255, 204, 0, 0.16);
}

.see-more-btn:hover::after {
  transform: translateY(1px);
}

.see-more-btn {
  gap: 1.45rem;
  padding: 0 1.2rem 0 1.38rem;
}

.see-more-btn::after {
  width: 7px;
  height: 7px;
  content: "" !important;
  border-right: 1.8px solid var(--logo-gold);
  border-bottom: 1.8px solid var(--logo-gold);
  filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.24));
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.see-more-btn:hover::after {
  border-color: #ffe56a;
  filter: drop-shadow(0 0 12px rgba(255, 229, 106, 0.45));
  transform: translateY(2px) rotate(45deg);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
  gap: 1.7rem;
  align-items: center;
  text-align: center;
}

.contact-section > div:first-child {
  display: grid;
  justify-items: center;
}

.contact-card {
  display: grid;
  gap: 1.25rem;
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.contact-card a {
  display: grid;
  grid-template-columns: 54px minmax(0, 360px) 54px;
  min-height: 104px;
  align-items: center;
  justify-items: center;
  justify-content: center;
  gap: 0.95rem;
  padding: 1.15rem 1.4rem;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.075);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-card a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.11);
}

.contact-icon {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: #fff;
  transform: translateX(8px);
}

.contact-icon svg {
  width: 48px;
  height: 48px;
  fill: currentColor;
}

.contact-copy {
  display: grid;
  grid-column: 2;
  gap: 0.14rem;
  width: 100%;
  min-width: 0;
  justify-items: center;
  text-align: center;
}

.contact-card .contact-label {
  color: #fff;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.contact-card strong {
  color: #cbd4e5;
  font-size: clamp(0.9rem, 1.5vw, 1.08rem);
  font-weight: 800;
  word-break: break-word;
  text-align: center;
}

.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  padding: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 18%, rgba(196, 154, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 84% 16%, rgba(255, 204, 0, 0.12), transparent 30rem),
    rgba(2, 3, 7, 0.94);
  backdrop-filter: blur(18px);
}

.portfolio-modal.is-open {
  display: block;
}

.portfolio-modal-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(1400px, 100%);
  max-height: calc(100vh - clamp(2rem, 6vw, 4rem));
  margin: 0 auto;
  overflow: auto;
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 10%, rgba(196, 154, 255, 0.1), transparent 24rem),
    radial-gradient(circle at 88% 5%, rgba(255, 204, 0, 0.08), transparent 26rem),
    rgba(5, 6, 12, 0.66);
}

.portfolio-modal-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0 0.45rem;
  background: transparent;
  backdrop-filter: none;
}

.portfolio-modal-top h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.portfolio-modal-top h2 span {
  background: linear-gradient(110deg, #ffd76a 0%, #f0a51f 28%, #c49aff 64%, #7c3cff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.portfolio-modal-close {
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.portfolio-modal-grid,
.portfolio-modal-thumbnails {
  align-content: start;
  min-height: 0;
  overflow: visible;
  padding: 0.35rem 0 1rem;
}

.portfolio-modal[data-gallery="short-form"] .portfolio-modal-grid.short-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 1.25rem;
}

.portfolio-modal[data-gallery="short-form"] .vertical .video-player,
.portfolio-modal[data-gallery="short-form"] .clean-video-shell.vertical {
  max-height: none;
}

.portfolio-modal[data-gallery="thumbnails"] .portfolio-modal-thumbnails {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portfolio-modal-grid[hidden],
.portfolio-modal-thumbnails[hidden],
.modal-category-bar[hidden] {
  display: none;
}

.portfolio-modal-grid .work-card {
  display: block;
}

.portfolio-modal-grid .work-card.is-hidden {
  display: none;
}

.portfolio-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 0 0.3rem;
}

.portfolio-pagination button {
  min-width: 42px;
  min-height: 40px;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: #f8fafc;
  cursor: pointer;
  font: 900 0.86rem/1 Manrope, system-ui, sans-serif;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.portfolio-pagination button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 204, 0, 0.48);
  background: rgba(255, 204, 0, 0.08);
}

.portfolio-pagination button.is-active {
  border-color: rgba(255, 204, 0, 0.85);
  background: linear-gradient(135deg, #ffcc00 0%, #f0a800 46%, #c49aff 100%);
  color: #090a0d;
  box-shadow: 0 0 24px rgba(255, 204, 0, 0.2);
}

.portfolio-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
}

footer img {
  width: min(190px, 48vw);
}

@keyframes wordPop {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes particlesDrift {
  from {
    background-position: 6% 18%, 72% 24%, 42% 76%;
  }
  to {
    background-position: 10% 22%, 68% 20%, 46% 72%;
  }
}

@keyframes statIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes starPop {
  0% {
    opacity: 0;
    transform: translateY(4px) scale(0.92);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes stackMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card.reveal {
  transition: opacity 520ms ease, transform 220ms cubic-bezier(0.2, 1.4, 0.35, 1), box-shadow 220ms ease, filter 220ms ease, background 220ms ease;
}

.feature-card.reveal.is-visible:hover {
  transform: translateY(-4px) scale(1.008);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .nav {
    justify-content: center;
    overflow-x: auto;
  }

  .hero,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-stats {
    max-width: 100%;
  }

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

  .hero-art {
    min-height: auto;
    margin-right: 0;
    order: -1;
  }

  .hero-art img {
    width: min(100%, 680px);
    max-width: 100%;
  }

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

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

@media (max-width: 1180px) and (min-width: 981px) {
  .long-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  body {
    padding-top: 64px;
  }

  .cursor-glow {
    display: none;
  }

  .hero,
  .section,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 64px;
    padding-inline: 0.65rem;
    gap: 0.7rem;
  }

  .brand {
    width: 122px;
  }

  .header-cta {
    min-height: 32px;
    padding: 0 0.58rem;
    font-size: 0.7rem;
  }

  .nav {
    justify-content: flex-start;
    gap: 0.9rem;
    padding: 0;
    border-radius: 0;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    min-height: 30px;
    padding: 0;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(2.45rem, 11vw, 3.8rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: 0;
    margin-top: 1.5rem;
  }

  .metrics,
  .why-grid,
  .long-grid,
  .short-grid {
    grid-template-columns: 1fr;
  }

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

  .portfolio-jump {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .portfolio-jump a {
    min-height: 54px;
  }

  .category-bar {
    gap: 0.9rem;
    padding: 0;
  }

  .category-bar button {
    flex: 0 0 auto;
  }

  .metrics article {
    min-height: 94px;
  }

  .block-title {
    align-items: start;
    flex-direction: column;
  }

  .work-card {
    border-radius: 0;
    padding: 0;
  }

  .video-player {
    border-radius: 7px;
  }
}
