:root {
  --black: #0d0d0d;
  --gray-700: #4b4b4b;
  --gray-500: #8a8a8a;
  --gray-300: #c9c9c9;
  --gray-100: #eeeeee;
  --white: #ffffff;
  --bg: #f5f5f5;
  --accent: #d0c8ff;
  --accent-ink: #0d0d0d;
  --accent-tint: #e3e0f5;
  --max: 1800px;
  --pad: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--black);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--pad) 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}

.logo-mark {
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  color: var(--black);
  flex-shrink: 0;
}

.logo-first {
  font-weight: 700;
}

.logo-last {
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.nav-links a {
  color: var(--black);
  transition: opacity 0.15s ease;
}

.nav-links a:hover { opacity: 0.55; }

.nav-links .cv-link {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 8px 18px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-links .cv-link:hover {
  background: #c2b6ff;
  opacity: 1;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--black);
  cursor: pointer;
  padding: 8px 4px;
}

.menu-toggle .icon-close { display: none; }

.menu-toggle.open .icon-menu { display: none; }

.menu-toggle.open .icon-close { display: block; }

.menu-toggle.open .menu-toggle-label { display: none; }

/* Hero */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--pad) 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name   photo"
    "main   photo"
    "brands brands";
  column-gap: 48px;
  row-gap: 16px;
}

.hero-name {
  grid-area: name;
  align-self: end;
  color: var(--gray-700);
  font-size: 15px;
}

.hero-text {
  grid-area: main;
  align-self: start;
  max-width: 760px;
}

.hero-photo {
  grid-area: photo;
  width: 240px;
  height: 290px;
  border-radius: 24px;
  background: var(--gray-100);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(13, 13, 13, 0.1);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  color: var(--gray-700);
  font-size: 15px;
}

h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.cta-button:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.cta-button:hover {
  background: #c2b6ff;
  transform: translateY(-1px);
}

.cta-button--secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--gray-500);
}

.cta-button--secondary:hover {
  background: var(--gray-100);
  border-color: var(--black);
  transform: translateY(-1px);
}

.brands {
  grid-area: brands;
  padding-top: 40px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.brands-label {
  color: var(--gray-700);
  font-size: 14px;
  white-space: nowrap;
  padding-top: 4px;
}

.brands-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.brands-row a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.brands-row img {
  height: 24px;
  width: auto;
  color: var(--gray-700);
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.brands-row a:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.brand-desc {
  font-size: 12px;
  color: var(--gray-500);
  white-space: nowrap;
}

/* Sections */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--pad);
  border-top: 1px solid var(--gray-100);
}

.section-head {
  margin-bottom: 32px;
}

.about-title {
  max-width: 760px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0 0 16px;
}

.about-desc {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  margin: 0 0 14px;
}

.about-desc:last-child { margin-bottom: 0; }

.text-link {
  color: var(--gray-500);
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.text-link:hover {
  color: var(--black);
  border-color: var(--gray-300);
}

/* Work grid */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-100);
}

.work-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tile);
  background-size: cover;
  background-position: center;
  transition: transform 280ms ease-out;
}

.work-card--static { cursor: default; }

/* Cover zoom — only on real case-study links, and only for pointers that
   actually hover (keeps touch from getting a stuck zoomed state). */
@media (hover: hover) and (pointer: fine) {
  a.work-card:hover .work-thumb::before {
    transform: scale(1.03);
  }
}

/* "Explore case" label — bottom-right of the cover, real links only */
.work-explore {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 280ms ease-out, transform 280ms ease-out;
  pointer-events: none;
}

a.work-card:hover .work-explore,
a.work-card:focus-visible .work-explore {
  opacity: 1;
  transform: translateY(0);
}

/* Cursor-follow: once real mouse movement is detected over a cover
   (script.js), the label tracks the pointer instead of sitting in the
   corner. Keyboard focus and touch never get this class, so they keep
   the fixed-corner position above. */
.work-thumb.js-follow .work-explore,
a.work-card:hover .work-thumb.js-follow .work-explore,
a.work-card:focus-visible .work-thumb.js-follow .work-explore {
  right: auto;
  bottom: auto;
  left: 0;
  top: 0;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: opacity 280ms ease-out, transform 120ms ease-out;
}

a.work-card:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Touch / no-hover: keep the label visible, no zoom to disable explicitly
   (the hover:hover guard above already excludes these pointers). */
@media (hover: none) {
  .work-explore {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-thumb::before,
  .work-explore {
    transition: none;
  }

  a.work-card:hover .work-thumb::before {
    transform: none;
  }
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 15px;
}

.work-title { font-weight: 500; }
.work-tag { color: var(--gray-700); font-size: 14px; }

.work-desc {
  margin: 10px 0 0;
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.55;
}

.work-soon-label {
  display: block;
  margin-top: 10px;
  color: var(--gray-700);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.work-highlight {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--accent-tint);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Experience */

.exp-entry {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--gray-100);
}

.exp-entry:last-of-type { padding-bottom: 0; }

.exp-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  container-type: inline-size;
}

.exp-company {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-700);
  font-size: 15px;
}

.exp-company .exp-link {
  min-width: 0;
}

.exp-dates {
  color: var(--gray-700);
  font-size: 14px;
}

.exp-tag {
  display: inline-block;
  align-self: flex-start;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 12px;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Ebdaa's tag has two full-text alternatives so the switch between them
   is a clean swap, never an intermediate composite string. */
.exp-tag-short { display: none; }

@container (max-width: 320px) {
  .exp-tag-full { display: none; }
  .exp-tag-short { display: inline; }
}

.exp-role {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
}

.exp-link {
  border-bottom: 2px solid var(--accent);
  transition: opacity 0.15s ease;
}

.exp-link:hover {
  opacity: 0.6;
}

.exp-link--static {
  cursor: default;
  border-bottom-color: var(--gray-300);
}

.exp-link--static:hover { opacity: 1; }

.exp-bullets {
  margin: 0 0 0 auto;
  padding-left: 18px;
  max-width: 600px;
  color: var(--gray-700);
  line-height: 1.65;
  font-size: 16px;
}

.exp-bullets li { margin-bottom: 10px; }
.exp-bullets li:last-child { margin-bottom: 0; }

.exp-earlier {
  margin: 24px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.7;
}

.exp-earlier strong {
  color: var(--gray-700);
  font-weight: 500;
}

/* Achievements */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.stats-row:has(+ .strength-row[hidden]) {
  margin-bottom: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.stat-label {
  color: var(--gray-700);
  font-size: 14px;
}

.strength-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--gray-100);
}

.strength-row[hidden] { display: none; }

.strength-row:last-child { padding-bottom: 0; }

.strength-index {
  color: var(--gray-700);
  font-size: 15px;
}

.strength-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 500;
}

.strength-body p {
  margin: 0;
  max-width: 620px;
  color: var(--gray-700);
  line-height: 1.6;
  font-size: 16px;
}

/* Testimonials */

.testimonials-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 48px;
}

.title-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.testimonial-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
}

.carousel-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.carousel-arrow:hover {
  background: #c2b6ff;
  transform: translateY(-2px);
}

.testimonial-stack {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  max-width: 380px;
  overflow: hidden;
  background: #e6e5ec;
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 24px 48px rgba(13, 13, 13, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.2s ease;
}

.testimonial-card.role-active {
  opacity: 1;
  transform: none;
  z-index: 3;
}

.testimonial-card.role-prev {
  background: #f2f1f6;
  opacity: 0.5;
  transform: translateX(-56px) rotate(-6deg);
  z-index: 1;
}

.testimonial-card.role-next {
  background: #f2f1f6;
  opacity: 0.5;
  transform: translateX(56px) rotate(6deg);
  z-index: 1;
}

.testimonial-card.is-switching {
  opacity: 0;
}

.testimonial-quote {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray-700);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-100);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  display: block;
  font-weight: 600;
  font-size: 15px;
}

.testimonial-role {
  display: block;
  font-size: 14px;
  color: var(--gray-500);
}

/* Mobile / tablet testimonial strip */

.testimonial-mobile-strip {
  display: none;
}

/* Contact page form */

.contact-page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--pad) 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
}

.contact-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.to-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--gray-500);
}

.to-chip {
  display: inline-block;
  background: var(--accent-tint);
  color: var(--black);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 15px;
  transition: background 0.15s ease;
}

.to-chip:hover {
  background: var(--accent);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 15px;
  color: var(--gray-700);
}

.form-field input,
.form-field textarea {
  border: none;
  border-bottom: 1px solid var(--gray-300);
  background: transparent;
  font-family: inherit;
  font-size: 18px;
  color: var(--black);
  padding: 4px 0 10px;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--gray-300);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--black);
}

.form-hint {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--gray-700);
}

.form-status {
  font-size: 14px;
  color: var(--gray-500);
  min-height: 18px;
}

/* Title marquee (page-name ticker under header) */

.title-marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0 32px;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.title-marquee .marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  animation: marquee-left 28s linear infinite;
}

.title-marquee .marquee-track span {
  font-size: clamp(40px, 9vw, 114px);
  font-weight: 400;
  color: var(--black);
}

.title-marquee .marquee-track .mark {
  color: var(--accent);
}

/* Outro marquee ("Let's work together" band above the footer panel) */

.outro-marquee {
  overflow: hidden;
  white-space: nowrap;
  max-width: var(--max);
  margin: 0 auto;
  padding: 6px 0;
}

.outro-marquee .marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  animation: marquee-left 40s linear infinite;
}

.outro-marquee.reverse .marquee-track {
  animation-name: marquee-right;
}

.outro-marquee .marquee-track span {
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 400;
  color: var(--black);
}

.outro-marquee .marquee-track .mark {
  color: var(--accent);
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Footer */

.footer-panel {
  position: relative;
  background: var(--black);
  border-radius: 24px;
  max-width: var(--max);
  margin: 24px auto 0;
  padding: 96px var(--pad) 28px;
  color: var(--bg);
}

.back-to-top {
  position: absolute;
  top: -22px;
  left: 32px;
  width: 44px;
  height: 100px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.15s ease;
}

.back-to-top:hover { transform: translateY(-3px); }

.footer-socials {
  position: absolute;
  top: -18px;
  right: 32px;
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.footer-socials a:hover { transform: translateY(-3px); }

.footer-socials svg { width: 18px; height: 18px; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
}

.footer-label {
  font-size: 14px;
  color: rgba(245, 245, 245, 0.6);
}

.footer-email {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--bg);
}

.footer-asterisk {
  position: absolute;
  right: 40px;
  bottom: 16px;
  font-size: 150px;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 245, 245, 0.14);
  position: relative;
}

.footer-links,
.footer-domains {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-links a { color: var(--bg); transition: opacity 0.15s ease; }
.footer-links a:hover { opacity: 0.6; }
.footer-domains span { color: rgba(245, 245, 245, 0.6); }

.footer-copyright {
  font-size: 13px;
  color: rgba(245, 245, 245, 0.5);
}

/* Scroll reveal */

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .title-marquee .marquee-track,
  .outro-marquee .marquee-track {
    animation: none;
  }
}

/* Responsive */

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: var(--black);
    padding: 0;
    z-index: 90;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 0;
    width: auto;
    border-bottom: none;
    color: var(--white);
    font-size: 30px;
    font-weight: 500;
  }

  .nav-links a:hover { opacity: 0.6; }

  .nav-links .cv-link {
    background: none;
    color: var(--white);
    padding: 0;
    border-radius: 0;
    font-size: 30px;
    font-weight: 500;
  }

  .nav-links .cv-link:hover {
    background: none;
    opacity: 0.6;
    transform: none;
  }

  .menu-toggle { display: flex; position: relative; z-index: 95; }

  .logo { position: relative; z-index: 95; }

  .site-header { position: relative; z-index: 100; }

  .site-header.nav-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .site-header.nav-open .logo-mark,
  .site-header.nav-open .logo-first,
  .site-header.nav-open .logo-last,
  .site-header.nav-open .menu-toggle { color: var(--white); }

  .hero {
    padding-top: 20px;
    padding-bottom: 40px;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "photo name"
      "main  main"
      "brands brands";
    column-gap: 14px;
    row-gap: 20px;
    align-items: center;
  }

  .hero-name { align-self: auto; }

  .hero-photo {
    width: 68px;
    height: 68px;
    border-radius: 16px;
  }

  .stats-row { grid-template-columns: 1fr 1fr; }

  .strength-row { grid-template-columns: 1fr; gap: 10px; }

  .exp-entry { grid-template-columns: 1fr; gap: 10px; }

  .exp-bullets { margin-left: 0; max-width: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 20px; }

  .footer-asterisk { font-size: 100px; right: 24px; }

  .testimonial-carousel { display: none; }

  .testimonial-mobile-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px var(--pad) 16px;
    margin: 0 calc(var(--pad) * -1);
  }

  .testimonial-mobile-strip::-webkit-scrollbar { display: none; }

  .mobile-testimonial-card {
    position: relative;
    flex: 0 0 82%;
    scroll-snap-align: center;
    background: var(--accent-tint);
    border-radius: 20px;
    padding: 36px 28px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-height: 260px;
    overflow: hidden;
  }

  .mobile-testimonial-card:first-child { margin-left: var(--pad); }
  .mobile-testimonial-card:last-child { margin-right: var(--pad); }

  .mobile-quote {
    margin-top: 12px;
    -webkit-line-clamp: unset;
  }
}

@media (max-width: 560px) {
  :root { --pad: 20px; }

  .work-grid { grid-template-columns: 1fr; }

  .stats-row { grid-template-columns: 1fr 1fr; }

  .back-to-top { width: 36px; height: 72px; top: -16px; left: 20px; }

  .footer-socials { top: -14px; right: 20px; }
  .footer-socials a { width: 34px; height: 34px; }

  .footer-panel { padding-top: 68px; }

  .footer-asterisk { display: none; }

  .footer-bottom { margin-top: 40px; }

  .mobile-testimonial-card { flex-basis: 88%; min-height: 240px; }
}
