:root {
  --bg: #f7f2ec;
  --bg-soft: #efe5d8;
  --panel: rgba(255, 255, 255, 0.75);
  --panel-strong: #fffdfb;
  --text: #1f1b1a;
  --text-soft: #655d59;
  --muted: #857b76;
  --primary: #b07d4a;
  --primary-deep: #8b5d2a;
  --primary-soft: #f0dfcb;
  --line: rgba(31, 27, 26, 0.08);
  --shadow: 0 22px 50px rgba(53, 29, 12, 0.12);
  --radius-lg: 30px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}

.bg-bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: floatBubble 16s ease-in-out infinite;
}

@keyframes floatBubble {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(26px, -30px) scale(1.07);
  }
}

.bubble--gold {
  background: radial-gradient(
    circle,
    rgba(176, 125, 74, 0.55),
    rgba(176, 125, 74, 0) 70%
  );
}

.bubble--cream {
  background: radial-gradient(
    circle,
    rgba(240, 223, 203, 0.75),
    rgba(240, 223, 203, 0) 70%
  );
}

.bubble--deep {
  background: radial-gradient(
    circle,
    rgba(139, 93, 42, 0.55),
    rgba(139, 93, 42, 0) 70%
  );
}

@media (prefers-reduced-motion: reduce) {
  .bubble {
    animation: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
}

.reveal-card.visible {
  animation: cardReveal 0.6s ease forwards;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.service-grid > *:nth-child(1),
.project-grid > *:nth-child(1),
.review-grid > *:nth-child(1),
.timeline > *:nth-child(1) {
  animation-delay: 0s;
}

.service-grid > *:nth-child(2),
.project-grid > *:nth-child(2),
.review-grid > *:nth-child(2),
.timeline > *:nth-child(2) {
  animation-delay: 0.09s;
}

.service-grid > *:nth-child(3),
.project-grid > *:nth-child(3),
.review-grid > *:nth-child(3),
.timeline > *:nth-child(3) {
  animation-delay: 0.18s;
}

.service-grid > *:nth-child(4),
.timeline > *:nth-child(4) {
  animation-delay: 0.27s;
}

.service-grid > *:nth-child(5) {
  animation-delay: 0.36s;
}

.service-grid > *:nth-child(6) {
  animation-delay: 0.45s;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-soft);
}

.eyebrow-dark {
  color: var(--primary-deep);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1,
h2 {
  font-family: "Cormorant Garamond", serif;
}

h1 {
  font-size: clamp(3.3rem, 7vw, 6rem);
  font-weight: 700;
  max-width: 660px;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  max-width: 650px;
}

h3 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

p {
  margin: 0;
  color: var(--text-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(247, 242, 236, 0.8);
  border-bottom: 1px solid rgba(31, 27, 26, 0.04);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #0a0908;
  box-shadow: 0 10px 22px rgba(176, 125, 74, 0.32);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 0.7rem;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.1rem;
  letter-spacing: -0.05em;
}

.brand-text small {
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.main-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: white;
  box-shadow: 0 14px 28px rgba(176, 125, 74, 0.28);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-primary:hover::after {
  left: 120%;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.hero {
  position: relative;
  background-image: url("https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  min-height: 760px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 12, 10, 0.78), rgba(15, 12, 10, 0.45));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
  padding: 110px 0 80px;
}

.hero-content {
  color: white;
}

.hero-content .lead {
  max-width: 580px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}

.trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.trust-list li {
  position: relative;
  padding-left: 20px;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  transform: translateY(-50%);
}

.hero-card {
  display: flex;
  justify-content: flex-end;
}

.hero-card-inner {
  width: min(100%, 420px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px 28px;
  color: white;
}

.card-label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero-card-inner h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: white;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.meta-grid div {
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-grid strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
  font-weight: 800;
}

.meta-grid span {
  color: rgba(255, 255, 255, 0.7);
}

.mini-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.mini-checklist span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(176, 125, 74, 0.14);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
}

.stats-bar {
  position: relative;
  overflow: hidden;
  background: rgba(255, 253, 251, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 30px 0;
}

.stats-grid div {
  text-align: center;
}

.stats-grid strong {
  display: block;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  color: var(--text);
  letter-spacing: -0.06em;
}

.stats-grid span {
  color: var(--text-soft);
}

.section-heading {
  margin-bottom: 42px;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.text-link {
  color: var(--primary-deep);
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.service-card {
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 16px 30px rgba(28, 21, 18, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out,
    background 0.2s ease-out;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 26px 48px rgba(28, 21, 18, 0.13);
  background: rgba(255, 255, 255, 0.62);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-soft), #f5e7d6);
  color: var(--primary-deep);
  font-weight: 800;
  margin-bottom: 18px;
  transition: transform 0.15s ease-out;
}

.service-card:hover .icon {
  transform: rotate(-8deg) scale(1.1);
}

.about {
  background: linear-gradient(180deg, rgba(240, 223, 203, 0.15), rgba(247, 242, 236, 0));
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 52px;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-content {
  display: grid;
  gap: 22px;
}

.feature-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  color: var(--text);
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-soft);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-deep);
  font-weight: 800;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 20px;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: #ddd;
  border-radius: 24px;
  min-height: 360px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease-out, transform 0.15s ease-out;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 60px rgba(20, 15, 12, 0.32);
}

.project-card.tall {
  min-height: 480px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease-out;
}

.project-card img.project-img-top {
  object-position: top center;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 20px 18px;
  background: linear-gradient(180deg, rgba(17, 14, 12, 0), rgba(17, 14, 12, 0.8));
  color: white;
}

.project-info h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.project-info span {
  color: rgba(255, 255, 255, 0.8);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.timeline-item {
  display: grid;
  gap: 20px;
  padding: 24px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.timeline-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 36px rgba(28, 21, 18, 0.1);
}

.timeline-item span {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-weight: 800;
  color: var(--primary-deep);
  background: var(--primary-soft);
  transition: transform 0.15s ease-out;
}

.timeline-item:hover span {
  transform: scale(1.1) rotate(-6deg);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.review-card {
  margin: 0;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 12px 28px rgba(28, 21, 18, 0.04);
  font-size: 1.02rem;
  color: var(--text);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 42px rgba(28, 21, 18, 0.12);
}

.review-card footer {
  margin-top: 22px;
  display: grid;
  gap: 4px;
}

.review-card footer strong {
  font-size: 1rem;
}

.review-card footer span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.cta-band {
  padding: 0 0 32px;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #1d1816, #312924);
  border-radius: 30px;
  padding: 42px 46px;
  color: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cta-inner > div:not(.bg-bubbles),
.cta-inner > a {
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  color: white;
  max-width: 620px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.contact-copy {
  display: grid;
  gap: 20px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  color: var(--text-soft);
}

.contact-card {
  display: grid;
  gap: 20px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.contact-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-deep);
  font-weight: 700;
}

.contact-row {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.contact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-row span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-row a,
.contact-row p {
  color: var(--text);
  font-weight: 600;
}

.site-footer {
  padding: 30px 0 48px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.footer-brand {
  display: inline-flex;
}

.socials {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-soft);
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hero-inner,
  .about-grid,
  .contact-grid,
  .service-grid,
  .timeline,
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-card {
    justify-content: flex-start;
  }

  .service-grid,
  .review-grid,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-card,
  .btn,
  .main-nav a {
    transition: none;
  }
}

/* Custom cursor */
body.custom-cursor-enabled,
body.custom-cursor-enabled a,
body.custom-cursor-enabled button,
body.custom-cursor-enabled input,
body.custom-cursor-enabled textarea {
  cursor: none;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 16px rgba(176, 125, 74, 0.55);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease,
    box-shadow 0.2s ease, opacity 0.2s ease;
}

.cursor-dot.pointer {
  width: 30px;
  height: 30px;
  background: var(--primary-deep);
  box-shadow: 0 0 22px rgba(139, 93, 42, 0.55);
}

.cursor-dot.hidden {
  opacity: 0;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(176, 125, 74, 0.45);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease-out, top 0.12s ease-out, width 0.25s ease,
    height 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.cursor-ring.pointer {
  width: 62px;
  height: 62px;
  border-color: rgba(139, 93, 42, 0.55);
}

.cursor-ring.hidden {
  opacity: 0;
}

.cursor-ripple {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.85;
  animation: cursorRipple 0.65s ease-out forwards;
}

@keyframes cursorRipple {
  to {
    transform: translate(-50%, -50%) scale(6);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-ripple {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    height: auto;
    padding: 18px 0;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: 640px;
  }

  .hero-inner {
    padding-top: 80px;
  }

  .stats-grid,
  .service-grid,
  .review-grid,
  .timeline,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner,
  .footer-inner,
  .split-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 80px 0;
  }

  .hero-card-inner,
  .contact-form,
  .service-card,
  .review-card {
    padding: 22px 18px;
  }
}

/* Ambient bubble placements per section */
.bubble-hero-1 {
  width: 460px;
  height: 460px;
  top: -140px;
  right: -80px;
  animation-duration: 20s;
}

.bubble-stats-1 {
  width: 340px;
  height: 340px;
  top: -160px;
  left: 8%;
  animation-duration: 18s;
}

.bubble-services-1 {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -120px;
  animation-duration: 19s;
}

.bubble-services-2 {
  width: 320px;
  height: 320px;
  bottom: -140px;
  left: -80px;
  animation-duration: 22s;
  animation-delay: 2s;
}

.bubble-about-1 {
  width: 380px;
  height: 380px;
  top: 10%;
  right: -140px;
  animation-duration: 21s;
}

.bubble-reviews-1 {
  width: 360px;
  height: 360px;
  top: -140px;
  left: -100px;
  animation-duration: 18s;
}

.bubble-reviews-2 {
  width: 300px;
  height: 300px;
  bottom: -120px;
  right: 5%;
  animation-duration: 23s;
  animation-delay: 1.5s;
}

.bubble-cta-1 {
  width: 420px;
  height: 420px;
  top: -180px;
  right: 10%;
  opacity: 0.35;
  animation-duration: 17s;
}

.bubble-contact-1 {
  width: 360px;
  height: 360px;
  top: -140px;
  right: -100px;
  animation-duration: 20s;
}

@media (max-width: 640px) {
  .bubble {
    display: none;
  }
}

/* Tilt cards: 3D tilt + cursor-tracking spotlight + dynamic shadow */
.tilt-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.tilt-card.tilt-active {
  transition: transform 0.05s linear, box-shadow 0.05s linear;
}

.tilt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 240px at var(--mx) var(--my),
    rgba(176, 125, 74, 0.4),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 3;
}

.tilt-card:hover::after {
  opacity: 1;
}

.tilt-card > * {
  position: relative;
  z-index: 2;
}

.project-card.tilt-card > .project-info {
  position: absolute;
  z-index: 2;
}

@media (max-width: 980px), (hover: none) {
  .tilt-card {
    transform: none !important;
  }

  .tilt-card::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tilt-card {
    transition: none;
  }
}

/* Slim scroll-progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-deep));
  z-index: 10000;
  transition: width 0.1s ease-out;
}
