/* ── Custom properties ───────────────────────────────────────── */
:root {
  /* Layout */
  --bg:      #ffffff;
  --surface: #ffe4bb;
  --line:    rgba(0,0,0,0.1);
  --highlighter: linear-gradient(transparent 50%, var(--text-tertiary) 50%, var(--text-tertiary) 80%, transparent 80%);
  --highlighter-dark: linear-gradient(transparent 50%, var(--text-accent-dim) 50%, var(--text-accent-dim) 80%, transparent 80%);
    --highlighter-light: linear-gradient(transparent 50%, var(--text-accent) 50%, var(--text-accent) 80%, transparent 80%);

  /* Typography — 3 colors only */
  --text-primary: #0e0e24;
  --text-accent:  #5b49fc;
  --text-accent-dim:  #2f21a8;
  --text-tertiary: #3fffc2;

  /* Fonts */
  --font:        "Inter", sans-serif;
  --font-accent: "Fraunces", Georgia, serif;

  /* Type scale */
  --h1: clamp(2.4rem, 7vw, 6rem);
  --h2: clamp(1.8rem, 4.5vw, 3rem);
  --h3: clamp(1.4rem, 3vw, 2.4rem);
  --h4: clamp(1.2rem, 1.8vw, 1.5rem);
  --h5: clamp(1.1rem, 1.5vw, 1.3rem);
  --body: 1rem;
  --border-rad: 1rem;
  --spacer: calc(var(--body) * 2);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.6;
  color: var(--bg);
  background: var(--text-primary);
  overflow-x: hidden;
}

a, a:visited, a:active { color: var(--bg); text-decoration: none; }

/* ── Cursor glow ─────────────────────────────────────────────── */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(45, 84, 255, 0.2) 0%, transparent 68%);
  border-radius: var(--border-rad);
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

/* ── Nav ─────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  pointer-events: none;
}
.site-title {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.35rem;
  border-radius: var(--border-rad);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  pointer-events: all;
  white-space: nowrap;
  background-color: #00000022;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: calc(var(--border-rad) - 0.15rem);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--bg);
  transition: background 0.2s, color 0.2s;
}
.nav-link:visited { color: var(--bg); }
.nav-link:hover { background: rgba(255,255,255,0.1); }
.nav-icon { width: 1em; height: 1em; flex-shrink: 0; }
a.nav-cta {
  background: var(--text-tertiary);
  color: var(--text-primary);
  margin-left: 0.15rem;
}
a.nav-cta:visited { color: var(--text-primary); }
a.nav-cta:hover { background: var(--text-accent); color: var(--bg); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 60svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 6vw 7vh;
  overflow: hidden;
  background-color: var(--text-accent-dim);
}

.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  inset: -50%;
  mix-blend-mode: screen;
}

.hero-blob--1 /* BOTTOM LEFT */ {
  background: radial-gradient(35% 35% at 30% 30%, var(--text-accent), transparent);
  animation: floatBlob1 12s ease-in-out infinite alternate;
}

.hero-blob--2 /* TOP RIGHT */ {
  background: radial-gradient(30% 30% at 70% 25%, var(--text-tertiary), transparent);
  animation: floatBlob2 14s ease-in-out infinite alternate;
}

.hero-blob--3 /* TOP LEFT */{
  background: radial-gradient(28% 28% at 15% 15%, var(--text-accent), transparent);
  animation: floatBlobVert 8s ease-in-out infinite alternate;
}

.hero-blob--4 /* BOTTOM MIDDLE */{
  background: radial-gradient(30% 30% at 50% 75%, var(--text-accent), transparent);
  animation: floatBlob4 10s ease-in-out infinite alternate;
}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: linear-gradient(0deg, var(--text-primary), transparent);
}

@keyframes floatBlob1 {
  0% { transform: translate(-18%, -12%) rotate(-3deg) scale(1); }
  25% { transform: translate(12%, -15%) rotate(10deg) scale(1.08); }
  50% { transform: translate(-8%, 18%) rotate(-8deg) scale(0.92); }
  75% { transform: translate(15%, 6%) rotate(12deg) scale(1.05); }
  100% { transform: translate(-12%, 10%) rotate(-5deg) scale(0.95); }
}

@keyframes floatBlob2 {
  0% { transform: translate(15%, -18%) rotate(2deg) scale(1); }
  25% { transform: translate(-10%, 12%) rotate(-12deg) scale(0.92); }
  50% { transform: translate(18%, 10%) rotate(8deg) scale(1.08); }
  75% { transform: translate(-12%, -8%) rotate(-10deg) scale(0.95); }
  100% { transform: translate(10%, 15%) rotate(6deg) scale(1.05); }
}

@keyframes floatBlobVert {
  0% { transform: translate(0, -15%) scale(1); }
  50% { transform: translate(0, 15%) scale(1.06); }
  100% { transform: translate(0, -10%) scale(0.94); }
}

@keyframes floatBlob4 {
  0% { transform: translate(-8%, 10%) rotate(2deg) scale(1); }
  25% { transform: translate(12%, -6%) rotate(-8deg) scale(1.06); }
  50% { transform: translate(-14%, 8%) rotate(6deg) scale(0.94); }
  75% { transform: translate(8%, -12%) rotate(-4deg) scale(1.03); }
  100% { transform: translate(14%, 14%) rotate(8deg) scale(0.97); }
}

/* ── Footer blobs (flipped from hero) ──────────────────────────── */
.footer-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: linear-gradient(180deg, var(--text-primary), transparent);
}
.footer-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.footer-blob {
  position: absolute;
  inset: -50%;
  mix-blend-mode: screen;
}
.footer-blob--1 /* was BOTTOM LEFT → TOP RIGHT */ {
  background: radial-gradient(35% 35% at 70% 70%, var(--text-accent-dim), transparent);
  animation: footerFloat1 12s ease-in-out infinite alternate;
}
.footer-blob--2 /* was TOP RIGHT → BOTTOM LEFT */ {
  background: radial-gradient(30% 30% at 30% 75%, var(--text-accent), transparent);
  animation: footerFloat2 14s ease-in-out infinite alternate;
}
.footer-blob--3 /* was TOP LEFT → BOTTOM RIGHT */ {
  background: radial-gradient(28% 28% at 85% 85%, var(--text-accent-dim), transparent);
  animation: footerFloatVert 8s ease-in-out infinite alternate;
}
.footer-blob--4 /* was BOTTOM MIDDLE → TOP MIDDLE */ {
  background: radial-gradient(30% 30% at 50% 25%, var(--text-accent-dim), transparent);
  animation: footerFloat4 10s ease-in-out infinite alternate;
}

@keyframes footerFloat1 {
  0% { transform: translate(-18%, 12%) rotate(-3deg) scale(1); }
  25% { transform: translate(12%, 15%) rotate(10deg) scale(1.08); }
  50% { transform: translate(-8%, -18%) rotate(-8deg) scale(0.92); }
  75% { transform: translate(15%, -6%) rotate(12deg) scale(1.05); }
  100% { transform: translate(-12%, -10%) rotate(-5deg) scale(0.95); }
}
@keyframes footerFloat2 {
  0% { transform: translate(15%, 18%) rotate(2deg) scale(1); }
  25% { transform: translate(-10%, -12%) rotate(-12deg) scale(0.92); }
  50% { transform: translate(18%, -10%) rotate(8deg) scale(1.08); }
  75% { transform: translate(-12%, 8%) rotate(-10deg) scale(0.95); }
  100% { transform: translate(10%, -15%) rotate(6deg) scale(1.05); }
}
@keyframes footerFloatVert {
  0% { transform: translate(0, 15%) scale(1); }
  50% { transform: translate(0, -15%) scale(1.06); }
  100% { transform: translate(0, 10%) scale(0.94); }
}
@keyframes footerFloat4 {
  0% { transform: translate(-8%, -10%) rotate(2deg) scale(1); }
  25% { transform: translate(12%, 6%) rotate(-8deg) scale(1.06); }
  50% { transform: translate(-14%, -8%) rotate(6deg) scale(0.94); }
  75% { transform: translate(8%, 12%) rotate(-4deg) scale(1.03); }
  100% { transform: translate(14%, -14%) rotate(8deg) scale(0.97); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 8vh;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.hero-text {
  position: relative;
  z-index: 3;
  min-width: 0;
  width: 25vw;
  align-content: center;
  margin: auto;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.hero-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--border-rad);
}

/* Card Fan Gallery */
.card-fan {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  perspective: 1000px;
}
.card-fan .card {
  position: absolute;
  width: 80%;
  height: 80%;
  top: 50%;
  left: 50%;
  object-fit: cover;
  border-radius: var(--border-rad);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  cursor: grab;
  transform-origin: center center;
}
.card-fan .card:nth-child(1) { transform: translate(-50%, -50%) rotate(-2deg); z-index: 6; }
.card-fan .card:nth-child(2) { transform: translate(-50%, -50%) rotate(3deg) scale(0.95); z-index: 5; opacity: 0.85; }
.card-fan .card:nth-child(3) { transform: translate(-50%, -50%) rotate(-4deg) scale(0.9); z-index: 4; opacity: 0.7; }
.card-fan .card:nth-child(4) { transform: translate(-50%, -50%) rotate(5deg) scale(0.85); z-index: 3; opacity: 0.55; }
.card-fan .card:nth-child(5) { transform: translate(-50%, -50%) rotate(-1deg) scale(0.8); z-index: 2; opacity: 0.4; }
.card-fan .card:nth-child(6) { transform: translate(-50%, -50%) rotate(2deg) scale(0.75); z-index: 1; opacity: 0.25; }
.card-fan .card.exit-left {
  transform: translate(-180%, -50%) rotate(-25deg) !important;
  opacity: 0 !important;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s;
}

/* Service Icon Animations */
.svc-icon-anim {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacer);
}
.svc-icon-anim svg {
  width: 90%;
  height: auto;
}

.svc-draw {
  stroke-dasharray: var(--dash-len, 2000);
  stroke-dashoffset: var(--dash-len, 2000);
  animation: svcLoop 6s ease var(--draw-delay, 0s) infinite;
  animation-play-state: paused;
}
.svc-card.in .svc-draw { animation-play-state: running; }
.svc-draw-1 { --dash-len: 2200; --draw-delay: 0s; }
.svc-draw-2 { --dash-len: 1400; --draw-delay: 0.3s; }
.svc-draw-3 { --dash-len: 900; --draw-delay: 0.6s; }
.svc-draw-4 { --dash-len: 900; --draw-delay: 0.9s; }
.svc-draw-5 { --dash-len: 400; --draw-delay: 1.2s; }
.svc-draw-6 { --dash-len: 130; --draw-delay: 1.4s; }

.svc-fill-layer {
  opacity: 0;
  animation: svcFillLoop 6s ease 0s infinite;
  animation-play-state: paused;
}
.svc-card.in .svc-fill-layer { animation-play-state: running; }

@keyframes svcLoop {
  0% { stroke-dashoffset: var(--dash-len, 2000); opacity: 1; }
  33% { stroke-dashoffset: 0; opacity: 1; }
  70% { stroke-dashoffset: 0; opacity: 1; }
  85% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: var(--dash-len, 2000); opacity: 0; }
}
@keyframes svcFillLoop {
  0% { opacity: 0; }
  40% { opacity: 0; }
  50% { opacity: 0.6; }
  70% { opacity: 0.6; }
  85% { opacity: 0; }
  100% { opacity: 0; }
}

/* Logo Morph */
.svc-logo-morph {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacer);
}
.svc-logo-morph svg {
  width: 90%;
  height: auto;
}

.hero-heading {
  display: block;
  font-family: var(--font);
  font-size: var(--h1);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  user-select: none;
}

.hero-foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: var(--spacer);
}
.hero-sub {
  max-width: 100%;
  line-height: 1.55;
  header & {font-size: var(--h4);}
  section & {font-size: var(--h5);}
}

/* ── CTA button ──────────────────────────────────────────────── */
.cta-btn {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--border-rad);
  background: var(--text-tertiary);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: var(--body);
  font-weight: 700;
  letter-spacing: 0.07em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, transform 0.22s;
  white-space: nowrap;
  flex-shrink: 0;
}
.cta-btn:visited { color: var(--text-primary); }
.cta-btn:hover { background: var(--text-accent); color: var(--bg); will-change: transform; }
.btn-arrow {
  width: 1em; height: 1em;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.cta-btn:hover .btn-arrow { transform: translateX(3px); }


/* ── Marquee ─────────────────────────────────────────────────── */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--text-accent-dim);
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='1' fill='%23fff' opacity='.08'/%3E%3C/svg%3E");
  background-size: 20px 20px;
  padding: 0.7rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font);
  font-size: var(--body);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
  padding: 0 1.4rem;
  white-space: nowrap;
}
.marquee-track .dot { color: var(--text-tertiary); padding: 0 0.1rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Section shared ──────────────────────────────────────────── */
.section-inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 6vw;
}
section { padding: 8vh 0;}

h2 {
  font-family: var(--font);
  font-size: var(--h2);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  
  margin-bottom: var(--spacer);
}

h3 {
  font-family: var(--font);
  font-size: var(--h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  
  margin-bottom: var(--spacer);
}

h1,h2,h3,h4 {
  span {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight:400;
    color: var(--text-tertiary);
    padding: 0;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }
}

.invert {
  background-color: var(--text-primary);
  background-size: 40px 40px;
}
footer,header {
  background-color: var(--text-accent-dim);
}



/* ── About ──────────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-img {
  position: sticky;
  top: 6rem;
}
.about-img img {
  width: 100%;
  border-radius: var(--border-rad);
  display: block;
  border: 1px solid color-mix(in srgb, var(--text-accent-dim) 50%, transparent);
  box-shadow: 0px 0px var(--spacer) color-mix(in srgb, var(--text-accent) 20%, transparent);
}
.about-body p {
  font-size: var(--body);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 55ch;
}
.about-body h3 {
  margin-top: 1rem;
}
.about-skills {
  list-style: none;
  margin-bottom: 1.5rem;
}
.about-skills li {
  font-size: var(--body);
  line-height: 1.7;
  padding: 0.4rem 0;
  padding-left: 1.4rem;
  position: relative;
}
.about-skills li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--text-tertiary);
}

/* ── About logos ─────────────────────────────────────────────── */
.about-logos {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  height: 32px;
  margin: 2rem 0;
  opacity: 0.7;
}
.about-logos img {
  height: 100%;
  width: auto;
  filter: invert(1);
  object-fit: contain;
}

/* ── Portfolio / Carousel ────────────────────────────────────── */

.portfolio {
  position: relative;
  overflow: hidden;
  background: var(--text-primary);
}
.portfolio-bg-1 {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  background-image:
    radial-gradient(ellipse 50% 60% at 50% 55%, var(--text-accent) 0%, transparent 100%);
}
.portfolio-bg-2 {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2;
  background-image:
    linear-gradient(180deg,
      var(--text-primary) 0%,
      rgba(14,14,36,0.4) 20%,
      transparent 50%,
      rgba(47,33,168,0.4) 60%,
      var(--text-primary) 100%
    );
}
.portfolio > *:not([class^="portfolio-bg"]) { position: relative; z-index: 3; }
.portfolio .section-inner { padding-bottom: 0; }

/* ── 3D Coverflow ────────────────────────────────────────────── */
.coverflow {
  position: relative;
  width: 100%;
  height: clamp(380px, 55vw, 720px);
  margin-top: var(--spacer);
  perspective: 1200px;
  overflow: hidden;
}
.coverflow-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.c-item {
  position: absolute;
  width: clamp(330px, 45vw, 630px);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  overflow: hidden;
  cursor: pointer;
  outline: 2px solid transparent;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s, outline 0.15s, box-shadow 0.35s, filter 0.4s;
  will-change: transform, opacity;
}
.c-item.active {
  z-index: 10;
}

.c-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), filter 0.35s;
}
.c-item figcaption {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 1.1rem 1.3rem;
  font-size: var(--body);
  font-weight: 700;
  letter-spacing: 0.08em;
  
  color: var(--text-primary);
  opacity: 0;
  transition: opacity 0.25s;
}
.c-item.active:hover img         { transform: scale(1.05); filter: brightness(0.65); }
.c-item.active:hover figcaption  { opacity: 1; }

.coverflow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 3rem; height: 3rem;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--line);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  backdrop-filter: blur(8px);
}
.coverflow-btn.prev { left: 2vw; }
.coverflow-btn.next { right: 2vw; }
.coverflow-btn svg { width: 1.1rem; height: 1.1rem; }
.coverflow-btn:hover { background: var(--text-accent); border-color: var(--text-accent); color: var(--text-primary); }

/* ── Lightbox ────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.96);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }

.lb-img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  display: block;
}
.lb-caption {
  margin-top: 1rem;
  font-size: var(--body);
  font-weight: 700;
  letter-spacing: 0.1em;
  

}

.lb-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 3rem; height: 3rem;
  background: transparent;
  border: 1px solid var(--line);

  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.18s, color 0.18s;
}
.lb-close svg { width: 1.1rem; height: 1.1rem; }
.lb-close:hover { border-color: var(--text-accent); color: var(--text-accent); }

.lb-prev, .lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 3.5rem; height: 3.5rem;
  background: transparent;
  border: 1px solid var(--line);

  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.18s, color 0.18s;
}
.lb-prev svg, .lb-next svg { width: 1.2rem; height: 1.2rem; }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
.lb-prev:hover, .lb-next:hover { border-color: var(--text-accent); color: var(--text-accent); }

/* ── Services ────────────────────────────────────────────────── */
/* ── Client ticker ──────────────────────────────────────────── */
.client-ticker {
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4vh;
}
.client-ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
}
.client-ticker-track span {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  
  color: var(--text-primary);
  opacity: 0.4;
  padding: 0 1rem;
  white-space: nowrap;
  transition: opacity 0.3s;
}
.client-ticker-track .ticker-sep {
  opacity: 0.15;
  padding: 0 0.3rem;
}
.client-ticker:hover .client-ticker-track {
  animation-play-state: paused;
}
.client-ticker:hover .client-ticker-track span {
  opacity: 0.7;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Services ──────────────────────────────────────────────── */
.services {
  padding: 10vh 0;
  position: relative;
  overflow: hidden;
}


.services-intro {
  max-width: 52ch;
  font-size: var(--body);
  line-height: 1.6;
  margin-bottom: var(--spacer);
}

.services-cta {
  margin-top: var(--spacer);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: var(--spacer);
}

.svc-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-radius: var(--body);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--text-accent) 50%, transparent);
  box-shadow: 0px 0px var(--spacer) color-mix(in srgb, var(--text-accent) 20%, transparent);
  transition: background-color 0.25s, transform 0.2s, box-shadow 0.5s;
  background-color: var(--text-primary);
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 0px var(--spacer) var(--text-accent);
}

/* Oversized numbers */
.svc-number {
  position: absolute;
  top: -0.15em;
  font-family: var(--font);
  font-size: clamp(8rem, 14vw, 16rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  opacity: 0.1;
  pointer-events: none;
  z-index: 2;
  user-select: none;
  transition: opacity 0.4s, color 0.4s;
  .svc-card:nth-child(odd) & {right: -0.05em;}
  .svc-card:nth-child(even) & {left: -0.05em;}
}

.svc-card:hover .svc-number {
  opacity: 0.08;
  color: var(--text-accent);
}

/* "Most Popular" badge */
.svc-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.3rem 0.9rem;
  background: var(--text-tertiary);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  border-radius: var(--border-rad);
  margin-bottom: 0.75rem;
}

.svc-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.svc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.svc-card:hover .svc-img img {
  transform: scale(1.08);
}

.svc-body {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
}
.svc-body h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.svc-body p {
  font-size: var(--body);
  line-height: 1.55;
  margin-top: var(--body);
}

/* Stat counters */
.svc-stat {
  margin-top: 1.2rem;
  padding-top: 1rem;
  font-family: var(--font);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.6;
}
.svc-stat strong {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-accent);
  opacity: 1;
}

.svc-card {
  transition: background-color 0.5s;
}
.service-panel p {
  font-size: var(--body);
  max-width: 55ch;
  margin-bottom: 0.75rem;
}
.service-panel p:last-child { margin-bottom: 2rem; }

.tools { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tools em {
  font-style: normal;
  font-size: var(--body);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.7rem;
  border: 1px solid currentColor;
  border-radius: var(--border-rad);
}

/* ── Blog teaser ─────────────────────────────────────────────── */
.blog-list { list-style: none; }
.blog-list li { border-bottom: 1px solid rgba(0,0,0,0.15); }
.blog-list li a {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1.3rem 0;
  transition: color 0.18s, padding-left 0.22s;
}
.blog-list li a:hover { padding-left: 0.4rem; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  position: relative;
  padding: 8vh 6vw;
  background-color: var(--text-primary);
  h3 { margin: 0; }
}
footer > :not(.footer-blobs):not(.footer-grain) { position: relative; z-index: 1; }
.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--spacer);
}
.footer-loc { font-size: var(--body); line-height: 1.55; }

.footer-links { display: flex; gap: 1.25rem; align-items: center; font-size: var(--h3); }
.footer-links a {transition: color 0.18s, transform 0.2s;}
.footer-links a:hover { transform: translateY(-3px); }

/* ── Blog pages ──────────────────────────────────────────────── */

/* Blog hero — dark header with gradient mesh blobs */
.blog-hero {
  position: relative;
  z-index: 2;
  min-height: 26svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 6vw 5vh;
  background: var(--text-accent-dim);
  overflow: hidden;
}
.blog-hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blog-hero-blob {
  position: absolute;
  inset: -50%;
  mix-blend-mode: screen;
}
.blog-hero-blob--1 {
  background: radial-gradient(35% 40% at 25% 60%, var(--text-accent), transparent);
  animation: floatBlob1 12s ease-in-out infinite alternate;
}
.blog-hero-blob--2 {
  background: radial-gradient(30% 35% at 75% 30%, var(--text-tertiary), transparent);
  animation: floatBlob2 14s ease-in-out infinite alternate;
}
.blog-hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: linear-gradient(0deg, var(--text-primary), transparent);
}
.blog-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 5rem;
  text-align: center;
}
.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--bg);
  margin-bottom: 1.25rem;
}

/* Hero image */
.blog-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: luminosity;
}

/* Breadcrumb — inside hero */
.blog-breadcrumb {
  position: static;
  transform: none;
  z-index: auto;
  pointer-events: auto;
}
.blog-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  list-style: none;
  font-size: 0.82rem;
  margin-bottom: 1.5rem;
}
.blog-breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 0.4rem; color: rgba(255,255,255,0.5); }
.blog-breadcrumb a { text-decoration: none; color: var(--bg); font-weight: 500; transition: color 0.15s; }
.blog-breadcrumb a:hover { color: var(--text-tertiary); }
.blog-breadcrumb [aria-current] { color: rgba(255,255,255,0.7); }

/* Blog meta — author row in hero */
.blog-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}
.blog-meta-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
}
.blog-meta-sep { color: rgba(255,255,255,0.25); }

/* Blog body — white content area with dot grid + accent shapes */
.blog-body {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.blog-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--text-accent) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.03;
  pointer-events: none;
}
.blog-accent-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
}
.blog-accent-shape--1 {
  top: 12%; right: -2%;
  width: 180px; height: 180px;
  border: 3px solid var(--text-accent);
  border-radius: 50%;
  animation: floatShape 8s ease-in-out infinite alternate;
}
.blog-accent-shape--2 {
  bottom: 18%; left: -2%;
  width: 120px; height: 120px;
  background: var(--text-tertiary);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  animation: floatShape 10s 2s ease-in-out infinite alternate;
}

/* Blog article wrapper */
.blog-article {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem var(--spacer) 2rem;
  color: var(--text-primary);
}

/* Table of contents */
.blog-toc {
  position: static;
  transform: none;
  z-index: auto;
  pointer-events: auto;
  background: rgba(91,73,252,0.08);
  border-left: 3px solid var(--text-accent);
  border-radius: 0 var(--border-rad) var(--border-rad) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.blog-toc summary {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-accent-dim);
  margin-bottom: 0.5rem;
}
.blog-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
}
.blog-toc li { counter-increment: toc; }
.blog-toc li a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.15s, padding-left 0.2s;
}
.blog-toc li a::before {
  content: counter(toc) ". ";
  color: var(--text-accent);
  font-weight: 600;
}
.blog-toc li a:hover { color: var(--text-accent); padding-left: 0.3rem; }

/* Article content */
.blog-content { line-height: 1.75; }
.blog-content p { margin-bottom: 1.4rem; font-size: 1.05rem; }
.blog-content h2 {
  font-size: var(--h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 3rem 0 1rem;
  color: var(--text-primary);
  scroll-margin-top: 5rem;
}
.blog-content h2 span { color: var(--text-accent); }
.blog-content h3 {
  font-size: var(--h4);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
  scroll-margin-top: 5rem;
}
.blog-content strong { color: var(--text-primary); }
.blog-content a { color: var(--text-accent); text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color 0.15s; }
.blog-content a:hover { color: var(--text-accent-dim); }
.blog-content ul, .blog-content ol { margin: 0 0 1.4rem 1.5rem; }
.blog-content li { margin-bottom: 0.5rem; font-size: 1.05rem; line-height: 1.6; }
.blog-content li::marker { color: var(--text-accent); }
.blog-content blockquote {
  border-left: 3px solid var(--text-tertiary);
  padding: 1rem 1.5rem;
  margin: 2.5rem 0;
  background: rgba(63,255,194,0.04);
  border-radius: 0 var(--border-rad) var(--border-rad) 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(14,14,36,0.75);
}
.blog-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, var(--text-accent), var(--text-tertiary), transparent);
  margin: 3rem 0;
  opacity: 0.3;
}
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-rad);
  margin: 2rem 0;
  box-shadow: 0 4px 24px rgba(14,14,36,0.08);
}
.blog-content code {
  background: rgba(91,73,252,0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Inline CTA — with blob glow */
.blog-inline-cta {
  position: relative;
  margin: 3.5rem 0;
  padding: 2.5rem 2rem;
  background: var(--text-primary);
  border-radius: var(--border-rad);
  text-align: center;
  overflow: hidden;
}
.blog-inline-cta-blob {
  position: absolute;
  inset: -50%;
  background: radial-gradient(40% 40% at 30% 70%, rgba(91,73,252,0.4), transparent),
              radial-gradient(35% 35% at 70% 30%, rgba(63,255,194,0.25), transparent);
  mix-blend-mode: screen;
  animation: floatBlob1 10s ease-in-out infinite alternate;
}
.blog-inline-cta-inner { position: relative; z-index: 1; }
.blog-inline-cta h3 {
  font-size: var(--h4);
  color: var(--bg);
  margin-bottom: 0.5rem;
}
.blog-inline-cta h3 span {
  color: var(--text-tertiary);
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
}
.blog-inline-cta p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
}
.blog-inline-cta .cta-btn {
  margin: 0 auto;
}

/* Author bio — card style */
.blog-author {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  margin: 3rem 0 0;
  background: rgba(91,73,252,0.03);
  border: 1px solid rgba(91,73,252,0.08);
  border-radius: var(--border-rad);
}
.blog-author img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(91,73,252,0.15);
}
.blog-author strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  color: var(--text-primary);
}
.blog-author strong span {
  color: var(--text-accent);
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
}
.blog-author p { font-size: 0.9rem; color: rgba(14,14,36,0.6); line-height: 1.55; margin: 0 0 0.75rem; }
.blog-author-links { display: flex; gap: 1rem; }
.blog-author-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-accent);
  text-decoration: none;
  transition: color 0.15s;
}
.blog-author-links a:hover { color: var(--text-accent-dim); }

/* Related posts — dark section with gradient mesh */
.blog-related {
  position: relative;
  overflow: hidden;
  padding: 6vh 6vw;
  background: var(--text-primary);
  color: var(--bg);
}
.blog-related::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(91,73,252,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 60%, rgba(63,255,194,0.12) 0%, transparent 70%);
  z-index: 0;
}
.blog-related::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3'/></filter><rect width='200' height='200' filter='url(%23g)' opacity='0.08'/></svg>");
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}
.blog-related-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}
.blog-related h2 {
  font-size: var(--h3);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--bg);
}
.blog-related h2 span {
  color: var(--text-tertiary);
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
}
.blog-related ul { list-style: none; }
.blog-related li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.blog-related li:last-child { border-bottom: none; }
.blog-related a {
  display: block;
  padding: 1.25rem 0;
  text-decoration: none;
  transition: padding-left 0.2s;
}
.blog-related a:hover { padding-left: 0.5rem; }
.blog-related-title {
  display: block;
  font-weight: 700;
  color: var(--bg);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  transition: color 0.15s;
}
.blog-related a:hover .blog-related-title { color: var(--text-tertiary); }
.blog-related-desc {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
}
.blog-related-meta {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.2rem;
}

/* Blog listing page */
.blog-listing {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem var(--spacer) 4rem;
  color: var(--text-primary);
  background: var(--bg);
}
.blog-listing h1 {
  font-size: var(--h1);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.blog-listing-intro {
  font-size: 1.1rem;
  color: rgba(14,14,36,0.5);
  margin-bottom: 2.5rem;
}
.blog-listing .blog-list { list-style: none; }
.blog-listing .blog-list li { border-bottom: 1px solid rgba(14,14,36,0.08); }
.blog-listing .blog-list li a {
  display: block;
  padding: 1.3rem 0;
  text-decoration: none;
  color: var(--text-primary);
  transition: padding-left 0.22s;
}
.blog-listing .blog-list li a:hover { padding-left: 0.4rem; }
.blog-list-date {
  display: block;
  font-size: 0.82rem;
  color: rgba(14,14,36,0.4);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.blog-list-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.blog-list-desc {
  display: block;
  font-size: 0.9rem;
  color: rgba(14,14,36,0.5);
  margin-top: 0.25rem;
}

/* Blog mobile */
@media (max-width: 800px) {
  .blog-hero { min-height: 35svh; padding-bottom: 4vh; }
  .blog-hero h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .blog-hero-image { display: none; }
  .blog-article { padding-top: 2rem; }
  .blog-author { flex-direction: column; align-items: center; text-align: center; }
  .blog-author-links { justify-content: center; }
  .blog-accent-shape { display: none; }
  .blog-listing { padding-top: 5.5rem; }
  .blog-related { padding: 4vh var(--spacer); }
}

/* ── Scroll reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s, transform 0.5s;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-stagger.in { opacity: 1; transform: none; }
.reveal-stagger:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger:nth-child(3) { transition-delay: 0.24s; }

/* clip-path heading reveal removed — was hiding h2s permanently */

/* ── About skills stagger ───────────────────────────────────── */
.about-skills li {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s, transform 0.4s;
}
.about-skills li.in {
  opacity: 1;
  transform: none;
}
.about-skills li:nth-child(1) { transition-delay: 0s; }
.about-skills li:nth-child(2) { transition-delay: 0.07s; }
.about-skills li:nth-child(3) { transition-delay: 0.14s; }
.about-skills li:nth-child(4) { transition-delay: 0.21s; }
.about-skills li:nth-child(5) { transition-delay: 0.28s; }

/* ── Service card alternating layout ────────────────────────── */
.svc-card:nth-child(even) .svc-img { order: 2; }
.svc-card:nth-child(even) .svc-body { order: 1; }

/* ── Magnetic CTA hover ─────────────────────────────────────── */
.cta-btn {
  position: relative;
  overflow: hidden;
}
.cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.cta-btn:hover::after { opacity: 1; }

/* ── About image parallax-ready ─────────────────────────────── */
.about-img img {
  transition: transform 0.1s linear;
}

/* ── Footer columns reveal ──────────────────────────────────── */
.footer-col {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}
.footer-col.in {
  opacity: 1;
  transform: none;
}
.footer-col:nth-child(2) { transition-delay: 0.15s; }

/* ── Counter animation ──────────────────────────────────────── */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* Angled section divider */
.svc-divider {
  position: relative;
  height: 0;
  overflow: visible;
  z-index: 10;
}
.svc-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: block;
}

/* Detail section — dot pattern bg */
.svc-detail {
  padding: 8vh 0;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  color: var(--text-primary);
}
.svc-detail::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--text-accent) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.04;
  pointer-events: none;
}
.svc-detail h2, .svc-detail h3 { color: var(--text-primary); }
.svc-detail h2 span, .svc-detail h3 span { color: var(--text-accent); }
.svc-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }
.svc-detail-body p { margin-bottom: 1rem; line-height: 1.7; }
.svc-detail-body h3 { margin-top: 2rem; margin-bottom: 0.75rem; }

/* Feature list — reveal + animated checkmarks */
.svc-feature-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.svc-feature-list li {
  padding: 0.6rem 0 0.6rem 2rem;
  position: relative;
  line-height: 1.6;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s, transform 0.4s;
}
.svc-feature-list li.in {
  opacity: 1;
  transform: translateX(0);
}
.svc-feature-list li::before {
  content: '';
  position: absolute;
  left: -2px; top: 0.7rem;
  width: 18px; height: 18px;
  background: var(--text-tertiary);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s 0.15s, transform 0.3s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.svc-feature-list li.in::before {
  opacity: 1;
  transform: scale(1);
}
.svc-feature-list li::after {
  content: '';
  position: absolute;
  left: 4px; top: calc(0.7rem + 3px);
  width: 6px; height: 10px;
  border: solid var(--text-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.svc-feature-list li.in::after {
  transform: rotate(45deg) scale(1);
}

/* Pricing card — animated gradient border glow */
.svc-detail-card {
  background: var(--text-primary);
  padding: 2rem;
  border-radius: var(--border-rad);
  position: sticky;
  top: 5rem;
  isolation: isolate;
  border: 1px solid transparent;
  background-clip: padding-box;
}
.svc-detail-sidebar {
  position: relative;
}
.svc-detail-sidebar::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--border-rad) + 2px);
  background: linear-gradient(135deg, var(--text-accent), var(--text-tertiary), var(--text-accent));
  background-size: 300% 300%;
  animation: glowBorder 4s ease infinite;
  z-index: -1;
}
@keyframes glowBorder {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.svc-detail .svc-detail-card,
.svc-detail .svc-detail-card h3,
.svc-detail .svc-detail-card p,
.svc-detail .svc-detail-card li { color: var(--bg); }
.svc-detail .svc-detail-card h3 span { color: var(--text-tertiary); }
.svc-detail-card h3 { margin-bottom: 0.75rem; }
.svc-detail-card ul { list-style: none; padding: 0; margin: 1rem 0; }
.svc-detail-card li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.svc-detail-card li:last-child { border-bottom: none; }
.svc-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-tertiary);
  white-space: nowrap;
  letter-spacing: -0.02em;
  text-shadow: 0 0 12px rgba(63, 255, 194, 0.35);
  flex-shrink: 0;
}
.svc-price::before {
  content: 'from ';
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.6;
  text-shadow: none;
}
.svc-price small {
  font-size: 0.7em;
  font-weight: 400;
  opacity: 0.7;
}
.svc-detail-card p { margin-bottom: 0.75rem; font-size: 0.95rem; }

/* Floating accent shapes in detail section */
.svc-accent-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
}
.svc-accent-shape--1 {
  top: 15%; right: -4%;
  width: 200px; height: 200px;
  border: 3px solid var(--text-accent);
  border-radius: 50%;
  animation: floatShape 8s ease-in-out infinite alternate;
}
.svc-accent-shape--2 {
  bottom: 10%; left: -3%;
  width: 140px; height: 140px;
  background: var(--text-tertiary);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  animation: floatShape 10s 2s ease-in-out infinite alternate;
}
@keyframes floatShape {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(12deg); }
}

/* Portfolio section — gradient mesh + grain + 3D gallery */
.svc-portfolio {
  padding: 8vh 0;
  position: relative;
  overflow: hidden;
  background: var(--text-primary);
  color: #fff;
}
.svc-portfolio::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(91,73,252,0.3) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 60%, rgba(63,255,194,0.15) 0%, transparent 70%);
  z-index: 0;
}
.svc-portfolio::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3'/></filter><rect width='200' height='200' filter='url(%23g)' opacity='0.08'/></svg>");
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}
.svc-portfolio > * { position: relative; z-index: 2; }
.svc-portfolio h2 { color: #fff; }
.svc-portfolio span { color: var(--text-accent); }

/* Gallery — uniform 1:1 thumbs, 3D tilt hover, stagger reveal */
.svc-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.svc-gallery figure {
  overflow: hidden;
  border-radius: var(--border-rad);
  perspective: 800px;
  cursor: pointer;
}
.svc-gallery-thumb {
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
  border-radius: var(--border-rad);
}
.svc-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.svc-gallery figure:hover .svc-gallery-thumb img {
  transform: scale(1.04) rotateY(-2deg) rotateX(1deg);
}
.svc-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
}
.svc-gallery figure:hover .svc-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  opacity: 1;
}
.svc-gallery figcaption { padding: 0.75rem 0; font-size: 0.9rem; opacity: 0.7; }

/* Lightbox */
.svc-lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
  width: fit-content;
  height: fit-content;
  padding: 0;
  overflow: visible;
}
.svc-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
}
.svc-lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 1;
}
.svc-lightbox-close:hover { opacity: 1; }
.svc-lightbox-content img,
.svc-lightbox-content video {
  max-width: 90vw;
  max-height: 85vh;
  display: block;
  border-radius: var(--border-rad);
}

/* CTA section — blob atmosphere */
.svc-cta-section {
  padding: 10vh 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--text-accent-dim);
}
.svc-cta-section .section-inner { position: relative; z-index: 2; }
.svc-cta-section h2 { margin-bottom: 1rem; color: #fff; }
.svc-cta-section h2 span { color: var(--text-tertiary); }
.svc-cta-section p { max-width: 560px; margin: 0 auto 2rem; color: rgba(255,255,255,0.85); }
.svc-cta-section .cta-btn { margin: 0 auto; }

/* CTA button pulse glow */
.svc-cta-section .cta-btn {
  animation: ctaPulse 2.5s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,182,72,0.4); }
  50% { box-shadow: 0 0 20px 6px rgba(255,182,72,0.15); }
}

/* Scroll progress bar */
.svc-scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--text-accent), var(--text-tertiary));
  z-index: 300;
  transform-origin: left;
  transform: scaleX(0);
  width: 100%;
  pointer-events: none;
}

/* Pricing card CTA + phone */
.svc-detail-card .cta-btn {
  margin-top: 1rem;
}
.svc-card-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.7;
}
.svc-card-phone a { color: var(--bg) !important; text-decoration: underline; text-underline-offset: 3px; }


/* Availability signal */
.svc-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  color: var(--text-tertiary);
}
.svc-availability::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
  animation: availPulse 2s ease-in-out infinite;
}
@keyframes availPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(63,255,194,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 8px 4px rgba(63,255,194,0.15); }
}

/* Sticky mobile CTA bar */
.svc-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0.75rem 5vw;
  background: var(--text-primary);
  border-top: 1px solid var(--text-accent-dim);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.svc-sticky-bar .cta-btn {
  width: 100%;
  justify-content: center;
}
@media (max-width: 800px) {
  .svc-sticky-bar { display: block; }
  main { padding-bottom: 4rem; }
}

.svc-learn-more {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.svc-learn-more:hover { opacity: 1; }

.footer-service-links { list-style: none; padding: 0; }
.footer-service-links li { padding: 0.3rem 0; }
.footer-service-links a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 800px) {
  .svc-detail-grid { grid-template-columns: 1fr; }
  .svc-detail-card { position: static; }
  .svc-gallery { grid-template-columns: 1fr; }
  .svc-accent-shape { display: none; }
  .svc-divider svg { height: 40px; }
}

/* ── FAQ dropdowns ──────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.faq-item summary {
  font-weight: 700;
  font-size: var(--body);
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  margin: 0;
  padding: 0 0 1rem;
  line-height: 1.7;
  opacity: 0.8;
  font-size: 0.95rem;
}

/* ── Footer NAP ────────────────────────────────────────────── */
.footer-nap {
  font-style: normal;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.footer-nap a { text-decoration: underline; text-underline-offset: 3px; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .hero { padding: 0 5vw 6vh; }

  .hero-heading .word {display:inline;}

  .hero-text {margin-right: 0;margin-top: calc(var(--body) * 2);width:100%;}

  .hero-inner { padding-top: 14vh; grid-template-columns: 1fr; }
  .hero-visual { order: -1; }

  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacer);
    margin-top: 2.5vh;
  }
  .hero-sub { max-width: 100%; }

  .section-inner { padding: 0 5vw; }
  section { padding: 6vh 0; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-img { position: static; aspect-ratio: 4 / 5; overflow: hidden; }
  .about-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
  .about-logos { gap: 1rem; flex-wrap: wrap; }
  .services-grid { grid-template-columns: 1fr; }
  .svc-card { grid-template-columns: 1fr; }
  .svc-card:nth-child(even) .svc-img { order: 0; }
  .svc-card:nth-child(even) .svc-body { order: 0; }
  .svc-img { aspect-ratio: 16 / 9; }
  .svc-body { padding: 1.5rem; }
  .svc-number { font-size: clamp(5rem, 20vw, 8rem); top: -0.1em; right: 0; }
  .svc-stat strong { font-size: 1.3rem; }

  h2 { margin-bottom: var(--spacer); }

  .coverflow { height: clamp(280px, 70vw, 400px); }
  .c-item { width: clamp(180px, 55vw, 300px); }

  .lb-prev { left: 0.75rem; }
  .lb-next { right: 0.75rem; }
  .lb-img { max-width: 94vw; max-height: 75vh; }

  .service-panel { padding-left: 0; }

  .footer-inner { grid-template-columns: 1fr; gap: var(--spacer); }

  .site-title { padding: 0.3rem; }
  .nav-link { padding: 0.4rem; font-size: 0; gap: 0; }
  .nav-icon { width: 1.2em; height: 1.2em; font-size: 1rem; }
  .nav-cta { font-size: 0; }
}

@media (max-width: 480px) {
  .c-item { width: clamp(160px, 65vw, 260px); }
}

/* ── Contact page ────────────────────────────────────────────── */

.contact-form-section {
  background: var(--bg);
  color: var(--text-primary);
  padding: 4rem 2rem;
}
.contact-form-section .section-inner { max-width: 900px; margin: 0 auto; }
.contact-form-section a { color: var(--text-accent); }

.contact-form { display: flex; flex-direction: column; gap: 1.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; position: relative; }
.form-group label { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 2px solid var(--line);
  border-radius: 0.5rem;
  font-family: var(--font);
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-accent);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.char-count {
  position: absolute;
  right: 0.5rem;
  bottom: -1.3rem;
  font-size: 0.75rem;
  color: #999;
}

.checkbox-group { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.3rem; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border: 2px solid var(--line);
  border-radius: 2rem;
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.checkbox-label:has(input:checked) {
  border-color: var(--text-accent);
  background: rgba(91, 73, 252, 0.06);
}
.checkbox-label input { accent-color: var(--text-accent); }

.contact-submit {
  align-self: flex-start;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
}
.contact-submit:disabled { opacity: 0.6; cursor: wait; }

/* ── Thank-you page ──────────────────────────────────────────── */
.contact-hero p, .thankyou-hero p { font-size: 1.1rem; opacity: 0.85; margin-top: 0.5rem; }

.thankyou-summary {
  background: var(--bg);
  color: var(--text-primary);
  padding: 4rem 2rem;
  text-align: center;
}
.thankyou-summary .section-inner { max-width: 620px; margin: 0 auto; }

.submission-card {
  background: #f8f8fc;
  border: 2px solid var(--line);
  border-radius: var(--border-rad);
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}
.submission-card h2 { font-size: var(--h4); margin: 0 0 1.2rem; }

.submission-details { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1.2rem; margin: 0; }
.submission-details dt { font-weight: 600; color: var(--text-accent-dim); }
.submission-details dd { margin: 0; word-break: break-word; }

.thankyou-followup {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  color: #666;
}
.thankyou-followup a { color: var(--text-accent); }

@media (max-width: 800px) {
  .form-row { grid-template-columns: 1fr; }
}
