/* ─── Tokens ─────────────────────────────────────── */
:root {
  --bg:          #0A0F1E;
  --bg-2:        #0F1528;
  --fg:          #ffffff;
  --fg-muted:    rgba(255,255,255,0.50);
  --fg-subtle:   rgba(255,255,255,0.28);
  --grad-a:      #FF2D78;
  --grad-b:      #7B2FBE;
  --grad:        linear-gradient(135deg, #FF2D78, #7B2FBE);
  --border:      rgba(255,255,255,0.07);
  --border-hover:rgba(255,255,255,0.14);
  --card-bg:     rgba(255,255,255,0.035);
  --header-h:    68px;
  --sans:        var(--typo-body-family);
  --serif:       var(--typo-title-family);
  --radius:      16px;
  --radius-sm:   10px;
  --section-py:  clamp(5rem, 10vw, 8rem);
  --container:   min(1100px, 100% - 3rem);
  /* Typography overrides (set via JS from admin) */
  --typo-title-family: 'Playfair Display', Georgia, serif;
  --typo-title-weight: 900;
  --typo-title-size: clamp(2rem, 4vw, 3rem);
  --typo-title-spacing: -0.02em;
  --typo-subtitle-family: 'Inter', system-ui, sans-serif;
  --typo-subtitle-weight: 600;
  --typo-subtitle-size: 0.9rem;
  --typo-subtitle-spacing: 0.04em;
  --typo-body-family: 'Inter', system-ui, sans-serif;
  --typo-body-weight: 300;
  --typo-body-size: 0.95rem;
  --typo-body-lineheight: 1.75;
}

/* ─── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--typo-body-family);
  font-weight: var(--typo-body-weight);
  font-size: var(--typo-body-size);
  line-height: var(--typo-body-lineheight);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--sans); cursor: pointer; }

/* ─── Enhanced Scroll-reveal (blur/scale variants) ── */
.reveal-blur { opacity: 0; transform: none; transition: opacity .65s ease, filter .65s ease; filter: blur(8px); }
.reveal-blur.is-visible { opacity: 1; filter: blur(0); }
.reveal-scale { opacity: 0; transform: scale(.92); transition: opacity .65s ease, transform .65s ease; }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }
.reveal-fade { opacity: 0; transform: none; transition: opacity .65s ease; }
.reveal-fade.is-visible { opacity: 1; }

/* Disable all animations via toggle */
html.no-animations .reveal,
html.no-animations .reveal-blur,
html.no-animations .reveal-scale,
html.no-animations .reveal-fade { opacity: 1 !important; transform: none !important; filter: none !important; }

/* ─── Header ─────────────────────────────────────── */
.ms-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background .35s, box-shadow .35s, border-color .35s;
}
.ms-header.is-scrolled {
  background: rgba(10,15,30,.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(255,255,255,.04);
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 12px 40px rgba(0,0,0,.5);
}
.ms-header__progress {
  position: absolute;
  bottom: -1px; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b), #00D4FF);
  transition: width .08s linear;
  pointer-events: none;
}
.ms-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.ms-nav__link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: .45rem .9rem;
  font-family: var(--typo-subtitle-family);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--fg-muted);
  text-decoration: none;
  border-radius: 8px;
  letter-spacing: .01em;
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.ms-nav__link:hover { color: var(--fg); background: rgba(255,255,255,.06); }
.ms-nav__link:focus-visible { outline: 2px solid rgba(255,45,120,.6); outline-offset: 2px; }
.ms-nav__link.is-active { color: var(--fg); }
.ms-nav__link.is-active::after {
  content: '';
  display: block;
  margin-top: 4px;
  width: 16px; height: 2px;
  border-radius: 1px;
  background: var(--grad);
}
.ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72rem 2rem;
  font-family: var(--typo-subtitle-family);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: opacity .18s, transform .18s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.ms-btn::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--grad);
  opacity: 0;
  z-index: -1;
  filter: blur(12px);
  transition: opacity .3s;
}
.ms-btn:hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(255,45,120,.4), 0 0 60px rgba(123,47,190,.25);
}
.ms-btn:hover::after { opacity: .6; }
.ms-btn:active { transform: scale(.97); }
.ms-btn:focus-visible { outline: 2px solid rgba(255,45,120,.7); outline-offset: 3px; }
.ms-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .18s;
}
.ms-hamburger:hover { border-color: rgba(255,255,255,.22); }
.ms-hamburger:focus-visible { outline: 2px solid rgba(255,45,120,.6); outline-offset: 2px; }
.ms-hamburger span {
  display: block;
  width: 100%; height: 1.5px;
  background: rgba(255,255,255,.75);
  border-radius: 1px;
  transition: transform .22s, opacity .18s;
  transform-origin: center;
}
.ms-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ms-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ms-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.ms-mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  z-index: 9998;
  background: rgba(8,12,24,.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 1rem 1.5rem 1.75rem;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .22s, transform .22s;
  pointer-events: none;
}
.ms-mobile-menu.is-animating { display: flex; }
.ms-mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ms-mobile-menu__link {
  display: block;
  padding: .8rem .5rem;
  font-size: 15px;
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color .15s, padding-left .15s;
}
.ms-mobile-menu__link:last-of-type { border-bottom: none; }
.ms-mobile-menu__link:hover { color: var(--fg); padding-left: .85rem; }
.ms-mobile-menu__link.is-active { color: var(--fg); font-weight: 500; }
.ms-mobile-menu__cta {
  display: block;
  margin-top: 1.1rem;
  padding: .85rem;
  text-align: center;
  background: var(--grad);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #fff !important;
  text-decoration: none;
  transition: opacity .18s;
}
.ms-mobile-menu__cta:hover { opacity: .88; }
.ms-status {
  font-family: var(--typo-subtitle-family);
  font-size: .72rem;
  font-weight: 500;
  color: #4CAF50;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.ms-status::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4CAF50;
  box-shadow: 0 0 6px rgba(76,175,80,.5);
  animation: ms-status-pulse 2s ease-in-out infinite;
}
@keyframes ms-status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
@media (min-width: 641px) {
  .ms-hamburger { display: none !important; }
  .ms-nav { display: flex; }
}
@media (max-width: 640px) {
  .ms-nav { display: none; }
  .ms-hamburger { display: flex; }
  .ms-header__right .ms-btn { display: none; }
  .ms-status { display: none; }
}

/* ─── Shared section utilities ───────────────────── */
.section {
  padding: var(--section-py) 0;
  position: relative;
}
.section--alt { background: var(--bg-2); }
.container { width: var(--container); margin-inline: auto; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--typo-subtitle-family);
  font-size: var(--typo-subtitle-size);
  font-weight: var(--typo-subtitle-weight);
  letter-spacing: var(--typo-subtitle-spacing);
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 22px; height: 2px;
  border-radius: 1px;
  background: var(--grad);
  flex-shrink: 0;
}

.section-heading {
  font-family: var(--typo-title-family);
  font-size: var(--typo-title-size);
  font-weight: var(--typo-title-weight);
  line-height: 1.1;
  letter-spacing: var(--typo-title-spacing);
  color: var(--fg);
}
.section-heading span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-lead {
  font-size: var(--typo-body-size);
  font-weight: var(--typo-body-weight);
  line-height: var(--typo-body-lineheight);
  color: var(--fg-muted);
  max-width: 54ch;
}

/* ─── Scroll-reveal ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ─── ABOUT ──────────────────────────────────────── */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about-image-wrap { position: relative; }
.about-image-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-2);
}
.about-image-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--grad);
  z-index: -1;
}
.about-image-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-image-frame .img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: var(--fg-subtle);
  font-size: 13px;
  letter-spacing: .04em;
}
.about-image-frame .img-placeholder svg {
  width: 48px; height: 48px;
  opacity: .3;
}
.about-exp-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: rgba(10,15,30,.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.about-exp-badge__num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.about-exp-badge__text {
  font-size: .75rem;
  color: var(--fg-muted);
  line-height: 1.4;
}
.about-content { display: flex; flex-direction: column; gap: 1.75rem; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: .5rem;
}
.about-stat {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1rem;
  text-align: center;
}
.about-stat__num {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: .3rem;
}
.about-stat__label {
  font-size: .72rem;
  color: var(--fg-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .38rem .85rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: border-color .18s, color .18s;
}
.skill-pill:hover { border-color: var(--border-hover); color: var(--fg); }
.skill-pill::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  #about .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { max-width: 380px; margin-inline: auto; }
  .about-exp-badge { bottom: -12px; right: -8px; }
}
@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
}

/* ─── PORTFOLIO (Redesigned) ─────────────────────── */
#portfolio .portfolio-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.portfolio-filter {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: .38rem .9rem;
  font-family: var(--typo-subtitle-family);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color .18s, border-color .18s, background .18s;
}
.filter-btn:hover { color: var(--fg); border-color: var(--border-hover); }
.filter-btn.is-active {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.25rem;
}
.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: border-color .22s, transform .22s, box-shadow .22s;
}
.portfolio-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.portfolio-item:hover img {
  transform: scale(1.06);
}
.portfolio-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
}
.portfolio-item__placeholder svg {
  width: 48px;
  height: 48px;
  opacity: .15;
}

/* ─── Lightbox ───────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(.92);
  transition: transform .35s ease;
}
.lightbox.is-open .lightbox__inner {
  transform: scale(1);
}
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  background: var(--bg-2);
}
.lightbox__img.is-loading {
  opacity: 0;
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
}
.lightbox__spinner {
  position: absolute;
  top: 50%; left: 50%;
  width: 48px; height: 48px;
  margin: -24px 0 0 -24px;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--grad-a);
  border-radius: 50%;
  animation: lb-spin .7s linear infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.lightbox__spinner.is-visible { opacity: 1; }
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s, transform .15s;
}
.lightbox__close:hover {
  background: rgba(255,255,255,.18);
  transform: scale(1.08);
}
.lightbox__close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s, transform .15s;
}
.lightbox__nav:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-50%) scale(1.08);
}
.lightbox__nav--prev { left: -56px; }
.lightbox__nav--next { right: -56px; }
.lightbox__nav svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.lightbox__counter {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--fg-subtle);
  font-weight: 400;
  letter-spacing: .04em;
  user-select: none;
}
.lightbox__caption {
  position: absolute;
  bottom: -56px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 500;
  text-align: center;
  max-width: 80vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: none;
}

@media (max-width: 768px) {
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__nav {
    width: 36px;
    height: 36px;
  }
  .lightbox__close {
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,.5);
    border-color: rgba(255,255,255,.2);
  }
  .lightbox__inner {
    max-width: 96vw;
  }
  .lightbox__img {
    max-width: 96vw;
    max-height: 75vh;
  }
  .lightbox__counter {
    bottom: -28px;
    font-size: 11px;
  }
  .lightbox__caption {
    bottom: -46px;
    font-size: 12px;
  }
}

/* ─── SERVICES ───────────────────────────────────── */
#services .services-intro {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .22s, transform .22s, background .22s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s;
}
.service-card:hover {
  border-color: rgba(255,45,120,.35);
  transform: translateY(-4px);
  background: rgba(255,255,255,.055);
}
.service-card:hover::before { opacity: .04; }
.service-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,45,120,.1);
  border: 1px solid rgba(255,45,120,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.service-card__icon svg {
  width: 22px; height: 22px;
  stroke: var(--grad-a);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card__title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  position: relative;
  z-index: 1;
}
.service-card__desc {
  font-size: .875rem;
  color: var(--fg-muted);
  line-height: 1.7;
  flex: 1;
  position: relative;
  z-index: 1;
}
.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  position: relative;
  z-index: 1;
}
.service-tag {
  font-family: var(--typo-subtitle-family);
  font-size: .7rem;
  font-weight: 500;
  color: var(--fg-subtle);
  background: rgba(255,255,255,.055);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .22rem .65rem;
  letter-spacing: .03em;
}

/* ─── TESTIMONIALS ─────────────────────────────────── */
#testimonials .testimonials-intro {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.25rem;
}
.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .85rem;
  transition: border-color .22s, transform .22s;
}
.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--grad);
  flex-shrink: 0;
}
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}
.testimonial-stars {
  display: flex;
  gap: 2px;
}
.testimonial-star {
  width: 16px;
  height: 16px;
  fill: #FFD43B;
  stroke: none;
}
.testimonial-text {
  font-size: .9rem;
  color: var(--fg-muted);
  line-height: 1.7;
  font-style: italic;
}
.testimonial-text::before { content: '\201C'; }
.testimonial-text::after { content: '\201D'; }
.testimonial-author {
  font-size: .9rem;
  font-weight: 600;
  color: var(--fg);
  margin-top: auto;
}
.testimonial-role {
  font-size: .75rem;
  color: var(--fg-subtle);
  letter-spacing: .03em;
}

/* ─── CONTACT ────────────────────────────────────── */
#contact .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-info__heading {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.contact-info__heading span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact-info__body {
  font-size: .95rem;
  color: var(--fg-muted);
  line-height: 1.75;
}
.contact-channels { display: flex; flex-direction: column; gap: .75rem; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color .18s, background .18s;
}
.contact-channel:hover { border-color: var(--border-hover); background: rgba(255,255,255,.055); }
.contact-channel__icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(255,45,120,.1);
  border: 1px solid rgba(255,45,120,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-channel__icon svg {
  width: 17px; height: 17px;
  stroke: var(--grad-a);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-channel__label { font-size: .7rem; color: var(--fg-subtle); letter-spacing: .04em; text-transform: uppercase; }
.contact-channel__value { font-size: .9rem; color: var(--fg); font-weight: 500; margin-top: 2px; }
.contact-channel__arrow {
  margin-left: auto;
  width: 20px; height: 20px;
  color: var(--fg-subtle);
  flex-shrink: 0;
}

/* Form */
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { display: flex; flex-direction: column; gap: .5rem; }
.form-label {
  font-family: var(--typo-subtitle-family);
  font-size: .78rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: .03em;
}
.form-input,
.form-textarea {
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--fg);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  width: 100%;
  transition: border-color .18s, background .18s;
  outline: none;
  -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--fg-subtle); }
.form-input:focus, .form-textarea:focus {
  border-color: rgba(255,45,120,.5);
  background: rgba(255,255,255,.06);
}
.form-textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 2rem;
  font-size: .95rem;
  font-weight: 500;
  color: #fff;
  background: var(--grad);
  border: none;
  border-radius: 999px;
  width: 100%;
  transition: opacity .18s, transform .15s, box-shadow .18s;
}
.form-submit:hover { opacity: .88; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,45,120,.3); }
.form-submit:active { transform: scale(.98); }
.form-submit svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s;
}
.form-submit:hover svg { transform: translateX(3px); }

/* ─── Calendly ──────────────────────────────────── */
.calendly-btn-wrap {
  margin-top: 1rem;
}
.calendly-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .75rem 1.6rem;
  font-size: .85rem;
  font-weight: 500;
  color: #fff;
  background: transparent;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .15s;
}
.calendly-btn:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--grad-a);
  transform: translateY(-2px);
}
.calendly-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.calendly-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.calendly-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.calendly-modal__inner {
  position: relative;
  width: min(700px, 94vw);
  height: min(600px, 85vh);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  transform: scale(.92) translateY(20px);
  transition: transform .35s ease;
}
@media (max-width: 640px) {
  .calendly-modal__inner { width: 100vw; height: 100vh; border-radius: 0; }
  .calendly-modal__close {
    top: max(12px, env(safe-area-inset-top, 12px));
    left: max(12px, env(safe-area-inset-left, 12px));
    right: auto;
    width: 44px; height: 44px;
  }
  .calendly-modal__close svg { width: 22px; height: 22px; }
  .calendly-placeholder { padding: 1.5rem; }
  .calendly-placeholder h3 { font-size: 1rem !important; }
  .calendly-placeholder p { font-size: .82rem; }
}
.calendly-modal.is-open .calendly-modal__inner {
  transform: scale(1) translateY(0);
}
.calendly-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.08);
  border: none;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s;
}
.calendly-modal__close:hover {
  background: rgba(0,0,0,.15);
}
.calendly-modal__close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.calendly-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.calendly-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
  color: #333;
  text-align: center;
  padding: 2rem;
}
.calendly-placeholder p {
  max-width: 400px;
  line-height: 1.6;
  font-size: .95rem;
  color: #666;
}

@media (max-width: 900px) {
  #contact .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ─── Responsive polish ──────────────────────────── */
@media (max-width: 768px) {
  .section-heading { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .section-eyebrow { font-size: .7rem; letter-spacing: .18em; }
  .service-card { padding: 1.5rem 1.25rem; }
  .testimonial-card { padding: 1.5rem 1.25rem; }
  .portfolio-filter { flex-wrap: wrap; gap: .4rem; }
  .filter-btn { font-size: .75rem; padding: .35rem .85rem; }
}
@media (max-width: 480px) {
  .section { --section-py: 3.5rem; }
  .container { --container: min(1100px, 100% - 1.5rem); }
  .contact-channels { gap: .5rem; }
  .contact-channel { font-size: .8rem; padding: .55rem .9rem; }
  .footer-socials { gap: .4rem; }
  .footer-social { width: 30px; height: 30px; }
  .footer-social svg { width: 13px; height: 13px; }
}

/* ─── Footer ─────────────────────────────────────── */
.site-footer {
  padding: 2.5rem clamp(1.25rem, 5vw, 3rem);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: .8rem;
  color: var(--fg-subtle);
}
.footer-socials {
  display: flex;
  gap: .6rem;
}
.footer-social {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color .18s, background .18s;
}
.footer-social:hover { border-color: var(--border-hover); background: var(--card-bg); }
.footer-social svg {
  width: 15px; height: 15px;
  stroke: var(--fg-muted);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.no-animations *,
html.no-animations *::before,
html.no-animations *::after {
  transition: none !important;
  animation: none !important;
}

/* ─── Accessibility ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
