* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --accent: #8b5cf6;
  --highlight: #ec4899;
  --text: #1f2937;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  --bg: #fff;
  --bg-light: #f9fafb;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body.dark {
  --text: #f5f5f5;
  --text-light: #ccc;
  --bg: #1a1a1a;
  --bg-light: #252525;
  --border: #404040;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.nav-brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.logo {
  width: 32px;
  height: 32px;
}

.brand {
  font-size: 1.25rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  flex: 1;
  justify-content: center;
}

.nav-menu a {
  color: var(--text-light);
  transition: color 0.3s ease;
  font-weight: 500;
  position: relative;
}

.nav-menu a:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-menu a:hover:after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-actions a,
.theme-btn {
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
}

.nav-actions a:hover,
.theme-btn:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 24%, rgba(18, 194, 233, 0.16), transparent 28%),
    radial-gradient(circle at 78% 22%, rgba(196, 113, 237, 0.14), transparent 30%),
    radial-gradient(circle at 50% 78%, rgba(246, 79, 89, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(248, 251, 255, 0.96) 0%, rgba(244, 247, 255, 0.92) 52%, rgba(255, 246, 247, 0.95) 100%);
  border-bottom: 1px solid var(--border);
}

body.dark .hero {
  background:
    radial-gradient(circle at 16% 24%, rgba(18, 194, 233, 0.16), transparent 28%),
    radial-gradient(circle at 78% 22%, rgba(196, 113, 237, 0.16), transparent 30%),
    radial-gradient(circle at 50% 78%, rgba(246, 79, 89, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(22, 25, 34, 0.98) 0%, rgba(28, 25, 40, 0.96) 52%, rgba(36, 24, 30, 0.98) 100%);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.hero::before {
  top: -12%;
  left: -6%;
  width: 22rem;
  height: 22rem;
  border-radius: 42% 58% 57% 43% / 41% 39% 61% 59%;
  background: linear-gradient(135deg, rgba(18, 194, 233, 0.18), rgba(196, 113, 237, 0.16), rgba(246, 79, 89, 0.16));
  filter: blur(34px);
  animation: hero-liquid-drift 12s ease-in-out infinite alternate;
}

body.dark .hero::before {
  background: linear-gradient(135deg, rgba(18, 194, 233, 0.2), rgba(196, 113, 237, 0.18), rgba(246, 79, 89, 0.18));
  filter: blur(40px) saturate(120%);
  opacity: 0.9;
}

.hero::after {
  right: -4%;
  bottom: -18%;
  width: 24rem;
  height: 24rem;
  border-radius: 59% 41% 48% 52% / 45% 55% 45% 55%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.08) 48%, transparent 72%);
  filter: blur(18px);
  animation: hero-liquid-drift 14s ease-in-out infinite alternate-reverse;
}

body.dark .hero::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(196, 113, 237, 0.08) 42%, transparent 72%);
  filter: blur(22px);
  opacity: 0.85;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.title-flip {
  font-size: 3rem;
  font-weight: 800;
  height: 3.6rem;
  display: inline-block;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
  vertical-align: top;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.title-flip-track {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: flip-words 10s infinite;
}

.title-flip span {
  display: block;
  height: 3.6rem;
  line-height: 3.6rem;
  white-space: nowrap;
  background: linear-gradient(135deg, #fccf31 0%, #f55555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes flip-words {
  0% {
    transform: translateY(0);
  }
  20% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-3.6rem);
  }
  45% {
    transform: translateY(-3.6rem);
  }
  50% {
    transform: translateY(-7.2rem);
  }
  70% {
    transform: translateY(-7.2rem);
  }
  75% {
    transform: translateY(-10.8rem);
  }
  95% {
    transform: translateY(-10.8rem);
  }
  100% {
    transform: translateY(-14.4rem);
  }
}

@keyframes hero-liquid-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(4%, -3%, 0) scale(1.06);
  }
  100% {
    transform: translate3d(-3%, 4%, 0) scale(1.1);
  }
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.hero p.subtitle {
  font-size: 1rem;
  color: var(--text-lighter);
}

/* Sections */
.intro,
.features,
.works,
.blog,
.faq,
.sponsor {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.intro {
  background: var(--bg-light);
  text-align: center;
}

.intro h2,
.works h2,
.blog h2,
.faq h2,
.sponsor h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 700;
}

.intro p,
.works > .container > p:first-of-type,
.blog > .container > p:first-of-type,
.sponsor > .container > p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Features */
.features {
  background: var(--bg-light);
}

.feature-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  background: var(--bg);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.feature:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 600;
}

.feature p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Works */
.work-preview {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.work-preview:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.work-preview h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-weight: 600;
}

.work-preview p {
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.work-preview a {
  color: var(--primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.work-preview a:hover {
  color: var(--accent);
}

/* Work section */
.work-section {
  padding: 2rem 0;
}

.work-section h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--highlight));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.work-section > .container > p {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.work-details {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  border: 1px solid var(--border);
}

.work-meta p {
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.work-meta p strong {
  color: var(--text);
  font-weight: 600;
}

.work-section h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1.5rem;
  color: var(--text);
  font-weight: 700;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.features-list li {
  padding: 0.75rem 0 0.75rem 1.75rem;
  position: relative;
  color: var(--text-light);
  line-height: 1.6;
}

.features-list li:before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.2rem;
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.software-item {
  background: var(--bg-light);
  padding: 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.software-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.software-item strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Blog */
.blog {
  background: var(--bg);
}

.blog-items {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.blog-post {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.blog-post:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.blog-post h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.blog-post a {
  color: var(--text);
  font-weight: 500;
}

.blog-post a:hover {
  color: var(--primary);
  text-decoration: none;
}

.blog-post p {
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.blog-post time {
  font-size: 0.85rem;
  color: var(--text-lighter);
}

/* FAQ */
.faq {
  background: var(--bg-light);
}

.faq-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.faq-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Sponsor */
.sponsor {
  background: var(--bg);
  text-align: center;
}

.sponsor-logo {
  display: inline-block;
  margin-top: 2rem;
  transition: transform 0.3s ease;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg-light);
}

.sponsor-logo:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.sponsor-logo img {
  max-height: 60px;
  width: auto;
  display: block;
}

/* Footer */
footer {
  background: linear-gradient(
    135deg,
    rgba(18, 194, 233, 0.1) 0%,
    rgba(196, 113, 237, 0.1) 52%,
    rgba(246, 79, 89, 0.12) 100%
  );
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.footer-info {
  text-align: center;
  color: var(--text-lighter);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.footer-info p {
  margin-bottom: 0.5rem;
}

/* Button */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  text-decoration: none;
}

.highlight {
  font-weight: 600;
  color: var(--accent);
}

.section-intro {
  max-width: 700px;
  margin: 0.75rem auto 0;
  color: var(--text-light);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.work-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);
}

.work-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work-card-link:hover {
  text-decoration: none;
}

.work-card-media {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1.25rem;
  background-size: cover;
  background-position: center;
}

.work-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 11, 18, 0.72), rgba(8, 11, 18, 0.04));
}

.work-card-media-osiris {
  background-image:
    linear-gradient(140deg, rgba(22, 44, 76, 0.14), rgba(164, 215, 255, 0.08)),
    radial-gradient(circle at 15% 18%, rgba(208, 237, 255, 0.82), transparent 30%),
    radial-gradient(circle at 78% 26%, rgba(140, 194, 255, 0.64), transparent 28%),
    linear-gradient(135deg, #d7ecff 0%, #9cc3ef 52%, #3d5e88 100%);
}

.work-card-media-dionysu {
  background-image:
    linear-gradient(150deg, rgba(71, 28, 90, 0.12), rgba(244, 111, 127, 0.08)),
    radial-gradient(circle at 18% 22%, rgba(255, 214, 228, 0.74), transparent 28%),
    radial-gradient(circle at 82% 28%, rgba(207, 155, 255, 0.56), transparent 30%),
    linear-gradient(135deg, #fee2ea 0%, #d7c8ff 50%, #7b6ad9 100%);
}

.work-card-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1f2937;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.work-card-body {
  padding: 1.2rem 1.3rem 1.4rem;
}

.work-card-meta,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--text-lighter);
}

.work-card h2,
.work-card h3 {
  margin: 0.45rem 0 0.65rem;
  font-size: 1.85rem;
  line-height: 1.35;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.work-card-body p:last-child {
  color: var(--text-light);
}

.works-actions {
  margin-top: 1.75rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.works-archive-hero,
.work-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.works-archive-hero {
  background:
    radial-gradient(circle at 18% 22%, rgba(18, 194, 233, 0.16), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(246, 79, 89, 0.14), transparent 26%),
    linear-gradient(135deg, rgba(247, 251, 255, 0.95), rgba(252, 241, 247, 0.92));
  text-align: center;
}

.works-archive-hero h1,
.work-detail-copy h1 {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
}

.works-archive-hero p:last-child {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-light);
}

.works-grid-archive {
  margin-top: 0;
}

.works-archive {
  padding: 3rem 0 4rem;
}

.pager {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  align-items: center;
}

.pager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}

.pager-link.is-current {
  border-color: transparent;
  background: linear-gradient(135deg, #12c2e9 0%, #c471ed 52%, #f64f59 100%);
  color: #fff;
}

.pager-link.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.work-detail-hero {
  background:
    radial-gradient(circle at 18% 24%, rgba(18, 194, 233, 0.18), transparent 26%),
    radial-gradient(circle at 78% 22%, rgba(196, 113, 237, 0.18), transparent 28%),
    radial-gradient(circle at 50% 78%, rgba(246, 79, 89, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(248, 251, 255, 0.95), rgba(247, 243, 255, 0.92), rgba(255, 245, 246, 0.96));
}

.work-detail-hero::before,
.work-detail-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(28px);
}

.work-detail-hero::before {
  top: -5rem;
  left: -3rem;
  width: 18rem;
  height: 18rem;
  background: rgba(18, 194, 233, 0.18);
}

.work-detail-hero::after {
  right: -2rem;
  bottom: -6rem;
  width: 20rem;
  height: 20rem;
  background: rgba(246, 79, 89, 0.12);
}

.work-detail-hero-osiris {
  background:
    radial-gradient(circle at 14% 24%, rgba(94, 180, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(170, 220, 255, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(238, 247, 255, 0.96), rgba(220, 235, 255, 0.94), rgba(238, 244, 252, 0.96));
}

.work-detail-hero-dionysu {
  background:
    radial-gradient(circle at 14% 24%, rgba(196, 113, 237, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(246, 79, 89, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(252, 240, 246, 0.96), rgba(239, 232, 255, 0.94), rgba(255, 244, 246, 0.96));
}

.work-detail-hero .container {
  position: relative;
  z-index: 1;
}

.work-detail-copy {
  max-width: 760px;
}

.work-detail-updated {
  color: var(--text-light);
  font-size: 1rem;
}

.work-meta-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.work-meta-card,
.detail-panel,
.shot-placeholder {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.work-meta-card {
  padding: 1.2rem;
}

.work-meta-card span {
  display: block;
  color: var(--text-lighter);
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
}

.work-meta-card strong {
  display: block;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.4;
}

.work-detail-content {
  padding: 3rem 0 4rem;
}

.work-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.work-detail-main h2 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
}

.work-detail-main h2 + p {
  color: var(--text-light);
}

.work-feature-list {
  margin: 1rem 0 2rem;
  padding-left: 1.2rem;
  color: var(--text-light);
}

.work-feature-list li + li {
  margin-top: 0.5rem;
}

.detail-panel {
  padding: 1.2rem;
}

.detail-panel + .detail-panel {
  margin-top: 1rem;
}

.detail-panel h3 {
  margin-bottom: 0.6rem;
}

.detail-panel p {
  color: var(--text-light);
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.7;
}

.detail-panel .btn {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.detail-panel .btn + .btn {
  margin-top: 0.75rem;
}

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

.shot-placeholder {
  min-height: 240px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(18, 194, 233, 0.12), rgba(196, 113, 237, 0.14), rgba(246, 79, 89, 0.14));
}

.shot-placeholder span {
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.shot-placeholder p {
  color: var(--text-light);
}

body.dark .work-card,
body.dark .pager-link,
body.dark .detail-panel,
body.dark .shot-placeholder,
body.dark .work-meta-card {
  background: rgba(33, 33, 40, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

body.dark .works-archive-hero {
  background:
    radial-gradient(circle at 18% 22%, rgba(18, 194, 233, 0.14), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(246, 79, 89, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(20, 24, 34, 0.98), rgba(33, 24, 40, 0.96));
}

body.dark .work-detail-hero,
body.dark .work-detail-hero-osiris,
body.dark .work-detail-hero-dionysu {
  background:
    radial-gradient(circle at 18% 24%, rgba(18, 194, 233, 0.14), transparent 26%),
    radial-gradient(circle at 78% 22%, rgba(196, 113, 237, 0.16), transparent 28%),
    radial-gradient(circle at 50% 78%, rgba(246, 79, 89, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(22, 25, 34, 0.98), rgba(30, 24, 42, 0.96), rgba(38, 24, 30, 0.98));
}

body.dark .work-card-badge {
  background: rgba(17, 24, 39, 0.88);
  color: #f9fafb;
}

@media (max-width: 900px) {
  .works-grid,
  .shot-grid,
  .work-meta-grid,
  .work-detail-layout {
    grid-template-columns: 1fr;
  }

  .work-card-media {
    min-height: 220px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .title-flip {
    font-size: 1.8rem;
    height: 2.1rem;
  }

  .hero::before {
    width: 14rem;
    height: 14rem;
  }

  .hero::after {
    width: 16rem;
    height: 16rem;
  }

  .title-flip-track {
    animation-name: flip-words-mobile;
  }

  .title-flip span {
    height: 2.1rem;
    line-height: 2.1rem;
  }

  @keyframes flip-words-mobile {
    0% {
      transform: translateY(0);
    }
    20% {
      transform: translateY(0);
    }
    25% {
      transform: translateY(-2.1rem);
    }
    45% {
      transform: translateY(-2.1rem);
    }
    50% {
      transform: translateY(-4.2rem);
    }
    70% {
      transform: translateY(-4.2rem);
    }
    75% {
      transform: translateY(-6.3rem);
    }
    95% {
      transform: translateY(-6.3rem);
    }
    100% {
      transform: translateY(-8.4rem);
    }
  }

  .feature-group {
    grid-template-columns: 1fr;
  }

  .faq-items {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    gap: 1rem;
  }

  .nav-menu {
    gap: 1rem;
  }
}
