.twi-ct {
  background-color: var(--ct-bg, #0F1E2B);
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ct-heading, #FFFFFF);
  padding: 72px 24px;
}
.twi-ct *, .twi-ct *::before, .twi-ct *::after { box-sizing: border-box; }

.twi-ct-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 40px;
}

.twi-ct-copy { display: flex; flex-direction: column; gap: 20px; flex: 1 1 520px; }
.twi-ct-mono { font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.twi-ct-h2 {
  color:#ffffff;
  margin: 0;
  font-size: 44px; line-height: 1.08; font-weight: 900; letter-spacing: -.02em;
  overflow-wrap: normal; word-break: normal; hyphens: none;
}
.twi-ct-sub { margin: 0; font-size: 19px; color: var(--ct-body, #DBE5EC); }

.twi-ct-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.twi-ct-cta {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  background: var(--ct-accent, #D1035A); color: #fff;
  font-weight: 800; font-size: 18px; text-decoration: none;
  border-radius: 6px;
  transition: transform .2s ease, box-shadow .2s ease;
}
/* Background and colour pinned as well as the lift - a theme's global
   button:hover would otherwise repaint this. */
.twi-ct-cta:hover,
.twi-ct-cta:focus {
  background: var(--ct-accent, #D1035A) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--ct-accent) 35%, transparent);
}
.twi-ct-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.twi-ct-cta--shine::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  animation: twiCtShine 3.6s ease-in-out infinite;
}

.twi-ct-detail { font-size: 13px; letter-spacing: .08em; color: var(--ct-muted, #9FB3C2); }

/* ---------- stamp ---------- */
.twi-ct-stamp {
  rotate: var(--ct-stamp-rot, -12deg);
  border: 5px solid var(--ct-accent, #D1035A);
  border-radius: 10px;
  padding: 16px 26px;
  background: var(--ct-stamp-bg, #FFFFFF);
  color: var(--ct-accent, #D1035A);
  text-align: center;
  box-shadow: 0 16px 32px rgba(0,0,0,.35);
  /* Base animation runs on load. The @supports block below replaces it with
     a scroll-driven one where that is available - unlike the reveal helper,
     the stamp always animates rather than appearing statically. */
  animation: twiCtStamp .7s cubic-bezier(.2,.8,.3,1) both;
}
.twi-ct-stamp-kicker { font-size: 13px; font-weight: 600; letter-spacing: .24em; }
.twi-ct-stamp-word { font-weight: 900; font-size: 44px; letter-spacing: .06em; line-height: 1; }

@keyframes twiCtShine { 0% { left: -60%; } 60%,100% { left: 130%; } }
@keyframes twiCtStamp {
  0% { opacity: 0; scale: 2.4; }
  55% { opacity: 1; scale: .92; }
  75% { scale: 1.04; }
  100% { opacity: 1; scale: 1; }
}

@supports (animation-timeline: view()) {
  .twi-ct-stamp {
    animation: twiCtStamp linear both;
    animation-timeline: view();
    animation-range: entry 30% cover 45%;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .twi-ct { padding: 56px 20px; }
  .twi-ct-h2 { font-size: clamp(29px, 5.6vw, 44px); }
  .twi-ct-inner { gap: 32px; }
  .twi-ct-stamp { padding: 14px 22px; }
  .twi-ct-stamp-word { font-size: 36px; }
}
@media (max-width: 560px) {
  .twi-ct-sub { font-size: 17.5px; }
  .twi-ct-cta { width: 100%; justify-content: center; }
  /* The flex row puts the stamp below the copy once wrapped; centring it
     stops it sitting hard against the left edge with its rotation
     overhanging the viewport. */
  .twi-ct-inner { justify-content: center; }
  .twi-ct-stamp { align-self: center; }
  .twi-ct-stamp-word { font-size: 32px; }
  .twi-ct-detail { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .twi-ct *, .twi-ct *::after { animation: none !important; transition: none !important; }
  /* Without the stamp animation running, its `both` fill would leave it at
     the 0% keyframe - invisible and at 2.4x. Reset it to the resting state. */
  .twi-ct-stamp { opacity: 1 !important; scale: 1 !important; }
}
