
.tmcs-wrap,
.tmcs-wrap * {
  box-sizing: border-box;
}

.tmcs-wrap {
  --gold: #E5A000;
  --gold-grad: linear-gradient(180deg, #FFD000 0%, #FFB800 30%, #E5A000 60%, #D48800 100%);
  --card-bg: #0A0A0A;
  --border: rgba(229,160,0,0.15);

  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0;
  background: #000000;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

.tmcs-wrap::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(229,160,0,0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.tmcs-wrap .tmcs-inner {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 80px 0 88px;
  position: relative;
  z-index: 1;
}

/* HEADER */
.tmcs-wrap .tmcs-header {
  text-align: center;
  margin-bottom: 64px;
}

.tmcs-wrap .tmcs-label {
  display: block;
  margin-bottom: 14px;
  font: 700 11px 'Montserrat', sans-serif;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tmcs-wrap .tmcs-title {
  margin: 0 0 14px;
  font: 900 clamp(28px, 4vw, 48px)/1.08 'Montserrat', sans-serif;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #FFFFFF;
  -webkit-text-fill-color: #FFFFFF;
}

.tmcs-wrap .tmcs-title span {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tmcs-wrap .tmcs-subtitle {
  max-width: 540px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: #FFFFFF;
  -webkit-text-fill-color: #FFFFFF;
}

/* CARDS */
.tmcs-wrap .tmcs-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card-bg);
  border: 1px solid var(--border);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Reveal animation only applies once JS has loaded, so content is never hidden if JS fails */
.tmcs-wrap.tmcs-js .tmcs-card {
  opacity: 0;
  transform: translateY(28px);
}

.tmcs-wrap.tmcs-js .tmcs-card.tmcs-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tmcs-wrap .tmcs-card:last-of-type { margin-bottom: 0; }

.tmcs-wrap .tmcs-card:hover,
.tmcs-wrap.tmcs-js .tmcs-card.tmcs-visible:hover {
  border-color: rgba(229,160,0,0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}

/* Gold corner brackets */
.tmcs-wrap .tmcs-card::before,
.tmcs-wrap .tmcs-card::after {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  pointer-events: none;
  z-index: 2;
}
.tmcs-wrap .tmcs-card::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}
.tmcs-wrap .tmcs-card::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

/* Alternating layout */
.tmcs-wrap .tmcs-card.tmcs-flip { direction: rtl; }
.tmcs-wrap .tmcs-card.tmcs-flip > * { direction: ltr; }

/* IMAGE SIDE */
.tmcs-wrap .tmcs-img {
  overflow: hidden;
  background: #0D0D0D;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.tmcs-wrap .tmcs-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform 0.45s ease;
  pointer-events: none;
  -webkit-user-drag: none;
  padding: 16px;
}

.tmcs-wrap .tmcs-card:hover .tmcs-img img {
  transform: scale(1.02);
}

/* INFO SIDE */
.tmcs-wrap .tmcs-info {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tmcs-wrap .tmcs-geo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font: 700 10px 'Montserrat', sans-serif;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tmcs-wrap .tmcs-geo svg {
  width: 11px; height: 11px;
  stroke: var(--gold); fill: none; stroke-width: 2;
  flex-shrink: 0;
}

.tmcs-wrap .tmcs-info h3 {
  margin: 0 0 12px;
  font: 800 clamp(20px, 2.2vw, 28px)/1.15 'Montserrat', sans-serif;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: #FFFFFF;
  -webkit-text-fill-color: #FFFFFF;
}

.tmcs-wrap .tmcs-info p {
  font-size: 15px;
  line-height: 1.75;
  color: #FFFFFF;
  -webkit-text-fill-color: #FFFFFF;
  margin: 0 0 24px;
  max-width: 440px;
}

/* STATS GRID */
.tmcs-wrap .tmcs-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.tmcs-wrap .tmcs-stat {
  background: rgba(229,160,0,0.05);
  border: 1px solid rgba(229,160,0,0.12);
  padding: 14px 8px;
  text-align: center;
}

.tmcs-wrap .tmcs-stat-val {
  display: block;
  font: 800 clamp(13px, 1.4vw, 17px)/1 'Montserrat', sans-serif;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  white-space: nowrap;
}

.tmcs-wrap .tmcs-stat-key {
  display: block;
  font: 600 10px/1.3 'Montserrat', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #FFFFFF;
  -webkit-text-fill-color: #FFFFFF;
}

/* PERIOD TAG */
.tmcs-wrap .tmcs-period {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 5px 10px;
  border: 1px solid rgba(229,160,0,0.2);
  font: 700 10px 'Montserrat', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FFFFFF;
  -webkit-text-fill-color: #FFFFFF;
  width: fit-content;
}

.tmcs-wrap .tmcs-period svg {
  width: 10px; height: 10px;
  stroke: var(--gold); fill: none; stroke-width: 2;
  flex-shrink: 0;
}

/* TAGS */
.tmcs-wrap .tmcs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tmcs-wrap .tmcs-tag {
  padding: 4px 10px;
  background: rgba(229,160,0,0.06);
  border: 1px solid rgba(229,160,0,0.18);
  font: 600 10px 'Montserrat', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #FFFFFF;
  -webkit-text-fill-color: #FFFFFF;
}

/* BOTTOM CTA */
.tmcs-wrap .tmcs-bottom {
  margin-top: 52px;
  display: flex;
  justify-content: center;
}

.tmcs-wrap .tmcs-bottom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 16px 40px;
  background: linear-gradient(180deg, #FFD000 0%, #FFB800 30%, #E5A000 60%, #D48800 100%);
  color: #000000;
  -webkit-text-fill-color: #000000;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  font: 800 12px 'Montserrat', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 28px rgba(229,160,0,0.18);
  white-space: nowrap;
}

.tmcs-wrap .tmcs-bottom-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(229,160,0,0.28);
}

.tmcs-wrap .tmcs-bottom-btn:focus-visible {
  outline: 2px solid #FFD000;
  outline-offset: 3px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .tmcs-wrap .tmcs-inner { width: calc(100vw - 24px); }
  .tmcs-wrap .tmcs-info { padding: 36px 28px; }
  .tmcs-wrap .tmcs-stats { gap: 8px; }
  .tmcs-wrap .tmcs-stat { padding: 12px 6px; }
  .tmcs-wrap .tmcs-stat-key { font-size: 9px; letter-spacing: 0.5px; }
}

@media (max-width: 900px) {
  .tmcs-wrap .tmcs-card {
    grid-template-columns: 1fr;
    direction: ltr !important;
  }
  .tmcs-wrap .tmcs-card > * { direction: ltr !important; }
  .tmcs-wrap .tmcs-img { min-height: 260px; }
  .tmcs-wrap .tmcs-info { padding: 28px 24px 32px; }
  .tmcs-wrap .tmcs-info p { max-width: none; }
  .tmcs-wrap .tmcs-stat-key { font-size: 10px; letter-spacing: 1px; }
}

@media (max-width: 580px) {
  .tmcs-wrap .tmcs-inner { width: calc(100vw - 20px); padding: 56px 0 64px; }
  .tmcs-wrap .tmcs-header { margin-bottom: 44px; }
  .tmcs-wrap .tmcs-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tmcs-wrap .tmcs-stat:last-child { grid-column: 1 / -1; }
  .tmcs-wrap .tmcs-stat { padding: 12px 8px; }
  .tmcs-wrap .tmcs-stat-val { font-size: 16px; }
  .tmcs-wrap .tmcs-info { padding: 22px 16px 26px; }
  .tmcs-wrap .tmcs-bottom-btn { width: 100%; white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .tmcs-wrap.tmcs-js .tmcs-card { opacity: 1; transform: none; }
  .tmcs-wrap .tmcs-card,
  .tmcs-wrap.tmcs-js .tmcs-card.tmcs-visible { transition: none; }
  .tmcs-wrap .tmcs-card:hover,
  .tmcs-wrap.tmcs-js .tmcs-card.tmcs-visible:hover { transform: none; }
}
