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

.twi-se-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 48px; align-items: center;
}

.twi-se-mono { font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------- media ---------- */
.twi-se-media { position: relative; }
.twi-se-media img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }

.twi-se-badge {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--se-accent, #D1035A);
  border-radius: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  color: #fff;
}
.twi-se-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  animation: twiSePulseW 1.8s ease-out infinite;
}

/* ---------- copy ---------- */
.twi-se-copy { display: flex; flex-direction: column; gap: 24px; }
.twi-se-ref { font-size: 12px; letter-spacing: .14em; color: var(--se-muted, #9FB3C2); }
.twi-se-h2 {
color:#ffffff;
  margin: 0;
  font-size: 40px; line-height: 1.1; font-weight: 900; letter-spacing: -.02em;
  overflow-wrap: normal; word-break: normal; hyphens: none;
}

/* ---------- run sheet ---------- */
.twi-se-run { display: flex; flex-direction: column; }
.twi-se-row {
  display: flex; gap: 16px; align-items: center;
  padding: 14px 0;
  /* The source keeps the rule on every row including the last. */
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.twi-se-time { flex-shrink: 0; width: 52px; font-size: 14px; color: var(--se-muted, #9FB3C2); }
.twi-se-marker {
  flex-shrink: 0; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--se-marker, #4BA3DC);
  box-sizing: border-box;
}
.twi-se-marker--on {
  border: 0;
  background: var(--se-accent, #D1035A);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--se-accent) 30%, transparent);
}
.twi-se-name { font-size: 18px; font-weight: 700; }

/* ---------- takeaway ---------- */
.twi-se-takeaway {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--se-yellow) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--se-yellow) 45%, transparent);
  border-radius: 8px;
}
.twi-se-takeaway svg { flex-shrink: 0; }
.twi-se-takeaway-text { font-size: 16px; line-height: 1.45; }
.twi-se-takeaway-text p { margin: 0; }

/* ---------- scroll-driven entrance ----------
   Animates `translate`, not `transform`, so it composes with any transform
   rather than overwriting it. */
@keyframes twiSeUp { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes twiSePulseW {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.8); }
  70% { box-shadow: 0 0 0 9px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

@supports (animation-timeline: view()) {
  .twi-se-rv {
    animation: twiSeUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .twi-se { padding: 56px 20px; }
  .twi-se-grid { gap: 32px; }
  .twi-se-h2 { font-size: clamp(27px, 5.2vw, 40px); }
  .twi-se-copy { gap: 20px; }
}
@media (max-width: 560px) {
  .twi-se-badge { font-size: 10.5px; letter-spacing: .08em; left: 10px; bottom: 10px; padding: 7px 10px; }
  .twi-se-name { font-size: 16.5px; }
  /* The fixed 52px time column plus two 16px gaps eats a third of a narrow
     row, leaving the item name badly wrapped. */
  .twi-se-row { gap: 12px; }
  .twi-se-time { width: 42px; font-size: 13px; }
  .twi-se-takeaway { align-items: flex-start; padding: 14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .twi-se *, .twi-se *::after { animation: none !important; transition: none !important; }
}
