:root {
  --uv-blue: #5200ff;
  --uv-red: #c64b55;
  --uv-paper: #eeeeeb;
  --glass-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.24'/%3E%3C/svg%3E");
}

body.project-theme {
  background-color: var(--uv-paper);
  background-image: var(--glass-grain);
}
body.project-theme::after { content: none; }
.project-theme .reveal-label-after,
.project-theme .board-reveal[data-state="after"] .reveal-state {
  background: var(--uv-red);
  color: #fff;
}

body .uv-action.uv-action {
  --action-bg: var(--uv-blue);
  --action-ink: #fff;
  background: var(--action-bg);
  color: var(--action-ink);
}
body .uv-action.uv-action:is(:hover, :focus-visible) {
  --action-bg: var(--uv-red);
  --action-ink: #fff;
  background: var(--action-bg);
  color: var(--action-ink);
}
body .uv-action.uv-action .case-link-label { color: inherit; }
body .uv-action :is(.arrow-icon, .uv-arrow) circle { fill: var(--action-bg); }
body .uv-action.uv-action :is(.arrow-icon, .uv-arrow) path { stroke: var(--action-ink) !important; }

body .project-heading .uv-action,
body .service .uv-action {
  border-radius: 999px;
  padding: 5px 10px !important;
}
body button.uv-action.package-toggle,
body .price a.uv-action { border-radius: 50%; }

body .text-link.uv-action {
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
}

body .nav-links > a,
body .case-nav-links > a {
  background: var(--uv-blue);
  color: white;
}
body .nav-links > a:is(:hover, :focus-visible),
body .case-nav-links > a:is(:hover, :focus-visible) {
  background: var(--uv-red);
  color: #fff;
}
body .nav-links > .nav-cta:is(:hover, :focus-visible) {
  --action-bg: #ccff00;
  background: var(--action-bg);
}

/* Read pointer coordinates on the element, where each page sets them. */
body :is(.ambient, .project-pointer-glow) {
  background: radial-gradient(circle 22rem at var(--mx, -100vmax) var(--my, -100vmax),rgba(198,75,85,.58) 0%,rgba(198,75,85,.45) 20%,rgba(198,75,85,.25) 43%,rgba(198,75,85,.08) 68%,rgba(198,75,85,0) 100%);
}

body .project-heading .case-study-link {
  --case-link-color: var(--uv-blue);
  background: transparent;
}
body .project-heading .case-study-link:is(:hover, :focus-visible) {
  --case-link-color: var(--uv-red);
  background: transparent;
}
body .project-heading .case-study-link .case-link-label {
  color: var(--case-link-color);
}
body .project-heading .case-study-link .arrow-icon circle {
  fill: var(--case-link-color);
}

/* All action buttons lift by the same amount on hover. */
body :is(.uv-action, .nav-links > a, .case-nav-links > a, .case-study-link, .footer > div > a, .menu, .case-menu-toggle) {
  transition: translate .2s ease, background-color .2s ease, color .2s ease;
}
body :is(.uv-action, .nav-links > a, .case-nav-links > a, .case-study-link, .footer > div > a, .menu, .case-menu-toggle):is(:hover, :focus-visible) {
  transform: none;
  translate: 0 -2px;
}
body .project-heading .case-study-link:hover .arrow-icon { transform: none; }
@media (prefers-reduced-motion: reduce) {
  body :is(.uv-action, .nav-links > a, .case-nav-links > a, .case-study-link, .footer > div > a, .menu, .case-menu-toggle):is(:hover, :focus-visible) {
    translate: none;
  }
}

/* Solid actions and softer glass highlights. */
body :is(.uv-action.uv-action, .nav-links > a, .case-nav-links > a, .footer > div > a, .faq-bar a, .faq-end a, .privacy-home) {
  border: 0;
  background: var(--uv-blue);
  color: #fff;
  box-shadow: none;
  border-radius: 999px;
  text-decoration: none;
}
body :is(.uv-action.uv-action, .nav-links > a, .case-nav-links > a, .footer > div > a, .faq-bar a, .faq-end a, .privacy-home):is(:hover, :focus-visible, :active) {
  background: var(--uv-red);
  color: #fff;
  box-shadow: 0 7px 12px -6px rgb(82 0 255 / .65);
}
body .nav-links > .nav-cta:is(:hover, :focus-visible, :active) {
  --action-ink: var(--uv-blue);
  background: #ccff00;
  color: var(--uv-blue);
}
body :is(.menu, .case-menu-toggle, .zoom-close, .whatsapp-fab) {
  border: 0;
  background: var(--uv-red);
  color: #fff;
  box-shadow: none;
}
body :is(.menu, .case-menu-toggle, .zoom-close, .whatsapp-fab):is(:hover, :focus-visible, :active) {
  background: var(--uv-blue);
  color: #fff;
  box-shadow: 0 7px 12px -6px rgb(198 75 85 / .65);
}
body :is(.menu, .case-menu-toggle) > span { background: currentColor; }
body :is(.faq-bar, .faq-end) a,
body .privacy-home { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; }
body :is(.faq-bar, .faq-end) a .faq-arrow circle { fill: transparent; }
body :is(.faq-bar, .faq-end) a .faq-arrow path { stroke: currentColor; }
body .faq-categories .faq-arrow { color: var(--uv-blue); }
body .faq-categories a:is(:hover, :focus-visible) .faq-arrow { color: var(--uv-red); }
body .tile-dots button::before { background: var(--uv-blue); opacity: .48; }
body .tile-dots button[aria-current="true"]::before { opacity: 1; }
body .tile-dots button:is(:hover, :focus-visible)::before { background: var(--uv-red); opacity: 1; }

body :is(.tile-carousel .service, .price-card, .price-card.featured,
  .contact-form, .faq-categories a, nav.case-nav, .nav) {
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 8px 24px rgb(23 19 15 / .08);
}
body.case-page { overflow-x: clip; }
.case-page main > section { border-block: 0; position: relative; isolation: isolate; }
.case-page main > section:nth-of-type(even)::after {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background: var(--glass-grain), rgb(255 255 255 / .32);
}
.case-page .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case-page .tags .pill {
  display: inline-block;
  border: 0;
  border-radius: 5px;
  margin: 0;
  padding: 5px 9px;
  background: rgb(82 0 255 / .075);
  color: #3d2675;
  font-weight: 650;
}

body .faq-list summary:is(:hover, :focus-visible) .faq-plus { color: var(--uv-red); }

body .preview-arrow:is(:active, .clicked) { color: #ccff00; }

/* Let color, shadow and lift ease in together. */
body :is(.uv-action, .nav-links > a, .case-nav-links > a, .footer > div > a,
  .faq-bar a, .privacy-home, .menu, .case-menu-toggle, .zoom-close, .whatsapp-fab, .case-study-link) {
  transition: translate .22s ease, background-color .22s ease, color .22s ease, box-shadow .25s ease;
  filter: none;
}
body .uv-action :is(.arrow-icon, .uv-arrow) { scale: 1; }
body .uv-action :is(.arrow-icon, .uv-arrow) :is(circle, path) { transition: fill .22s ease, stroke .22s ease; }
body .preview-arrow { transition: color .2s ease, transform .22s ease; filter: none; }
body .preview-arrow.clicked { transform: scale(1.18); }

body .project-thumbnails { overflow: visible; }
body .project-thumbnails .project-tile {
  border-radius: 7px;
  overflow: hidden;
  transition: transform .2s ease;
}
body .project-thumbnails .project-tile:is(:hover, .selected),
body .project-thumbnails .project-tile.selected:hover {
  outline: none;
  box-shadow: none;
}
body .project-thumbnails .project-tile::before {
  border: 0;
  background: linear-gradient(12deg, rgb(198 75 85 / .55), transparent 76%);
  opacity: 0;
  transition: opacity .24s ease;
}
body .project-thumbnails .project-tile::after {
  background: linear-gradient(12deg, rgb(82 0 255 / .34), transparent 76%);
  transition: opacity .24s ease;
}
body .project-thumbnails .project-tile.selected::before { opacity: 1; }
body .project-thumbnails .project-tile.selected::after { opacity: 0; }
body .project-thumbnails .project-tile:hover:not(.selected)::after { opacity: .55; }
body .project-thumbnails .project-tile:focus-visible,
body .project-thumbnails .project-tile.selected:focus-visible {
  outline: 2px solid var(--uv-blue);
  outline-offset: 2px;
}

body .price-grid .price-card { mask-image: none; }
body .price-grid .price-card .package-details {
  display: grid;
  grid-template-rows: 0fr;
  max-height: none;
  overflow: visible;
  visibility: hidden;
  transition: grid-template-rows .34s ease, opacity .23s ease, visibility 0s linear .34s;
}
body .package-details-inner {
  min-height: 0;
  overflow: clip;
  overflow-clip-margin: 14px;
}
body .package-details-inner > ul { margin-block: 16px; }
body .price-grid .price-card.expanded .package-details,
body .price-grid .price-card:has(.package-details :focus-visible) .package-details {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
@media (hover: hover) and (pointer: fine) {
  body .price-grid .price-card:hover .package-details {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
  body .tile-carousel .service:hover {
    padding-inline: clamp(22px, 3vw, 34px);
  }
}
body.case-page .photo-open:hover > img {
  box-shadow: 0 8px 25px -12px rgb(23 19 15 / .35);
}
body.case-page .reveal-arrows button { transition: transform .22s ease, color .22s ease; }
@media (prefers-reduced-motion: reduce) {
  body :is(.uv-action, .nav-links > a, .case-nav-links > a, .footer > div > a,
    .faq-bar a, .privacy-home, .menu, .case-menu-toggle, .zoom-close, .whatsapp-fab, .case-study-link,
    .preview-arrow, .project-thumbnails .project-tile, .price-grid .price-card .package-details,
    .reveal-arrows button),
  body .project-thumbnails .project-tile::before,
  body .project-thumbnails .project-tile::after { transition: none; }
}

@font-face {
  font-family: "Cedarville Cursive";
  src: url("/assets/Cedarville-Cursive.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.case-page :is(.hand-note, .margin-note, .board-script, .mova-paper-note) {
  font-family: "Cedarville Cursive", cursive;
  font-weight: 400;
}

body :is(.custom-banner .primary-btn.uv-action, .footer > div > a) {
  --action-bg: var(--uv-red);
  background: var(--action-bg);
  color: #fff;
  box-shadow: none;
}
body :is(.custom-banner .primary-btn.uv-action, .footer > div > a):is(:hover, :focus-visible, :active) {
  --action-bg: var(--uv-red);
  background: var(--action-bg);
  color: #fff;
  box-shadow: 0 7px 12px -6px rgb(82 0 255 / .65);
}

/* Give interactive controls the same small zoom across the site. */
body :is(button, summary, .uv-action, .nav-links > a, .case-nav-links > a,
  .case-study-link, .footer > div > a, .faq-bar a, .privacy-home, .whatsapp-fab) {
  transition: translate .22s ease, scale .22s ease, transform .22s ease,
    background-color .22s ease, color .22s ease, box-shadow .25s ease, opacity .22s ease;
}
body :is(button, summary, .uv-action, .nav-links > a, .case-nav-links > a,
  .case-study-link, .footer > div > a, .faq-bar a, .privacy-home, .whatsapp-fab):not(:disabled):is(:hover, :focus-visible, :active) {
  scale: 1.03;
}
body :is(.custom-banner .primary-btn.uv-action, .footer > div > a):is(:hover, :focus-visible, :active) {
  translate: 0 -2px;
}
@media (prefers-reduced-motion: reduce) {
  body :is(button, summary, .uv-action, .nav-links > a, .case-nav-links > a,
    .case-study-link, .footer > div > a, .faq-bar a, .privacy-home, .whatsapp-fab) {
    transition: none;
  }
  body :is(button, summary, .uv-action, .nav-links > a, .case-nav-links > a,
    .case-study-link, .footer > div > a, .faq-bar a, .privacy-home, .whatsapp-fab):not(:disabled):is(:hover, :focus-visible, :active) {
    scale: none;
  }
  body :is(.custom-banner .primary-btn.uv-action, .footer > div > a):is(:hover, :focus-visible, :active) {
    translate: none;
  }
}

body .whatsapp-fab,
body .whatsapp-fab:is(:hover, :focus-visible, :active) {
  background: #ccff00;
  color: var(--uv-blue);
}

.nav-backdrop { display: none; }
.nav-backdrop:has(+ nav :is(.menu, .case-menu-toggle)[aria-expanded="true"]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgb(82 0 255 / .43);
  backdrop-filter: grayscale(1);
  -webkit-backdrop-filter: grayscale(1);
  touch-action: none;
}
html:has(:is(.menu, .case-menu-toggle, .service-select-trigger)[aria-expanded="true"]) {
  overflow: hidden;
}
