:root {
  --bg: #0b0b10;
  --surface: #14141b;
  --surface-soft: #1d1f27;
  --text: #f5f2ee;
  --muted: #a8a1a1;
  --accent: #b80f12;
  --accent-dark: #8f080b;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(184, 15, 18, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 20%),
    linear-gradient(180deg, #121219 0%, var(--bg) 100%);
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

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

img {
  max-width: 100%;
  display: block;
}

.site-header,
.hero,
.services-stats,
.projects,
.extra-layout,
.site-footer {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  margin-top: 18px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--text);
}

.music-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: #fff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  width: 54px;
  height: 54px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, background 0.25s ease;
  display: grid;
  place-items: center;
}

.music-toggle:hover {
  transform: translateY(-2px);
}

.music-toggle.is-playing {
  background: linear-gradient(135deg, var(--accent), #d21a1d);
}

.music-icon {
  position: absolute;
  display: block;
}

.music-icon-play {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #ffffff;
  opacity: 0;
}

.music-icon-pause {
  width: 14px;
  height: 16px;
  opacity: 1;
}

.music-icon-pause::before,
.music-icon-pause::after {
  content: "";
  position: absolute;
  top: 0;
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
}

.music-icon-pause::before {
  left: 0;
}

.music-icon-pause::after {
  right: 0;
}

.music-toggle.is-playing .music-icon-play {
  opacity: 0;
}

.music-toggle.is-playing .music-icon-pause {
  opacity: 1;
}

.music-toggle:not(.is-playing) .music-icon-play {
  opacity: 1;
}

.music-toggle:not(.is-playing) .music-icon-pause {
  opacity: 0;
}

.hero {
  min-height: calc(100svh - 90px);
  display: grid;
  grid-template-columns: minmax(320px, 500px) minmax(320px, 470px);
  justify-content: center;
  align-items: center;
  column-gap: 72px;
  row-gap: 34px;
  padding: 40px 0 56px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  justify-self: start;
  min-width: 0;
}

.hero-service-marquee {
  width: min(100%, 500px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.hero-service-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  padding: 14px 28px;
  animation: hero-services-left 20s linear infinite;
}

.hero-service-track span {
  position: relative;
  color: #f2ece6;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-service-track span::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 34px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

.hero-service-track span:last-child::after {
  display: none;
}

.portrait-card {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 10 / 11;
  border-radius: 44px;
  background:
    linear-gradient(180deg, rgba(31, 31, 40, 0.96), rgba(20, 20, 27, 0.94)),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portrait-glow {
  position: absolute;
  inset: auto -10% -15% auto;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(184, 15, 18, 0.25), transparent 68%);
}

.portrait-image {
  position: absolute;
  inset: 6px 8px 0;
  width: calc(100% - 16px);
  height: calc(100% - 6px);
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.32);
  transform-origin: center top;
  border-radius: 36px;
  z-index: 1;
}

.portrait-tag {
  position: absolute;
  left: 24px;
  bottom: 22px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(18, 18, 24, 0.84);
  color: #f2ece6;
  font-size: 0.88rem;
  z-index: 2;
}

.hero-copy {
  max-width: 470px;
  justify-self: start;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.accent {
  color: var(--accent);
}

.hero h1,
.projects h2,
.panel h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.4vw, 4.9rem);
}

.glitch-title {
  position: relative;
  display: inline-block;
  min-height: 1.95em;
  white-space: pre-line;
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  white-space: pre-line;
}

.glitch-title.is-glitching::before,
.glitch-title.is-glitching::after {
  opacity: 0.9;
}

.glitch-title.is-glitching::before {
  color: rgba(255, 54, 54, 0.8);
  transform: translate(-3px, 0);
  animation: glitch-before 260ms steps(2, end) 2;
}

.glitch-title.is-glitching::after {
  color: rgba(65, 174, 255, 0.8);
  transform: translate(3px, 0);
  animation: glitch-after 260ms steps(2, end) 2;
}

.hero-text {
  max-width: 40ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary,
.btn-small {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.btn-small:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.services-stats {
  display: grid;
  grid-template-columns: 2fr 1.1fr;
  gap: 28px;
  padding: 18px 0 44px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.stat-card,
.project-card,
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(20, 20, 27, 0.86);
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 280px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 77, 79, 0.22);
  background: rgba(255, 77, 79, 0.08);
  color: #ff8c8d;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.service-badge-featured {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.service-card.featured {
  background: linear-gradient(180deg, #b80f12, #950a0d);
  color: #fff;
}

.service-card.featured p,
.service-card.featured a {
  color: rgba(255, 255, 255, 0.82);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  background: rgba(184, 15, 18, 0.14);
  color: #ffd8d8;
}

.service-card.featured .service-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.service-card h2 {
  margin: 16px 0 10px;
  font-size: 1.2rem;
}

.service-card p,
.project-card p,
.panel p,
.content-list {
  color: var(--muted);
  line-height: 1.75;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.stat-card {
  min-height: 132px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card strong {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
}

.stat-card span {
  margin-top: 8px;
  font-weight: 700;
}

.stat-card.tall {
  grid-row: span 2;
}

.stat-card.wide {
  grid-column: span 2;
}

.projects {
  padding: 58px 0 34px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.projects h2,
.panel h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.btn-small {
  padding: 12px 18px;
  font-size: 0.94rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.project-card {
  padding: 16px;
}

.project-card-video-featured {
  grid-column: 1 / -1;
}

.project-link {
  display: block;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.project-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.44);
  border-color: rgba(184, 15, 18, 0.18);
}

.project-image {
  height: 220px;
  border-radius: 18px;
  background-color: var(--surface-soft);
  overflow: hidden;
  position: relative;
}

.project-image-title {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(11, 11, 16, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  transform: translateY(0);
}

.project-card-video-featured .project-image-title {
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  padding: 12px 20px;
  text-align: center;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.project-image-title:hover {
  color: #ff4d4f;
  border-color: rgba(255, 77, 79, 0.45);
  background: rgba(24, 12, 14, 0.86);
}

.project-link:hover .project-image-title {
  transform: translateY(-4px);
}

.project-card-video-featured:hover .project-image-title {
  transform: translateX(-50%) translateY(-4px);
}

.project-card-video-featured .project-image {
  height: 450px;
  border-radius: 24px;
  background: transparent;
}

.project-card-video-featured .project-image::before,
.project-card-video-featured .project-image::after {
  display: none;
}

.project-card-video-featured p {
  max-width: 44ch;
  margin-top: 12px;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 700;
}

.project-cta::after {
  content: "->";
  font-size: 0.95em;
}

.project-image::before,
.project-image::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.project-image::before {
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.42);
  top: 18px;
  right: 18px;
}

.project-image::after {
  width: 190px;
  height: 190px;
  background: rgba(184, 15, 18, 0.10);
  left: -34px;
  bottom: -46px;
}

.project-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.project-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.project-video-marquee {
  position: absolute;
  inset: 68px 0 12px;
  overflow: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.project-video-marquee::before,
.project-video-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  z-index: 2;
  pointer-events: none;
}

.project-video-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(20, 20, 27, 0.78), rgba(20, 20, 27, 0));
}

.project-video-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(20, 20, 27, 0.78), rgba(20, 20, 27, 0));
}

.project-video-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  height: 100%;
  animation: project-video-left 18s linear infinite;
  will-change: transform;
}

.project-video-group {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 0 0 auto;
}

.project-video-pill {
  position: relative;
  width: 152px;
  height: 360px;
  flex: 0 0 152px;
  border-radius: 22px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  background: #111216;
}

.project-video-pill .project-video {
  position: static;
  inset: auto;
}

.detail-page {
  min-height: 100vh;
}

.detail-main {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 32px 0 80px;
}

.showcase-main {
  width: min(calc(100% - 32px), 1220px);
  margin: 0 auto;
  padding: 28px 0 80px;
}

.showcase-shell {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    radial-gradient(circle at top center, rgba(184, 15, 18, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(19, 19, 25, 0.98), rgba(11, 11, 16, 0.98));
  box-shadow: var(--shadow);
}

.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.showcase-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
}

.showcase-back:hover {
  color: #ffffff;
}

.showcase-pill {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.92rem;
}

.showcase-hero {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.showcase-kicker {
  margin: 0 0 14px;
  color: #ff8e53;
  font-weight: 700;
}

.showcase-hero h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 5.4vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.showcase-hero p {
  max-width: 60ch;
  margin: 16px auto 0;
  color: var(--muted);
  line-height: 1.8;
}

.showcase-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.showcase-marquee {
  position: relative;
  margin-top: 48px;
  overflow: hidden;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-marquee::before,
.showcase-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}

.showcase-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(11, 11, 16, 1), rgba(11, 11, 16, 0));
}

.showcase-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(11, 11, 16, 1), rgba(11, 11, 16, 0));
}

.showcase-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee-left 30s linear infinite;
}

.showcase-track.is-paused {
  animation-play-state: paused;
}

.showcase-card {
  display: block;
  width: 215px;
  flex: 0 0 215px;
}

.showcase-card:hover .showcase-media {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.44);
}

.showcase-media {
  height: 300px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--surface-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.showcase-media-vertical {
  height: 360px;
  border-radius: 26px;
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-media video,
.vertical-reel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-meta {
  padding: 14px 4px 0;
}

.showcase-index {
  display: inline-block;
  color: #ff8e53;
  font-size: 0.9rem;
  font-weight: 700;
}

.showcase-meta h2 {
  margin: 10px 0 6px;
  font-size: 1.08rem;
}

.showcase-note {
  max-width: 900px;
  margin: 42px auto 0;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}

.showcase-projects {
  max-width: 1020px;
  margin: 34px auto 0;
  padding-top: 8px;
}

.showcase-projects-header {
  text-align: center;
  margin-bottom: 22px;
}

.showcase-projects-header h2 {
  margin: 8px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.showcase-project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.showcase-project-item {
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.showcase-project-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
}

.showcase-project-item video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.showcase-project-item h3 {
  margin: 14px 0 8px;
  font-size: 1.14rem;
}

.showcase-project-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.showcase-project-item-vertical img {
  max-width: 230px;
  height: 360px;
  margin: 0 auto;
  border-radius: 22px;
}

.showcase-project-item-vertical video {
  max-width: 230px;
  width: 100%;
  height: 360px;
  margin: 0 auto;
  border-radius: 22px;
  display: block;
}

.showcase-project-item-horizontal img {
  width: 100%;
  height: 260px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.vertical-reel {
  position: relative;
  max-width: 230px;
  height: 360px;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.vertical-reel-track {
  display: flex;
  height: 100%;
  width: max-content;
  gap: 12px;
  animation: mini-reel-left 14s linear infinite;
}

.vertical-reel-slide {
  position: relative;
  width: 230px;
  height: 360px;
  flex: 0 0 230px;
}

.vertical-reel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vertical-reel-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(11, 11, 16, 0.72);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

@keyframes marquee-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@keyframes project-video-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 15px));
  }
}

@keyframes mini-reel-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 6px));
  }
}

@keyframes hero-services-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 17px));
  }
}

@keyframes glitch-before {
  0% {
    clip-path: inset(8% 0 72% 0);
    transform: translate(-3px, -2px);
  }
  25% {
    clip-path: inset(52% 0 18% 0);
    transform: translate(2px, 2px);
  }
  50% {
    clip-path: inset(18% 0 50% 0);
    transform: translate(-4px, 1px);
  }
  100% {
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0);
  }
}

@keyframes glitch-after {
  0% {
    clip-path: inset(60% 0 8% 0);
    transform: translate(3px, 2px);
  }
  25% {
    clip-path: inset(12% 0 66% 0);
    transform: translate(-2px, -2px);
  }
  50% {
    clip-path: inset(42% 0 24% 0);
    transform: translate(4px, -1px);
  }
  100% {
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0);
  }
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0 24px;
}

.detail-copy h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.96;
}

.detail-copy p {
  max-width: 55ch;
  color: var(--muted);
  line-height: 1.8;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
}

.meta-list span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-weight: 600;
}

.detail-visual {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(20, 20, 27, 0.86);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-sections {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  margin-top: 14px;
}

.detail-block {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(20, 20, 27, 0.88);
  box-shadow: var(--shadow);
}

.detail-block h2 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
}

.detail-block p,
.detail-block li {
  color: var(--muted);
  line-height: 1.8;
}

.detail-block ul {
  margin: 0;
  padding-left: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.gallery-card {
  padding: 14px;
  border-radius: 22px;
  background: var(--surface-soft);
}

.gallery-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
}

.gallery-card strong {
  display: block;
  margin-top: 12px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 700;
}

.back-link:hover,
.service-card a:hover {
  color: #ffffff;
}

.cta-strip {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.image-one {
  background: linear-gradient(135deg, #efe4dd, #dbd3cd);
}

.image-two {
  background: linear-gradient(135deg, #eceae8, #d6cdc4);
}

.image-three {
  background: linear-gradient(135deg, #f0e4df, #cfc5c0);
}

.image-four {
  background: linear-gradient(135deg, #e8e3de, #d8d4cf);
}

.extra-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 24px 0 80px;
}

.panel {
  padding: 28px;
}

.panel-wide {
  grid-column: 1 / -1;
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.software-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.software-item strong {
  font-size: 0.96rem;
}

.software-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #fff;
}

.software-ps .software-mark {
  background: linear-gradient(135deg, #08203e, #1458a8);
}

.software-ai .software-mark {
  background: linear-gradient(135deg, #3a1900, #ff8a00);
}

.software-pr .software-mark {
  background: linear-gradient(135deg, #1d0437, #7f5cff);
}

.software-ae .software-mark {
  background: linear-gradient(135deg, #22053d, #9d5cff);
}

.software-cc .software-mark {
  background: linear-gradient(135deg, #111111, #4a4a4a);
}

.software-figma .software-mark {
  background: linear-gradient(135deg, #f24e1e, #a259ff);
}

.software-canva .software-mark {
  background: linear-gradient(135deg, #00c4cc, #6a5cff);
}

.software-corel .software-mark {
  background: linear-gradient(135deg, #145c2b, #4cc96f);
}

.content-list {
  margin: 18px 0 0;
  padding-left: 18px;
}

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

.back-to-top {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4efe9;
  color: #111;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 980px) {
  .hero,
  .services-stats,
  .extra-layout,
  .detail-hero,
  .detail-sections {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .project-grid,
  .showcase-project-grid {
    grid-template-columns: 1fr;
  }

  .project-card-video-featured,
  .project-card-video-featured {
    grid-column: auto;
    grid-row: auto;
  }

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

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding-top: 24px;
    width: min(calc(100% - 24px), var(--container));
    column-gap: 0;
  }

  .hero-copy {
    max-width: none;
    justify-self: stretch;
  }

  .portrait-card {
    max-width: 430px;
  }

  .hero-visual {
    justify-self: stretch;
    align-items: center;
  }

  .hero-service-marquee,
  .portrait-card {
    width: 100%;
  }

  .detail-visual {
    min-height: 320px;
  }

  .showcase-media {
    height: 260px;
  }

  .showcase-card {
    width: 200px;
    flex-basis: 200px;
  }

}

@media (max-width: 720px) {
  .site-header,
  .hero,
  .services-stats,
  .projects,
  .extra-layout,
  .site-footer,
  .showcase-main,
  .detail-main {
    width: min(calc(100% - 20px), var(--container));
  }

  .site-header {
    position: relative;
    padding: 14px 16px;
    margin-top: 12px;
    border-radius: 18px;
  }

  .music-toggle {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    min-width: 190px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(20, 20, 27, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .stats-grid,
  .extra-layout,
  .project-grid,
  .gallery-grid,
  .showcase-project-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-service-track {
    gap: 24px;
    padding: 12px 18px;
    font-size: 0.88rem;
  }

  .hero-service-track span {
    font-size: 0.88rem;
  }

  .hero-service-track span::after {
    margin-left: 24px;
  }

  .portrait-card {
    max-width: 100%;
    border-radius: 28px;
  }

  .portrait-image {
    border-radius: 22px;
  }

  .hero-copy {
    max-width: 100%;
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 14vw, 3.8rem);
  }

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

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .stat-card.tall,
  .stat-card.wide,
  .panel-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .section-heading,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .showcase-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .showcase-shell {
    padding: 20px;
    border-radius: 26px;
  }

  .showcase-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .showcase-marquee::before,
  .showcase-marquee::after {
    width: 34px;
  }

}
