:root {
  --blue-950: #08162b;
  --blue-900: #0b1f3a;
  --blue-800: #0e2948;
  --blue-700: #143d6b;
  --blue-600: #1757a6;
  --blue-500: #1f6feb;
  --blue-300: #6cc0ff;
  --ink: #0b0f17;
  --muted: #5d6b7c;
  --paper: #f7f8fb;
  --white: #ffffff;
  --accent: #1f6feb;
  --sun: #f7b733;
  --shadow-lg: 0 30px 80px rgba(11, 31, 58, 0.25);
  --shadow-md: 0 16px 40px rgba(11, 31, 58, 0.18);
  --shadow-sm: 0 8px 20px rgba(11, 31, 58, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --line: rgba(11, 31, 58, 0.08);
  --line-strong: rgba(11, 31, 58, 0.16);
  --header-bg: rgba(247, 248, 251, 0.85);
  --header-ink: #0b1f3a;
  --secondary-hover: rgba(11, 31, 58, 0.05);
  --tag-bg: rgba(31, 111, 235, 0.1);
  --tag-ink: #143d6b;
  --field-bg: #f4f6fb;
  --field-focus-bg: #ffffff;
  --field-border: #d6dce7;
  --surface-soft: rgba(255, 255, 255, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

img,
video,
canvas {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

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

a:hover {
  text-decoration: none;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  padding: 10px 16px;
  background: var(--blue-500);
  color: #fff;
  border-radius: 999px;
  z-index: 999;
}

.skip-link:focus {
  left: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

.section.tight {
  padding: 60px 0;
}

.section.dark {
  background: var(--blue-900);
  color: #eaf2ff;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--blue-600);
}

.section.dark .eyebrow {
  color: var(--blue-300);
}

h1,
h2,
h3,
h4 {
  font-family: "Sora", "Space Grotesk", sans-serif;
  margin: 0;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

h3 {
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
}

p {
  margin: 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #eaf2ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.btn,
.btn-primary,
.btn-outline,
.btn-primary-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn.primary,
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 25px rgba(31, 111, 235, 0.3);
}

.btn.primary:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  background: #2b7cff;
}

.btn.secondary {
  background: transparent;
  color: var(--header-ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

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

.btn.ghost,
.btn-primary-outline,
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn.ghost:hover,
.btn-primary-outline:hover,
.btn-outline:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  position: relative;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--header-ink);
}

.logo img {
  width: 42px;
  height: 42px;
}

.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-weight: 600;
  color: var(--header-ink);
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--blue-500);
  transition: width 0.2s ease;
}

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

.nav-toggle {
  display: none;
  background: var(--blue-900);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.45);
  color: var(--header-ink);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  background: var(--secondary-hover);
}

.theme-toggle-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.16);
  flex-shrink: 0;
}

.hero {
  padding: 120px 0 90px;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(31, 111, 235, 0.45), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(108, 192, 255, 0.35), transparent 55%),
    linear-gradient(135deg, var(--blue-950), var(--blue-800));
  color: #f5f7ff;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-title {
  margin: 10px 0 18px;
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 560px;
  color: rgba(245, 247, 255, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 26px 0 30px;
}

.hero-subnote {
  color: rgba(245, 247, 255, 0.75);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}

.stat {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.stat strong {
  display: block;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}

.stat span {
  color: rgba(245, 247, 255, 0.78);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
}

.hero-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  background: var(--surface-soft);
}

.hero-frame > img,
.hero-frame > video,
.hero-frame > canvas {
  display: block;
  width: 100%;
  height: auto;
}

.hero-visual .hero-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(11, 31, 58, 0.85);
  color: #eaf2ff;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.hero-logo-square {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  transition: height 0.45s ease;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.marquee {
  background: var(--blue-900);
  color: #dbe8ff;
  padding: 18px 0;
  overflow: hidden;
}

.marquee-track {
  display: inline-flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card,
.work-card,
.testimonial-card,
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  color: var(--ink);
}

.service-card h3 {
  margin-bottom: 10px;
  color: var(--blue-900);
}

.service-card p {
  color: var(--muted);
}

.section.dark .service-card {
  background: var(--white);
  color: var(--ink);
}

.section.dark .service-card p {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.section-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.case-study-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.case-study-media {
  position: relative;
  min-height: 220px;
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.12), rgba(11, 31, 58, 0.08));
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.case-study-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.case-study-media-copy {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.26), transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(108, 192, 255, 0.28), transparent 24%),
    linear-gradient(145deg, var(--blue-950), var(--blue-700));
  color: #fff;
  gap: 8px;
  text-align: center;
  padding: 24px;
}

.case-study-media-copy span {
  font-family: "Sora", "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.case-study-media-copy small {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.case-study-media-copy-ink {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.54), transparent 32%),
    radial-gradient(circle at 84% 20%, rgba(108, 192, 255, 0.18), transparent 24%),
    linear-gradient(145deg, rgba(236, 242, 255, 0.98), rgba(217, 230, 255, 0.98));
  color: var(--blue-900);
}

.case-study-media-copy-ink small {
  color: rgba(11, 31, 58, 0.72);
}

.case-study-body {
  padding: 24px;
  display: grid;
  gap: 16px;
  flex: 1;
  align-content: start;
}

.case-study-summary {
  color: var(--muted);
}

.case-study-meta {
  display: grid;
  gap: 14px;
}

.case-study-meta div {
  display: grid;
  gap: 4px;
}

.case-study-meta strong {
  color: var(--blue-900);
  font-size: 0.92rem;
}

.case-study-meta span {
  color: var(--muted);
  font-size: 0.95rem;
}

.case-study-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.latest-study {
  background:
    radial-gradient(circle at 8% 12%, rgba(31, 111, 235, 0.12), transparent 32%),
    radial-gradient(circle at 92% 16%, rgba(108, 192, 255, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(238, 244, 255, 0.9));
}

.latest-study-hook {
  max-width: 66ch;
}

.latest-study-shell {
  display: grid;
  gap: 24px;
}

.latest-study-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.metric-card {
  background: linear-gradient(145deg, var(--blue-950), var(--blue-800));
  color: #f5f7ff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 10px;
  min-height: 144px;
  align-content: end;
}

.metric-card strong {
  font-family: "Sora", "Space Grotesk", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1;
}

.metric-card span {
  color: rgba(245, 247, 255, 0.82);
  font-size: 0.95rem;
}

.latest-study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.latest-study-grid .info-card {
  height: 100%;
  display: grid;
  gap: 10px;
  align-content: start;
}

.latest-study-grid .info-card h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.05rem;
}

.latest-study-grid .info-card p {
  color: var(--muted);
}

.latest-study-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 74ch;
}

.case-study-detail-list {
  display: grid;
  gap: 32px;
}

.case-study-detail {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.case-study-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
}

.case-study-detail-intro {
  display: grid;
  gap: 14px;
}

.case-study-detail-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 58ch;
}

.case-study-detail-visual {
  min-height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.08), rgba(11, 31, 58, 0.06));
  display: grid;
  place-items: center;
}

.case-study-detail-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.case-study-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.case-study-detail-grid .info-card {
  height: 100%;
  display: grid;
  gap: 10px;
  align-content: start;
}

.case-study-detail-grid .info-card h4 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1rem;
}

.case-study-detail-grid .info-card p {
  color: var(--muted);
}

.case-study-tool-row {
  margin-top: 2px;
}

.work-card {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  transition: transform 0.4s ease;
}

.work-card:hover img {
  transform: scale(1.04);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.video-frame {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.25), rgba(11, 31, 58, 0.85));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.video-frame::after {
  content: '';
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: absolute;
  inset: auto auto 24px 24px;
}

.video-frame::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 14px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  left: 46px;
  bottom: 34px;
}

.video-meta {
  padding: 18px 20px;
  flex: 1;
  display: grid;
  gap: 6px;
}

.video-meta p {
  color: var(--muted);
}

.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.video-item {
  background: transparent;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11, 31, 58, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.custom-video {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  -webkit-tap-highlight-color: transparent;
}

.custom-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #000;
  -webkit-tap-highlight-color: transparent;
}

.custom-video video:fullscreen,
.custom-video video:-webkit-full-screen {
  object-fit: contain;
  background: #000;
}

.custom-video.is-playing {
  box-shadow: 0 18px 36px rgba(7, 16, 32, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.custom-video.is-paused {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  padding: 10px 12px;
  background: linear-gradient(180deg, transparent, rgba(7, 16, 32, 0.85));
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-video:not(.is-fullscreen) .video-controls {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
}

.video-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.custom-video:not(.is-fullscreen) .video-actions {
  grid-column: auto;
}

.custom-video.controls-hidden .video-controls {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.video-control {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  min-height: 36px;
  -webkit-tap-highlight-color: transparent;
}

.video-control:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.video-control.icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}

.video-control.icon.primary {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 18px rgba(7, 16, 32, 0.22);
}

.video-control-art {
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
}

.custom-video:not(.is-fullscreen) .video-control:not([data-video-play]),
.custom-video:not(.is-fullscreen) .video-progress,
.custom-video:not(.is-fullscreen) .video-time {
  display: none;
}

.custom-video:not(.is-fullscreen) .video-control.icon.primary {
  width: 68px;
  min-width: 68px;
  height: 68px;
  box-shadow: 0 12px 24px rgba(7, 16, 32, 0.3);
}

.custom-video:not(.is-fullscreen) [data-video-play] .video-control-art {
  width: 30px;
  height: 30px;
}

.custom-video.is-fullscreen .video-controls {
  padding: 16px 18px;
  gap: 14px 16px;
}

.custom-video.is-fullscreen .video-actions {
  gap: 10px;
}

.custom-video.is-fullscreen .video-control.icon {
  width: 52px;
  min-width: 52px;
  height: 52px;
}

.custom-video.is-fullscreen .video-control-art {
  width: 26px;
  height: 26px;
}

.custom-video.is-fullscreen .video-time {
  font-size: 0.85rem;
}

.video-control:focus-visible {
  outline: 2px solid var(--blue-300);
  outline-offset: 2px;
}

.video-progress {
  min-width: 0;
}

.video-progress input[type="range"] {
  width: 100%;
  accent-color: var(--blue-300);
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.video-progress input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

.video-progress input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: none;
}

.video-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 90px;
}

.video-volume input[type="range"] {
  width: 100%;
  accent-color: var(--blue-300);
}

.video-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  min-width: 92px;
  text-align: right;
}

@media (max-width: 768px) {
  .custom-video {
    background: #000;
  }

  .custom-video video {
    object-fit: contain;
    background: #000;
  }

  .video-controls {
    gap: 8px;
    padding: 12px;
  }

  .video-actions {
    justify-content: space-between;
  }

  .video-control {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 0.7rem;
    min-height: 40px;
  }

  .video-control.icon {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
  }

  .video-progress {
    grid-column: 1 / -1;
  }

  .video-time {
    grid-column: 1 / -1;
    width: 100%;
    text-align: left;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .video-controls {
    padding: 10px;
  }

  .video-control {
    font-size: 0.65rem;
    min-height: 38px;
  }
}

@keyframes video-play-pulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes video-glow {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-2%) scale(1.02);
    opacity: 0.95;
  }
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-body {
  padding: 20px;
  display: grid;
  gap: 10px;
  flex: 1;
  align-content: space-between;
}

.project-body p {
  color: var(--muted);
}

.booklet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.booklet-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.booklet-cover {
  background: transparent;
  padding: 20px;
  display: grid;
  place-items: center;
}

.booklet-cover img {
  width: 70%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.booklet-meta {
  padding: 20px;
  display: grid;
  gap: 10px;
  flex: 1;
  align-content: space-between;
}

.booklet-meta p {
  color: var(--muted);
}

.pdf-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 24, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.pdf-modal.is-open {
  display: flex;
}

.pdf-dialog {
  width: min(980px, 96vw);
  max-height: 92vh;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  flex-wrap: wrap;
}

.pdf-title {
  font-weight: 600;
  color: var(--ink);
}

.pdf-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pdf-page {
  font-size: 0.85rem;
  color: var(--muted);
  min-width: 70px;
  text-align: center;
}

.pdf-btn {
  border: 1px solid rgba(11, 31, 58, 0.15);
  background: rgba(11, 31, 58, 0.06);
  color: var(--ink);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
}

.pdf-btn:focus-visible {
  outline: 2px solid var(--blue-300);
  outline-offset: 2px;
}

.pdf-canvas-wrap {
  position: relative;
  background: var(--field-bg);
  padding: 18px;
  overflow: auto;
  flex: 1;
  display: grid;
  place-items: center;
}

.pdf-canvas-wrap canvas {
  max-width: 100%;
  height: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.pdf-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  background: rgba(244, 247, 251, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pdf-loading.is-visible {
  opacity: 1;
}

@media (max-width: 600px) {
  .pdf-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.app-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-preview {
  display: block;
  margin: 12px 12px 0;
  background: linear-gradient(180deg, rgba(245, 248, 255, 0.98), rgba(234, 241, 255, 0.98));
  border-radius: var(--radius-md);
  border: 1px solid rgba(11, 31, 58, 0.15);
  box-shadow: 0 18px 40px rgba(11, 31, 58, 0.2);
  overflow: hidden;
  text-decoration: none;
}

.app-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.app-preview:hover img {
  transform: scale(1.02);
}

.app-meta {
  padding: 20px;
  display: grid;
  gap: 10px;
  flex: 1;
  align-content: space-between;
}

.app-meta p {
  color: var(--muted);
}

.btn.small {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.process-step {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.process-surface .process-step {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.process-surface .process-step span {
  color: var(--blue-600);
}

.process-surface .process-step p {
  color: var(--muted);
}

.process-step span {
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--blue-300);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--white);
}

.testimonial-card p {
  color: var(--muted);
}

.cta {
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.15), rgba(108, 192, 255, 0.2));
}

.cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.cta-box p {
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.skill-list span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.12);
  color: var(--blue-700);
  font-weight: 600;
  font-size: 0.85rem;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-item h3 {
  margin-bottom: 6px;
}

.timeline-item p {
  margin-bottom: 4px;
  color: rgba(234, 242, 255, 0.8);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.contact-grid .info-card {
  background: var(--white);
}

.info-card p {
  color: var(--muted);
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.services-overview-grid,
.pricing-grid,
.package-grid,
.faq-grid {
  display: grid;
  gap: 24px;
}

.services-overview-grid,
.package-grid,
.faq-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.pricing-card-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-card-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.service-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.1);
  color: var(--blue-700);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 100%;
  min-width: 0;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--blue-900);
  color: #fff;
  font-family: "Sora", "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin-left: auto;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.pricing-card h3 {
  color: var(--blue-900);
}

.pricing-card p,
.package-card p,
.faq-item p,
.services-note {
  color: var(--muted);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue-500);
  transform: translateY(-50%);
}

.package-card,
.faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  height: 100%;
}

.faq-item h3,
.package-card h3 {
  margin-bottom: 10px;
  color: var(--blue-900);
}

form {
  display: grid;
  gap: 16px;
}

.dragArea {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.dragArea .col-12 {
  grid-column: 1 / -1;
}

.mbr-section-btn {
  display: flex;
}

.align-center {
  justify-content: center;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  color: var(--ink);
  font-size: 1rem;
}

.form-control:focus {
  outline: 2px solid rgba(31, 111, 235, 0.35);
  border-color: var(--blue-500);
  background: var(--field-focus-bg);
}

.upload-control.form-control[type="file"] {
  padding: 10px 12px;
  overflow: hidden;
  cursor: pointer;
  line-height: 1.35;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.upload-control.form-control[type="file"]::file-selector-button,
.upload-control.form-control[type="file"]::-webkit-file-upload-button {
  margin-right: 14px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #f5f7ff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(31, 111, 235, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.upload-control.form-control[type="file"]:hover::file-selector-button,
.upload-control.form-control[type="file"]:hover::-webkit-file-upload-button,
.upload-control.form-control[type="file"]:focus::file-selector-button,
.upload-control.form-control[type="file"]:focus::-webkit-file-upload-button {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(31, 111, 235, 0.28);
  filter: brightness(1.04);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-help {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-form.is-sending .btn {
  pointer-events: none;
  opacity: 0.85;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  display: none;
  animation: spin 0.8s linear infinite;
}

.contact-form.is-sending .btn-spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

body[data-contact-modal-open="true"] {
  overflow: hidden;
}

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
}

.alert-success {
  background: rgba(24, 164, 94, 0.15);
  color: #0f6b3f;
}

.alert-danger {
  background: rgba(235, 87, 87, 0.15);
  color: #8c1d1d;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(7, 15, 31, 0.72);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.contact-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.contact-dialog {
  width: min(720px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  border-radius: 30px;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(31, 111, 235, 0.16), transparent 28%),
    var(--field-bg);
  box-shadow: 0 32px 90px rgba(3, 9, 20, 0.32);
  border: 1px solid var(--line-strong);
}

.contact-dialog-copy {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  padding-right: 56px;
}

.contact-dialog-copy p {
  color: var(--muted);
}

.contact-modal-card {
  padding: 0;
  box-shadow: none;
  border: 0;
  background: transparent;
}

.contact-modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  color: var(--header-ink);
  cursor: pointer;
  z-index: 1;
}

body[data-theme="dark"] {
  --ink: #eaf2ff;
  --muted: #9db1c8;
  --paper: #08111d;
  --white: #0f1b2d;
  --line: rgba(157, 181, 212, 0.16);
  --line-strong: rgba(157, 181, 212, 0.24);
  --header-bg: rgba(8, 17, 29, 0.86);
  --header-ink: #edf4ff;
  --secondary-hover: rgba(255, 255, 255, 0.08);
  --tag-bg: rgba(108, 192, 255, 0.14);
  --tag-ink: #9ed7ff;
  --field-bg: #0d1829;
  --field-focus-bg: #122238;
  --field-border: rgba(157, 181, 212, 0.22);
  --surface-soft: rgba(255, 255, 255, 0.05);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.34);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .theme-toggle-indicator {
  background: var(--sun);
  box-shadow: 0 0 0 4px rgba(247, 183, 51, 0.18);
}

body[data-theme="dark"] .nav-toggle {
  background: #edf4ff;
  color: var(--blue-950);
}

body[data-theme="dark"] .latest-study {
  background:
    radial-gradient(circle at 8% 12%, rgba(31, 111, 235, 0.14), transparent 32%),
    radial-gradient(circle at 92% 16%, rgba(108, 192, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(7, 16, 29, 0.98), rgba(11, 22, 38, 0.98));
}

body[data-theme="dark"] .case-study-media-copy-ink {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.14), transparent 32%),
    radial-gradient(circle at 84% 20%, rgba(108, 192, 255, 0.22), transparent 24%),
    linear-gradient(145deg, rgba(8, 22, 43, 0.98), rgba(20, 61, 107, 0.98));
  color: #f5f7ff;
}

body[data-theme="dark"] .case-study-media-copy-ink small {
  color: rgba(245, 247, 255, 0.74);
}

body[data-theme="dark"] .cta {
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.18), rgba(7, 18, 31, 0.94));
}

body[data-theme="dark"] .section.dark .service-card h3,
body[data-theme="dark"] .service-card h3,
body[data-theme="dark"] .pricing-card h3,
body[data-theme="dark"] .package-card h3,
body[data-theme="dark"] .faq-item h3,
body[data-theme="dark"] .case-study-meta strong,
body[data-theme="dark"] .latest-study-grid .info-card h3,
body[data-theme="dark"] .case-study-detail-grid .info-card h4,
body[data-theme="dark"] .process-surface .process-step span {
  color: var(--header-ink);
}

body[data-theme="dark"] .app-preview {
  background: linear-gradient(180deg, rgba(18, 35, 58, 0.98), rgba(11, 22, 38, 0.98));
  border-color: var(--line-strong);
}

body[data-theme="dark"] .pdf-btn {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .pdf-loading {
  background: rgba(13, 24, 41, 0.84);
}

body[data-theme="dark"] .contact-modal-close {
  background: rgba(15, 27, 45, 0.92);
}

body[data-theme="dark"] .form-control::placeholder {
  color: rgba(157, 181, 212, 0.72);
}

body[data-theme="dark"] .skill-list span {
  color: #f5f7ff;
  border: 1px solid var(--line-strong);
}

body[data-theme="dark"] .service-category-badge {
  background: rgba(108, 192, 255, 0.14);
  color: var(--blue-300);
}

body[data-theme="dark"] .price-tag {
  background: var(--blue-500);
}

.contact-modal-close:hover {
  background: #fff;
}

body[data-theme="dark"] .contact-modal-close:hover {
  background: rgba(20, 34, 56, 0.98);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-900);
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: var(--blue-600);
}

footer {
  background: var(--blue-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
}

footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    right: 0;
    top: 70px;
    flex-direction: column;
    align-items: flex-start;
    background: var(--blue-950);
    padding: 18px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    min-width: 180px;
  }

  .site-nav a {
    color: #fff;
  }

  .site-nav a::after {
    background: var(--blue-300);
  }

  body[data-nav-open="true"] .site-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .header-actions {
    display: flex;
    margin-left: auto;
  }

  .header-actions .btn.primary {
    display: none;
  }

  .cta-box {
    padding: 30px;
  }

  .case-study-detail {
    padding: 24px;
  }

  .case-study-detail-shell {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 132px;
  }
}

@media (min-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .cta-box {
    text-align: left;
  }

  .cta-actions {
    width: 100%;
  }

  .latest-study-metrics,
  .latest-study-grid {
    grid-template-columns: 1fr;
  }

  .contact-modal {
    padding: 16px;
  }

  .contact-dialog {
    padding: 20px;
    max-height: calc(100vh - 32px);
  }

  .contact-dialog-copy {
    padding-right: 0;
  }

  footer .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
