/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --burgundy:       #8C3346;
  --burgundy-deep:  #4E1622;
  --cream:          #F5EBE3;
  --cream-soft:     #FBF6F1;
  --gold:           #C6994F;
  --rose:           #C98D9B;
  --ink:            #2A1013;

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script:  "Parisienne", cursive;

  /* cursor-parallax offsets, updated by JS, unitless -1..1 */
  --mx: 0;
  --my: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-soft);
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 6vw;
  padding-right: 6vw;
}

.section {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0;
}

.section-head {
  max-width: 640px;
  margin: 0 0 3rem;
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.section-kicker {
  font-family: var(--font-script);
  font-size: 2.1rem;
  color: var(--burgundy);
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--burgundy-deep);
  margin: 0 0 0.75rem;
}

.section-sub {
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(42,16,19,0.75);
  margin: 0;
}

.placeholder-box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, #e7d6cd, #e7d6cd 10px, #ecdfd8 10px, #ecdfd8 20px);
  border: 1px dashed var(--burgundy);
  color: var(--burgundy-deep);
  font-size: 0.75rem;
  line-height: 1.4;
  padding: 1rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  padding: 0.85rem 1.7rem;
  background: var(--burgundy);
  color: var(--cream-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 3px;
  border: 1px solid var(--burgundy);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, translate .25s ease;
}
.btn:hover { background: var(--burgundy-deep); border-color: var(--burgundy-deep); translate: 0 -2px; }
.btn:focus-visible { outline: 2px solid var(--burgundy-deep); outline-offset: 3px; }

.btn--outline {
  background: transparent;
  color: var(--burgundy-deep);
}
.btn--outline:hover { background: var(--burgundy-deep); color: var(--cream-soft); }

.btn svg { width: 16px; height: 16px; }

/* =========================================================
   MOTION UTILITIES
   ========================================================= */

/* Generic scroll reveal: fades/slides up once, first time it's seen. */
.reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity .7s ease, translate .7s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; translate: 0 0; }

.reveal--left  { translate: -26px 0; }
.reveal--left.is-visible { translate: 0 0; }
.reveal--right { translate: 26px 0; }
.reveal--right.is-visible { translate: 0 0; }
.reveal--scale { translate: 0 0; scale: 0.94; }
.reveal--scale.is-visible { scale: 1; }

/* Hover-tilt cards: JS sets --rx/--ry as the pointer moves. */
.tilt-card {
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  translate: 0 0;
  transition: transform .15s ease-out, translate .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tilt-card:hover {
  translate: 0 -6px;
  box-shadow: 0 22px 34px -18px rgba(78,22,34,0.35);
}

/* Drifting decorative blobs, nudged further by cursor position via --mx/--my. */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: blob-drift 16s ease-in-out infinite;
  translate: calc(var(--mx) * var(--depth, 20px)) calc(var(--my) * var(--depth, 20px));
  transition: translate .5s ease-out;
}
@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(18px, -14px) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; opacity: 1 !important; translate: 0 0 !important; scale: 1 !important; }
  .tilt-card { transition: none !important; transform: none !important; }
  .blob { animation: none !important; translate: 0 0 !important; }
}

/* =========================================================
   NAV
   ========================================================= */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .3s ease, backdrop-filter .3s ease;
}
.site-nav.is-scrolled {
  background: rgba(42,16,19,0.82);
  backdrop-filter: blur(6px);
}

.site-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.site-nav__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--cream-soft);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav__toggle {
  position: relative;
  z-index: 120;
  width: 42px;
  height: 42px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(251,246,241,0.12);
  border: 1px solid rgba(251,246,241,0.3);
  border-radius: 999px;
  cursor: pointer;
}
.site-nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream-soft);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, translate .3s ease;
}
.site-nav__toggle[aria-expanded="true"] span:nth-child(1) { translate: 0 7px; rotate: 45deg; }
.site-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-nav__toggle[aria-expanded="true"] span:nth-child(3) { translate: 0 -7px; rotate: -45deg; }

.site-nav__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20,8,10,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 105;
}
.site-nav.is-open .site-nav__backdrop { opacity: 1; pointer-events: auto; }

.site-nav__menu {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(320px, 82vw);
  background: var(--burgundy-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 2rem clamp(1.6rem, 5vw, 2.6rem);
  translate: 100% 0;
  transition: translate .4s cubic-bezier(.65,0,.35,1);
  z-index: 110;
}
.site-nav.is-open .site-nav__menu { translate: 0 0; }

.site-nav__menu a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--cream-soft);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(251,246,241,0.12);
}
.site-nav__menu a:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .site-nav__menu, .site-nav__toggle span, .site-nav__backdrop { transition: none !important; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream-soft);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(78,22,34,0.55) 0%, rgba(42,16,19,0.72) 60%, rgba(42,16,19,0.85) 100%);
}

.hero__watermark {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4.5rem, 16vw, 11.5rem);
  letter-spacing: 0.04em;
  color: var(--cream-soft);
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  translate: 0 30px;
  transition: translate 1s cubic-bezier(.16,1,.3,1), opacity 1s ease;
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 6vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__intro { text-align: center; display: flex; flex-direction: column; align-items: center; }

.hero__sparkle {
  display: inline-block;
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0;
  scale: 0.4;
  rotate: -30deg;
  transition: opacity .6s ease, scale .7s cubic-bezier(.34,1.56,.64,1), rotate .7s cubic-bezier(.34,1.56,.64,1);
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--cream-soft);
  margin: 0 0 1rem;
  text-transform: uppercase;
}
.hero__name span { display: block; overflow: hidden; }
.hero__name span em {
  font-style: normal;
  display: block;
  translate: 0 105%;
  transition: translate .8s cubic-bezier(.16,1,.3,1);
}

.hero__ticker {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 1.02rem;
  margin-bottom: 1.4rem;
  min-height: 1.4em;
  opacity: 0;
  translate: 0 10px;
  transition: opacity .6s ease, translate .6s ease;
}
.hero__ticker-label { color: rgba(251,246,241,0.75); }
.hero__ticker-word {
  position: relative;
  font-weight: 600;
  color: var(--gold);
  transition: opacity .35s ease, translate .35s ease;
}
.hero__ticker-word.is-swapping { opacity: 0; translate: 0 8px; }

.hero__social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem 0.5rem 0.6rem;
  border: 1px solid rgba(251,246,241,0.35);
  border-radius: 999px;
  text-decoration: none;
  opacity: 0;
  translate: 0 10px;
  transition: opacity .6s ease, translate .6s ease;
}
.hero__social-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--cream-soft); }
.hero__social-icon svg { width: 100%; height: 100%; display: block; }
.hero__social-handle { font-size: 0.92rem; font-weight: 500; color: var(--cream-soft); }

.hero__cta {
  margin-top: 1.6rem;
  background: var(--gold);
  border-color: var(--gold);
  color: var(--burgundy-deep);
  opacity: 0;
  translate: 0 10px;
  transition: opacity .6s ease, translate .6s ease, background .25s ease;
}
.hero__cta:hover { background: var(--cream-soft); border-color: var(--cream-soft); }

.hero__role {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.hero__role-line {
  font-size: clamp(0.8rem, 1.1vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(251,246,241,0.85);
  opacity: 0;
  translate: 0 12px;
  transition: opacity .6s ease, translate .6s ease;
}
.hero__role-line--accent { color: var(--gold); }
.hero__role-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(251,246,241,0.5);
  opacity: 0;
  transition: opacity .6s ease;
}

.hero.is-loaded .hero__watermark   { opacity: 0.1; translate: 0 0; }
.hero.is-loaded .hero__sparkle     { opacity: 1; scale: 1; rotate: 0deg; transition-delay: .5s; }
.hero.is-loaded .hero__name span em { translate: 0 0; }
.hero.is-loaded .hero__name span:nth-child(1) em { transition-delay: .55s; }
.hero.is-loaded .hero__name span:nth-child(2) em { transition-delay: .68s; }
.hero.is-loaded .hero__ticker      { opacity: 1; translate: 0 0; transition-delay: .78s; }
.hero.is-loaded .hero__social      { opacity: 1; translate: 0 0; transition-delay: .9s; }
.hero.is-loaded .hero__cta         { opacity: 1; translate: 0 0; transition-delay: 1.05s; }
.hero.is-loaded .hero__role-line   { opacity: 1; translate: 0 0; }
.hero.is-loaded .hero__role-line:nth-child(1) { transition-delay: .75s; }
.hero.is-loaded .hero__role-line:nth-child(3) { transition-delay: .85s; }
.hero.is-loaded .hero__role-line:nth-child(5) { transition-delay: .95s; }
.hero.is-loaded .hero__role-dot    { opacity: 1; transition-delay: .8s; }

@media (prefers-reduced-motion: reduce) {
  .hero__watermark, .hero__sparkle, .hero__name span em, .hero__ticker, .hero__social,
  .hero__cta, .hero__role-line, .hero__role-dot {
    transition: none !important; opacity: 1 !important; translate: 0 0 !important; scale: 1 !important; rotate: 0deg !important;
  }
}

@media (max-width: 900px) {
  .hero { padding: 3rem 0; }
}


/* =========================================================
   ABOUT
   ========================================================= */
.about {
  background: var(--cream);
}
.about .blob { background: var(--rose); width: 340px; height: 340px; top: -80px; right: -100px; opacity: .3; }

.about__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.about__text p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(42,16,19,0.85);
  margin: 0 0 1.1rem;
}

.about__photo-frame {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}
.about__slideshow {
  position: relative;
  width: 320px;
  max-width: 80vw;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream-soft);
  box-shadow: 0 28px 40px -14px rgba(78,22,34,0.32);
}
.about__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.about__slide.is-active { opacity: 1; }
.about__slide-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.about__slide .placeholder-box { position: absolute; inset: 0; border-radius: 0; }

@media (prefers-reduced-motion: reduce) {
  .about__slide { transition: none !important; }
}

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .about__photo-frame { order: -1; }
}

/* =========================================================
   SERVICES
   ========================================================= */
.services { background: var(--cream-soft); }
.services .blob { background: var(--gold); width: 300px; height: 300px; bottom: -60px; left: -80px; opacity: .22; }

.services__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
}

.service-card {
  background: var(--cream);
  border: 1px solid rgba(78,22,34,0.1);
  border-radius: 10px;
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.service-card__icon {
  width: 40px;
  height: 40px;
  color: var(--burgundy);
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--burgundy-deep);
  margin: 0;
}

.service-card--has-sample { padding-bottom: 1.3rem; }
.service-card__sample-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  margin-top: -0.2rem;
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--burgundy);
  cursor: pointer;
}
.service-card__sample-btn svg { width: 13px; height: 13px; }
.service-card__sample-btn:hover { color: var(--burgundy-deep); }
.service-card__sample-btn:focus-visible { outline: 2px solid var(--burgundy-deep); outline-offset: 3px; }

/* ---- Sample popup ---- */
.sample-modal { position: fixed; inset: 0; z-index: 200; }
.sample-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,8,10,0.55);
  opacity: 0;
  transition: opacity .3s ease;
}
.sample-modal__panel {
  position: relative;
  z-index: 1;
  max-width: 640px;
  max-height: 86vh;
  overflow-y: auto;
  margin: 7vh auto 0;
  background: var(--cream-soft);
  border-radius: 16px;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  opacity: 0;
  translate: 0 16px;
  scale: 0.97;
  transition: opacity .3s ease, translate .3s ease, scale .3s ease;
}
.sample-modal.is-open .sample-modal__backdrop { opacity: 1; }
.sample-modal.is-open .sample-modal__panel { opacity: 1; translate: 0 0; scale: 1; }

.sample-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(78,22,34,0.2);
  background: var(--cream);
  color: var(--burgundy-deep);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.sample-modal__close:hover { background: var(--burgundy-deep); color: var(--cream-soft); }

.sample-modal__kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 0.3rem;
}
.sample-modal__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--burgundy-deep);
  margin: 0 0 0.7rem;
}
.sample-modal__desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(42,16,19,0.8);
  margin: 0 0 1.4rem;
}
.sample-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem;
}
.sample-modal__cell img,
.sample-modal__cell .placeholder-box {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(78,22,34,0.12);
}

@media (prefers-reduced-motion: reduce) {
  .sample-modal__backdrop, .sample-modal__panel { transition: none !important; }
}

/* =========================================================
   TOOLS
   ========================================================= */
.tools { background: var(--cream); }

.tools__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.1rem;
}

.tool-card {
  background: var(--cream-soft);
  border: 1px solid rgba(78,22,34,0.1);
  border-radius: 10px;
  padding: 1.4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}
.tool-card__logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  box-shadow: 0 6px 14px -6px rgba(78,22,34,0.25);
}
.tool-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.tool-card__label { font-size: 0.9rem; font-weight: 500; color: var(--ink); }

/* =========================================================
   SKILLS
   ========================================================= */
.skills { background: var(--cream-soft); }

.skills__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 3rem;
}

.skill-row {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(78,22,34,0.12);
}
.skill-row__top {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.skill-row__index {
  font-family: var(--font-display);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
}
.skill-row__label {
  font-weight: 500;
  color: var(--burgundy-deep);
}
.skill-row__bar {
  margin-top: 0.6rem;
  height: 2px;
  background: rgba(78,22,34,0.12);
  overflow: hidden;
}
.skill-row__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--burgundy);
  transition: width 1s cubic-bezier(.16,1,.3,1);
}
.skill-row.is-visible .skill-row__bar span { width: 100%; }

@media (max-width: 700px) {
  .skills__list { grid-template-columns: 1fr; }
}

/* =========================================================
   PORTFOLIO / CASE STUDY
   ========================================================= */
.portfolio { background: var(--cream); }
.portfolio .blob { background: var(--rose); width: 280px; height: 280px; top: 10%; right: -90px; opacity: .25; }

/* ---- Tabs ---- */
.portfolio-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  background: rgba(198,153,79,0.18);
  border-radius: 999px;
  padding: 0.35rem;
  margin-bottom: 2rem;
}
.portfolio-tabs__btn {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--burgundy-deep);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.portfolio-tabs__btn:hover { color: var(--burgundy); }
.portfolio-tabs__btn.is-active {
  background: var(--burgundy-deep);
  color: var(--cream-soft);
}

/* ---- Card shell ---- */
.case-study {
  position: relative;
  z-index: 1;
  background: var(--cream-soft);
  border-radius: 18px;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid rgba(78,22,34,0.14);
}

.case-study__tag {
  position: absolute;
  top: -14px;
  right: clamp(0.5rem, 3vw, 2.2rem);
  background: var(--burgundy-deep);
  color: var(--cream-soft);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  rotate: 4deg;
  box-shadow: 0 6px 14px rgba(78,22,34,0.25);
}

.case-study__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.3fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

/* ---- Info column ---- */
.case-study__kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 0.5rem;
}
.case-study__client {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--burgundy-deep);
  margin: 0 0 0.2rem;
}
.case-study__tagline {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--burgundy);
  margin: 0 0 0.8rem;
  line-height: 1;
}
.case-study__meta { font-size: 0.88rem; color: rgba(42,16,19,0.6); margin: 0 0 1rem; }
.case-study__desc {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(42,16,19,0.85);
  margin: 0 0 1.4rem;
}

.case-study__stats { margin: 0 0 1.4rem; }
.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed rgba(78,22,34,0.25);
}
.stat-row:first-child { padding-top: 0; }
.stat-row__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(42,16,19,0.6);
}
.stat-row__value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--burgundy-deep);
  white-space: nowrap;
}
.stat-row__before { font-size: 0.95rem; font-weight: 500; color: rgba(78,22,34,0.4); }
.stat-row__arrow { color: var(--gold); font-size: 1rem; }

.case-study__key-result {
  border-left: 3px solid var(--burgundy);
  padding: 0.9rem 1.2rem;
  font-weight: 500;
  color: var(--burgundy-deep);
  background: var(--cream);
  border-radius: 0 8px 8px 0;
  margin: 0 0 1.4rem;
}

.case-study__testimonial {
  background: var(--rose);
  background: color-mix(in srgb, var(--rose) 35%, var(--cream-soft));
  border-radius: 12px;
  padding: 1.3rem 1.4rem;
  margin: 0 0 1.4rem;
}
.case-study__testimonial p {
  margin: 0 0 0.6rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--burgundy-deep);
}
.case-study__testimonial cite {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-style: normal;
}
.case-study__testimonial--empty p {
  margin: 0;
  font-style: italic;
  color: rgba(42,16,19,0.45);
}

.case-study__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ---- Gallery column ---- */
.case-study__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.gallery-cell { border-radius: 12px; overflow: hidden; }

.gallery-cell--image { position: relative; text-align: center; }
.gallery-cell--image img,
.gallery-cell--image .placeholder-box {
  border-radius: 12px;
  border: 1px solid rgba(78,22,34,0.12);
  width: 100%;
  height: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.gallery-cell--image span {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-soft);
  background: rgba(42,16,19,0.55);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.gallery-cell--highlight,
.gallery-cell--quote {
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.2rem;
}
.gallery-cell--highlight {
  background: color-mix(in srgb, var(--gold) 30%, var(--cream-soft));
  align-items: flex-start;
}
.gallery-cell__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--burgundy-deep);
}
.gallery-cell__label { font-size: 0.85rem; color: rgba(42,16,19,0.7); margin-top: 0.3rem; }

.gallery-cell--quote {
  background: var(--burgundy-deep);
  color: var(--cream-soft);
  align-items: flex-start;
}
.gallery-cell__mark { font-family: var(--font-display); font-size: 2rem; color: var(--gold); line-height: 1; }
.gallery-cell--quote p { margin: 0.4rem 0 0; font-size: 0.98rem; line-height: 1.5; }

@media (max-width: 880px) {
  .case-study__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .case-study__gallery { grid-template-columns: repeat(2, 1fr); }
  .portfolio-tabs { display: flex; width: 100%; }
  .portfolio-tabs__btn { flex: 1 1 auto; text-align: center; padding: 0.6rem 0.6rem; font-size: 0.85rem; }
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { background: var(--cream-soft); }
.testimonials .blob { background: var(--gold); width: 260px; height: 260px; bottom: 5%; left: -100px; opacity: .2; }

.testi-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}
.testi-slider__track {
  display: flex;
  transition: transform .55s cubic-bezier(.65,0,.35,1);
}

.testi-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: clamp(1.4rem, 4vw, 2.6rem);
  align-items: center;
  background: var(--cream);
  border: 1px solid rgba(78,22,34,0.12);
  border-radius: 18px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.testi-slide__photo img,
.testi-slide__photo .placeholder-box {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(78,22,34,0.14);
}

.testi-slide__mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
  display: block;
  margin-bottom: 0.2rem;
}
.testi-slide__quote {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(42,16,19,0.88);
  margin: 0 0 1.2rem;
}
.testi-slide__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--burgundy-deep);
  margin: 0;
}
.testi-slide__role {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--burgundy);
  margin-top: 0.15rem;
}

.testi-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.8rem;
}
.testi-slider__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(78,22,34,0.2);
  background: var(--cream-soft);
  color: var(--burgundy-deep);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.testi-slider__arrow svg { width: 18px; height: 18px; }
.testi-slider__arrow:hover { background: var(--burgundy-deep); border-color: var(--burgundy-deep); color: var(--cream-soft); }
.testi-slider__arrow:focus-visible { outline: 2px solid var(--burgundy-deep); outline-offset: 2px; }

.testi-slider__dots { display: flex; align-items: center; gap: 0.5rem; }
.testi-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(78,22,34,0.25);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, width .2s ease;
}
.testi-slider__dot.is-active { background: var(--burgundy-deep); width: 22px; }

@media (max-width: 640px) {
  .testi-slide { grid-template-columns: 1fr; text-align: left; }
  .testi-slide__photo { max-width: 200px; }
}

/* =========================================================
   PRICING
   ========================================================= */
.pricing { background: var(--cream); }
.pricing .blob { background: var(--rose); width: 300px; height: 300px; top: 8%; right: -110px; opacity: .22; }

.pricing__kicker {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}

/* ---- Plan cards ---- */
.pricing__plans {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.4rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--cream-soft);
  border: 1px solid rgba(78,22,34,0.12);
  border-radius: 16px;
  padding: clamp(1.6rem, 3vw, 2.1rem);
}
.pricing-card--highlight {
  background: var(--burgundy-deep);
  border-color: var(--burgundy-deep);
  box-shadow: 0 20px 40px rgba(78,22,34,0.22);
  translate: 0 -8px;
}

.pricing-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--burgundy-deep);
  margin: 0 0 0.6rem;
}
.pricing-card--highlight .pricing-card__name { color: var(--gold); }

.pricing-card__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  color: var(--burgundy-deep);
  margin: 0 0 0.5rem;
}
.pricing-card__price span { font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; color: rgba(42,16,19,0.55); }
.pricing-card--highlight .pricing-card__price,
.pricing-card--highlight .pricing-card__price span { color: var(--cream-soft); }

.pricing-card__tagline {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(42,16,19,0.7);
  margin: 0 0 1.3rem;
}
.pricing-card--highlight .pricing-card__tagline { color: rgba(251,246,241,0.75); }

.pricing-card__features {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(42,16,19,0.85);
}
.pricing-card__features li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 0.15rem; color: var(--burgundy); }
.pricing-card--highlight .pricing-card__features li { color: rgba(251,246,241,0.9); }
.pricing-card--highlight .pricing-card__features li svg { color: var(--gold); }

.pricing-card__cta { align-self: stretch; justify-content: center; }
.pricing-card--highlight .pricing-card__cta.btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--burgundy-deep);
}
.pricing-card--highlight .pricing-card__cta.btn:hover { background: var(--cream-soft); border-color: var(--cream-soft); }

/* ---- Add-on accordions ---- */
.pricing__addons {
  max-width: 760px;
  margin: 0 auto 2.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.addon {
  background: var(--cream-soft);
  border: 1px solid rgba(78,22,34,0.12);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}
.addon summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.3rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--burgundy-deep);
}
.addon summary::-webkit-details-marker { display: none; }
.addon__icon { width: 22px; height: 22px; color: var(--burgundy); flex-shrink: 0; }
.addon__icon svg { width: 100%; height: 100%; }
.addon__title { flex: 1; }
.addon__chevron { width: 18px; height: 18px; color: var(--burgundy); transition: transform .25s ease; flex-shrink: 0; }
.addon[open] .addon__chevron { transform: rotate(180deg); }

.addon__body { padding: 0 1.3rem 1.2rem; }
.addon__list { list-style: none; margin: 0 0 0.6rem; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.addon__list li { display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.92rem; }
.addon__label { color: rgba(42,16,19,0.85); }
.addon__dots { flex: 1; border-bottom: 1px dashed rgba(78,22,34,0.25); transform: translateY(-4px); }
.addon__price { font-weight: 600; color: var(--burgundy-deep); white-space: nowrap; }
.addon__note { font-size: 0.85rem; line-height: 1.5; color: rgba(42,16,19,0.6); margin: 0; }

/* ---- Why work with us ---- */
.pricing__why {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.pricing__why h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--burgundy-deep);
  margin: 0 0 1.1rem;
}
.pricing__why-list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
}
.pricing__why-list li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.95rem; color: rgba(42,16,19,0.85); }
.pricing__why-list li svg { width: 17px; height: 17px; color: var(--burgundy); flex-shrink: 0; margin-top: 0.15rem; }
.pricing__cta-line {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--burgundy-deep);
  margin: 0 0 1.2rem;
}

@media (max-width: 640px) {
  .pricing-card--highlight { translate: 0 0; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background: var(--burgundy-deep);
  color: var(--cream-soft);
}
.contact .blob { background: var(--gold); width: 320px; height: 320px; top: -100px; left: 50%; translate: -50% 0; opacity: .18; }
.contact .blob.is-visible { }

.contact__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.contact .section-title { color: var(--cream-soft); }
.contact .section-sub { color: rgba(251,246,241,0.8); }

.contact__details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  margin: 2rem 0;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--cream-soft);
}
.contact__item svg { width: 18px; height: 18px; color: var(--gold); }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.6rem;
}
.contact .btn { background: var(--gold); color: var(--burgundy-deep); border-color: var(--gold); }
.contact .btn:hover { background: var(--cream-soft); border-color: var(--cream-soft); }
.contact .btn--outline { background: transparent; color: var(--cream-soft); border-color: rgba(251,246,241,0.4); }
.contact .btn--outline:hover { background: rgba(251,246,241,0.12); color: var(--cream-soft); }

.contact__socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.contact__social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(251,246,241,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-soft);
  transition: background .25s ease, translate .25s ease;
}
.contact__social-icon:hover { background: rgba(251,246,241,0.15); translate: 0 -3px; }
.contact__social-icon svg { width: 18px; height: 18px; }

footer.site-foot {
  text-align: center;
  padding: 1.6rem;
  font-size: 0.8rem;
  color: rgba(251,246,241,0.6);
  background: var(--burgundy-deep);
}
