:root {
  --purple-900: #2e003e;
  --purple-850: #22002f;
  --purple-800: #3b0a59;
  --purple-700: #4c1b6b;
  --purple-500: #6c2f91;
  --lavender: #c7a9d7;
  --white: #ffffff;
  --gold: #d7b56d;
  --silver: #c5d3e0;
  --surface: rgba(255, 255, 255, 0.08);
  --border: rgba(199, 169, 215, 0.3);
  --shadow: 0 30px 60px rgba(10, 0, 20, 0.35);
  --radius: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  background: var(--purple-900);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 10% 20%, rgba(108, 47, 145, 0.45), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(215, 181, 109, 0.25), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(199, 169, 215, 0.3), transparent 60%),
    linear-gradient(140deg, #14001f, #2e003e, #3b0a59);
  animation: ambientShift 18s ease-in-out infinite;
  background-position: 50% calc(50% + var(--scroll-shift, 0px));
  opacity: calc(0.9 - var(--scroll-fade, 0));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 90px 90px;
  opacity: 0.28;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: 0.45;
  z-index: -2;
  mix-blend-mode: screen;
}

.orb-1 {
  width: 320px;
  height: 320px;
  top: 8%;
  left: -80px;
  background: radial-gradient(circle, rgba(199, 169, 215, 0.6), transparent 70%);
  animation: float 12s ease-in-out infinite;
}

.orb-2 {
  width: 420px;
  height: 420px;
  bottom: 10%;
  right: -120px;
  background: radial-gradient(circle, rgba(215, 181, 109, 0.5), transparent 70%);
  animation: float 16s ease-in-out infinite;
}

.orb-3 {
  width: 220px;
  height: 220px;
  top: 55%;
  right: 25%;
  background: radial-gradient(circle, rgba(108, 47, 145, 0.6), transparent 70%);
  animation: float 14s ease-in-out infinite;
}

@keyframes ambientShift {
  0% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(8deg);
  }
  100% {
    filter: hue-rotate(0deg);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 5vw, 72px);
  background: rgba(18, 0, 28, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(199, 169, 215, 0.15);
}

.logo img {
  width: 140px;
  height: auto;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: "Montserrat", sans-serif;
}

.site-nav a {
  transition: color 0.3s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--lavender);
}

main {
  display: flex;
  flex-direction: column;
  gap: 140px;
  padding: 0 clamp(20px, 6vw, 96px) 140px;
}

section {
  position: relative;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
  padding-top: 80px;
}

.hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  margin: 16px 0 20px;
}

.hero-title-line {
  display: block;
}

.hero-title-line.accent {
  background: linear-gradient(90deg, #c7a9d7, #d7b56d);
  -webkit-background-clip: text;
  color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  color: var(--lavender);
}

.subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(120deg, rgba(199, 169, 215, 0.9), rgba(215, 181, 109, 0.95));
  color: #1a0a24;
  box-shadow: 0 12px 30px rgba(199, 169, 215, 0.35);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::after,
.btn-primary:focus::after {
  transform: translateX(120%);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: scale(1.04);
  box-shadow: 0 16px 36px rgba(215, 181, 109, 0.35);
}

.btn-ghost {
  border: 1px solid rgba(199, 169, 215, 0.5);
  color: var(--white);
}

.btn-ghost:hover,
.btn-ghost:focus {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40px;
  width: 40px;
  height: 100%;
  background: var(--lavender);
  animation: scrollLine 2.6s ease infinite;
}

@keyframes scrollLine {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(80px);
  }
}

.hero-visual {
  display: grid;
  gap: 20px;
}

.hero-panel {
  background: rgba(24, 0, 38, 0.7);
  border: 1px solid rgba(199, 169, 215, 0.2);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel-lg {
  min-height: 180px;
}

.hero-panel-sm {
  margin-left: 40px;
}

.hero-panel-glow {
  background: linear-gradient(135deg, rgba(215, 181, 109, 0.18), rgba(46, 0, 62, 0.7));
  border-color: rgba(215, 181, 109, 0.5);
}

.panel-title {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  margin-bottom: 10px;
}

.panel-copy {
  color: rgba(255, 255, 255, 0.75);
}

.panel-metric {
  font-family: "Poppins", sans-serif;
  font-size: 26px;
}

.panel-metric span {
  display: block;
  font-size: 14px;
  color: var(--lavender);
  margin-top: 4px;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(199, 169, 215, 0.2);
  border-bottom: 1px solid rgba(199, 169, 215, 0.2);
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  animation: marquee 18s linear infinite;
}

.marquee-track span {
  color: rgba(255, 255, 255, 0.6);
}

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

.section-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  margin: 16px 0 12px;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.project-card {
  text-align: left;
  background: rgba(24, 0, 38, 0.7);
  border: 1px solid rgba(199, 169, 215, 0.2);
  border-radius: 28px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, border 0.35s ease, box-shadow 0.35s ease;
  box-shadow: var(--shadow);
}

.project-card:hover,
.project-card:focus {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(215, 181, 109, 0.6);
  box-shadow: 0 24px 60px rgba(10, 0, 20, 0.45);
}

.case-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
  padding: 28px;
}

.case-split-copy h3 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  margin: 14px 0 12px;
}

.case-link {
  display: inline-flex;
  margin-top: 16px;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.case-split-image img {
  border-radius: 24px;
  transform: scale(1.02);
  transition: transform 0.4s ease;
}

.case-split:hover .case-split-image img,
.case-split:focus .case-split-image img {
  transform: scale(1.05);
}

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

.deliverable-card {
  background: rgba(24, 0, 38, 0.7);
  border: 1px solid rgba(199, 169, 215, 0.2);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, border 0.35s ease;
}

.deliverable-card:hover,
.deliverable-card:focus-within {
  transform: translateY(-8px);
  border-color: rgba(215, 181, 109, 0.6);
}

.deliverable-card:nth-child(2) {
  margin-top: 20px;
}

.deliverable-card:nth-child(3) {
  margin-top: 40px;
}

.deliverable-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.deliverable-body {
  padding: 18px;
}

.deliverable-body h4 {
  font-family: "Poppins", sans-serif;
  margin-bottom: 8px;
}

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

.about-media img {
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.about-content h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(26px, 3.8vw, 38px);
  margin: 16px 0;
}

.about-text {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 18px;
}

.about-highlights {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.chip {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(199, 169, 215, 0.4);
  background: rgba(199, 169, 215, 0.12);
  color: var(--lavender);
  transition: transform 0.3s ease, border 0.3s ease, color 0.3s ease;
}

.chip:hover,
.chip:focus {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--gold);
  color: var(--gold);
}

.video-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(199, 169, 215, 0.3);
  box-shadow: var(--shadow);
}

.video-card video {
  width: 100%;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  background: rgba(18, 0, 28, 0.55);
  color: var(--lavender);
}

.video-caption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.7);
}

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

.skill-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(24, 0, 38, 0.7);
  border: 1px solid rgba(199, 169, 215, 0.2);
  box-shadow: var(--shadow);
}

.progress-ring {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.progress-ring svg {
  width: 140px;
  height: 140px;
}

.ring-bg {
  fill: none;
  stroke: rgba(199, 169, 215, 0.2);
  stroke-width: 12;
}

.ring-fill {
  fill: none;
  stroke: var(--lavender);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 339;
  stroke-dashoffset: 339;
  transition: stroke-dashoffset 1.4s ease;
}

.progress-ring span {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
}

.tool-bars {
  margin-top: 40px;
  display: grid;
  gap: 18px;
}

.tool-row {
  display: grid;
  gap: 10px;
}

.tool-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.tool-bar {
  height: 10px;
  background: rgba(199, 169, 215, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.tool-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lavender), var(--gold));
  transition: width 1.2s ease;
}

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

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(24, 0, 38, 0.7);
  border: 1px solid rgba(199, 169, 215, 0.2);
  box-shadow: var(--shadow);
}

.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(199, 169, 215, 0.3);
  background: rgba(12, 0, 20, 0.6);
  color: var(--white);
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(215, 181, 109, 0.2);
}

.contact-info {
  display: grid;
  gap: 20px;
}

.contact-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(24, 0, 38, 0.7);
  border: 1px solid rgba(199, 169, 215, 0.2);
  box-shadow: var(--shadow);
}

.socials {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(199, 169, 215, 0.4);
  display: grid;
  place-items: center;
  font-weight: 600;
  text-transform: uppercase;
  transition: transform 0.3s ease, background 0.3s ease, border 0.3s ease;
}

.social-icon:hover,
.social-icon:focus {
  transform: translateY(-4px) scale(1.05);
  background: rgba(215, 181, 109, 0.25);
  border-color: var(--gold);
}

.site-footer {
  text-align: center;
  padding: 40px 20px 60px;
  color: rgba(255, 255, 255, 0.6);
}

.case-study-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(10, 0, 20, 0.7);
  backdrop-filter: blur(16px);
  z-index: 10;
}

.case-study-modal.is-open {
  display: flex;
}

.case-study-panel {
  width: min(980px, 95vw);
  max-height: 90vh;
  overflow: auto;
  background: rgba(24, 0, 38, 0.95);
  border-radius: 32px;
  padding: 36px;
  border: 1px solid rgba(199, 169, 215, 0.3);
  box-shadow: var(--shadow);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.case-study-modal.is-open .case-study-panel {
  opacity: 1;
  transform: translateY(0);
}

.case-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(199, 169, 215, 0.4);
  color: var(--lavender);
  cursor: pointer;
}

.case-title {
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  margin-bottom: 8px;
}

.case-meta {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.case-section {
  margin-top: 28px;
}

.case-section h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  margin-bottom: 10px;
}

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

.insight-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(199, 169, 215, 0.2);
  background: rgba(199, 169, 215, 0.08);
}

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

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}

.carousel-track figure {
  scroll-snap-align: start;
  background: rgba(24, 0, 38, 0.8);
  border-radius: 18px;
  border: 1px solid rgba(199, 169, 215, 0.2);
  overflow: hidden;
}

.carousel-track img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.carousel-track figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

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

.outcome-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(215, 181, 109, 0.12);
  border: 1px solid rgba(215, 181, 109, 0.4);
  text-align: center;
}

.outcome-value {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  margin-bottom: 4px;
}

.tool-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tool-icon {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(199, 169, 215, 0.12);
  border: 1px solid rgba(199, 169, 215, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.tool-icon:hover,
.tool-icon:focus {
  transform: translateY(-4px) scale(1.05) rotate(-2deg);
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(215, 181, 109, 0.25);
}

.case-hero {
  width: 100%;
  border-radius: 24px;
  margin: 16px 0 20px;
  border: 1px solid rgba(199, 169, 215, 0.2);
}

.case-summary {
  color: rgba(255, 255, 255, 0.75);
}

.insight-toggle {
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 6px;
}

.insight-toggle strong {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
}

.insight-toggle span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.insight-toggle.is-active {
  border-color: var(--gold);
  box-shadow: 0 12px 24px rgba(215, 181, 109, 0.2);
}

.insight-output {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(215, 181, 109, 0.12);
  border: 1px solid rgba(215, 181, 109, 0.4);
  color: rgba(255, 255, 255, 0.8);
}

[data-parallax] {
  --parallax-y: 0px;
}

[data-reveal] {
  --reveal-offset: 24px;
  opacity: 0;
  transform: translateY(calc(var(--reveal-offset) + var(--parallax-y, 0px)));
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].is-visible {
  --reveal-offset: 0px;
  opacity: 1;
}

[data-parallax]:not([data-reveal]) {
  transform: translateY(var(--parallax-y, 0px));
}

.typewriter span {
  opacity: 0;
  display: inline-block;
  transform: translateY(12px);
}

.typewriter.is-visible span {
  animation: wordReveal 0.35s ease forwards;
  animation-delay: calc(var(--i) * 0.06s);
}

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

.bounce-target.is-bouncing {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 40px;
  }

  .case-split {
    grid-template-columns: 1fr;
  }

  .case-split-image img {
    transform: none;
  }

  main {
    gap: 100px;
  }
}

@media (max-width: 600px) {
  .site-nav {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .deliverable-card:nth-child(2),
  .deliverable-card:nth-child(3) {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
