/* =========================================================
   HOME PAGE
   1. Shared  2. Hero  3. Selected Work  4. What I Do
   5. From the Blog  6. CTA
   ========================================================= */

/* ===== 1. Shared ===== */
html {
  scrollbar-gutter: stable;
}

/* Blue word + rainbow underline (light backgrounds), sits below the descenders */
.highlight {
  position: relative;
  display: inline-block;
  color: #2563eb;
}

.highlight::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.04em;
  bottom: -0.14em;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2563eb, #fbbf24, #ef4444);
}

@media (max-width: 600px) {
  .highlight::after {
    height: 3px;
  }
}
/* ===== 2. Hero (intro + card + collage) ===== */
.fv {
  position: relative;
  height: 250vh;
  background: #f8fafc;
  color: #0f172a;
}

.fv__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #f8fafc;
}

.fv__layer {
  position: absolute;
  inset: 0;
}

/* Giant words (faint outside, glass inside the photo) */
.fv__words {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.fv__row {
  overflow: hidden;
  height: 0.83em;
  line-height: 0.83;
  font-size: clamp(7rem, 14vw, 19rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform;
}

.fv__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.fv__sentence {
  padding-right: 0.35em;
}

.fv__sentence span {
  display: inline-block;
}

.fv__words--faint {
  z-index: 1;
  color: rgba(15, 23, 42, 0.06);
}

.fv__words--glass .fv__track {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-repeat: no-repeat;
}

/* Main photo: small window, full screen, then card */
.fv__visual {
  z-index: 4;
  clip-path: inset(50% 50% 50% 50% round 10px);
  will-change: clip-path;
}

.fv__media {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.fv__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: transform, opacity;
}

.fv__slide:first-child {
  opacity: 1;
}

.fv__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(10, 10, 12, 0.72) 0%, rgba(10, 10, 12, 0.25) 55%, rgba(10, 10, 12, 0.1) 100%);
}

.fv__visual .fv__words {
  z-index: 2;
}

/* Copy: dark under the photo, light on top clipped to it */
.fv__copy--dark {
  z-index: 3;
  color: #0f172a;
}

.fv__copy--light {
  z-index: 5;
  color: #fff;
}

.fv__content {
  position: absolute;
  left: 52%;
  top: 64%;
  max-width: 36rem;
}

.fv__heading {
  font-weight: 500;
  font-size: clamp(1.7rem, 2.3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.fv__lead {
  font-size: clamp(0.88rem, 0.95vw, 1rem);
  font-weight: 400;
  line-height: 1.75;
}

.fv__copy--dark .fv__lead {
  color: #475569;
}

.fv__copy--light .fv__lead {
  color: rgba(255, 255, 255, 0.82);
}

.fv__address {
  position: absolute;
  left: max(20px, calc((100vw - 1200px) / 2 + 20px));
  bottom: 10vh;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fv__copy--light .fv__address {
  color: rgba(255, 255, 255, 0.75);
}

.fv__copy--dark .fv__address {
  color: #64748b;
}

.fv-line {
  display: block;
  overflow: hidden;
}

.fv-line > span {
  display: block;
}

.fv:not(.is-ready) .fv__copy,
.fv:not(.is-ready) .fv__words,
.fv:not(.is-ready) .fv__gallery {
  visibility: hidden;
}

/* Collage */
.fv__item {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  will-change: transform;
}

.fv__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fv__gallery--back {
  z-index: 2;
}

.fv__gallery--front {
  z-index: 6;
}

.g1 { left: 10vw;   top: 35vh;   width: 20.3vw; aspect-ratio: 1.6; }
.g2 { left: 26.5vw; top: 19.8vh; width: 16.3vw; aspect-ratio: 1.6; }
.g4 { left: 55vw;   top: 47.7vh; width: 15.8vw; aspect-ratio: 1.55; }
.g5 { left: 67vw;   top: 63vh;   width: 20.3vw; aspect-ratio: 1.6; }

@media (max-width: 1023px) {
  .fv {
    height: 100vh;
  }

  .fv__gallery {
    display: none;
  }

  .fv__content {
    left: 1.25rem;
    right: 1.25rem;
    top: auto;
    bottom: 9vh;
  }

  .fv__address {
    display: none;
  }
}

/* ===== 3. Selected Work ===== */
.work-showcase {
  position: relative;
  background: white;
}

.work-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  overflow: hidden;
}

/* Left text */
.work-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 0 0 max(20px, calc((100vw - 1200px) / 2 + 20px));
  max-width: 560px;
  box-sizing: content-box;
}

.work-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.75rem;
}

.work-intro h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1e293b;
  margin-bottom: 1.25rem;
}

.work-desc {
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.work-intro .btn {
  align-self: flex-start;
}

.work-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.work-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.6rem;
}

.work-email {
  color: #1e293b;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.3s ease;
}

.work-email:hover {
  color: #2563eb;
}

.work-social {
  display: flex;
  gap: 0.75rem;
}

.work-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #1e293b;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.work-social a:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-3px);
}

.work-social a:nth-child(2):hover {
  background: #ef4444;
}

/* Right stage */
.work-stage {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding-right: 20px;
}

.work-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  height: 100%;
}

.work-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  will-change: transform;
}

.work-card {
  margin: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.work-card:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.work-browser {
  display: flex;
  gap: 6px;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  background: #1e293b;
}

.work-browser span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.work-browser span:nth-child(1) { background: #ef4444; }
.work-browser span:nth-child(2) { background: #fbbf24; }
.work-browser span:nth-child(3) { background: #10b981; }

.work-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}

.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.work-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 12px 14px;
}

.work-card figcaption strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
}

.work-card figcaption span {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Status (shows after all images pass) */
.work-status {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.work-showcase.is-done .work-status {
  opacity: 1;
  transform: translateY(0);
}

.work-status-line {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: #1e293b;
}

.work-dot {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.2);
  animation: workPulse 2s ease-in-out infinite;
}

@keyframes workPulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0.05); }
}

@media (max-width: 900px) {
  .work-showcase {
    padding: 70px 0;
  }

  .work-sticky {
    position: static;
    height: auto;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    overflow: visible;
  }

  .work-intro {
    padding: 0 20px;
    max-width: none;
  }

  .work-intro h2 {
    font-size: 2rem;
  }

  .work-stage {
    height: auto;
    overflow: visible;
    padding: 0 20px;
  }

  .work-cols {
    height: auto;
  }

  .work-col {
    transform: none !important;
  }

  .work-status {
    position: static;
    opacity: 1;
    transform: none;
    margin-top: 3rem;
  }
}

@media (max-width: 560px) {
  .work-cols {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-sticky {
    position: static;
    height: auto;
    overflow: visible;
  }

  .work-stage {
    height: auto;
  }

  .work-status {
    position: static;
    opacity: 1;
    transform: none;
    margin-top: 3rem;
  }
}

/* ===== 4. What I Do ===== */
.svc-section {
  position: relative;
  padding: 120px 0;
  background: #0f172a;
  color: #fff;
  overflow: hidden;
}

.svc-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.svc-section .container {
  position: relative;
  z-index: 1;
}

.svc-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 4rem;
}

.svc-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 0.75rem;
}

.svc-head h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

/* Rainbow word (dark background) */
.svc-accent {
  background: linear-gradient(90deg, #60a5fa, #fbbf24, #f87171);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.svc-intro {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Rows */
.svc-list {
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1.2fr 1fr 56px;
  gap: 2rem;
  align-items: center;
  padding: 2.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.svc-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, #2563eb, #fbbf24, #ef4444);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.svc-row:hover::before {
  transform: scaleX(1);
}

.svc-num {
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
}

.svc-title {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: #64748b;
  transition: color 0.4s ease, transform 0.4s ease;
}

.svc-row:hover .svc-title {
  color: #fff;
  transform: translateX(10px);
}

.svc-body p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.85rem;
}

.svc-thumb {
  display: none;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.svc-tags span {
  font-size: 0.72rem;
  font-weight: 500;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 20px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.svc-row:hover .svc-tags span {
  border-color: rgba(251, 191, 36, 0.5);
  color: #fff;
}

.svc-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

.svc-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-row:hover .svc-arrow {
  background: #2563eb;
  border-color: #2563eb;
  transform: rotate(45deg);
}

.svc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}

.svc-foot p {
  color: #94a3b8;
  font-size: 1.05rem;
}

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.svc-link span {
  transition: transform 0.3s ease;
}

.svc-link:hover {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #0f172a;
}

.svc-link:hover span {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .svc-head {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 3rem;
  }

  .svc-row {
    grid-template-columns: 50px 1fr;
    gap: 0.75rem 1rem;
    padding: 2rem 0;
  }

  .svc-title {
    color: #fff;
  }

  .svc-body {
    grid-column: 1 / -1;
  }

  .svc-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    margin: 0.5rem 0 1rem;
  }

  .svc-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .svc-section {
    padding: 80px 0;
  }

  .svc-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== 5. From the Blog ===== */
.blog-x {
  padding: 120px 0;
  background: #fff;
}

.blog-x-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-x-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.6rem;
}

.blog-x-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2563eb, #fbbf24, #ef4444);
}

.blog-x-head h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.blog-x-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 11px 22px;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.blog-x-all:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.blog-x-all svg,
.blog-x-more svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.blog-x-all:hover svg {
  transform: translateX(3px);
}

.blog-x-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-x-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-x-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  margin-bottom: 1.1rem;
}

.blog-x-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #2563eb;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-x-card:hover .blog-x-media::after {
  transform: scaleX(1);
}

.blog-x-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-x-card:hover .blog-x-img {
  transform: scale(1.05);
}

.blog-x-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #2563eb;
  margin-bottom: 0.6rem;
}

.blog-x-meta span {
  color: #cbd5e1;
}

.blog-x-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #0f172a;
  margin-bottom: 0.6rem;
  transition: color 0.3s ease;
}

.blog-x-card:hover h3 {
  color: #2563eb;
}

.blog-x-excerpt {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #64748b;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-x-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0f172a;
  border-bottom: 1px solid #0f172a;
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.blog-x-more::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #2563eb;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.blog-x-card:hover .blog-x-more {
  color: #2563eb;
  border-color: transparent;
}

.blog-x-card:hover .blog-x-more::after {
  transform: scaleX(1);
}

.blog-x-card:hover .blog-x-more svg {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .blog-x-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-x-card:nth-child(3) {
    display: none;
  }
}

@media (max-width: 600px) {
  .blog-x {
    padding: 80px 0;
  }

  .blog-x-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-x-grid {
    grid-template-columns: 1fr;
  }

  .blog-x-card:nth-child(3) {
    display: block;
  }
}

/* ===== 6. CTA ===== */
.cta-x {
  position: relative;
  padding: 140px 0 0;
  background: #f8fafc;
  overflow: hidden;
}

/* Soft blue glow behind the headline */
.cta-x::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 50%;
  width: min(900px, 90vw);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.04) 40%, rgba(248, 250, 252, 0) 70%);
  pointer-events: none;
}

.cta-x-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-x-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 8px 16px;
  margin-bottom: 2rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.cta-x-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
  animation: ctaXPulse 2s ease-in-out infinite;
}

@keyframes ctaXPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.04); }
}

.cta-x-title {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #0f172a;
  margin-bottom: 1.75rem;
}

.cta-x-title span {
  display: block;
  color: #94a3b8;
}

/* Blue word + rainbow underline (sits below the descenders) */
.cta-x-hl {
  position: relative;
  display: inline-block;
  font-style: normal;
  color: #2563eb;
}

.cta-x-hl::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.04em;
  bottom: -0.14em;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2563eb, #fbbf24, #ef4444);
}

.cta-x-text {
  max-width: 460px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 2.25rem;
}

.cta-x-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.cta-x-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 14px 26px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.cta-x-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.cta-x-btn--solid {
  background: #0f172a;
  color: #fff;
}

.cta-x-btn--solid:hover {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.cta-x-btn--solid:hover svg {
  transform: translateX(4px);
}

.cta-x-btn--ghost {
  background: #fff;
  color: #0f172a;
  border-color: #e2e8f0;
}

.cta-x-btn--ghost:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.cta-x-copy.is-copied {
  border-color: #10b981;
  color: #059669;
}

/* Outlined marquee */
.cta-x-marquee {
  position: relative;
  z-index: 1;
  margin-top: 110px;
  padding-bottom: 20px;
  overflow: hidden;
  white-space: nowrap;
}

.cta-x-track {
  display: inline-flex;
  animation: ctaXMarquee 40s linear infinite;
}

.cta-x-track span {
  padding-right: 0.4em;
  font-size: clamp(4rem, 11vw, 9.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px #cbd5e1;
}

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

@media (max-width: 600px) {
  .cta-x {
    padding-top: 100px;
  }

  .cta-x-hl::after {
    height: 3px;
  }

  .cta-x-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-x-btn {
    justify-content: center;
  }

  .cta-x-copy-label {
    font-size: 0.85rem;
  }

  .cta-x-marquee {
    margin-top: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-x-track,
  .cta-x-dot {
    animation: none;
  }
}