/* ─── Torc Site Customizations ─── */
/* Runs on top of Framer's generated styles */

/* Force Framer scroll-animated elements visible */
[data-framer-appear-id] {
  opacity: 1 !important;
  transform: none !important;
}

/* Hide the original Framer services section entirely.
   Its cards use 90px headings / no card styling and were built as large
   stacked feature blocks — they cannot be retrofitted into a card grid.
   We inject a clean replacement (.torc-services-section) in its place. */
.framer-157k1mq {
  display: none !important;
}

/* ─── Reusable responsive grids (used by injected sections + pages) ─── */
.torc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

/* Two-column content row (text + visual / story + stats) */
.torc-cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ─── Homepage Services Section ─── */
.torc-services-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.torc-services-header {
  max-width: 760px;
  margin-bottom: 48px;
}

.torc-service-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(20,22,31,0.5), rgba(8,9,15,0.8));
  backdrop-filter: blur(12px);
  min-height: 440px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s, border-color 0.35s;
}

.torc-service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(26,45,216,0.5);
}

.torc-service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.torc-service-num {
  font-family: 'Geist Mono', 'SF Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7B8AFF;
  font-weight: 500;
}

.torc-service-icon {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  color: #7B8AFF;
  flex-shrink: 0;
}

.torc-service-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #F7F8FB;
}

.torc-service-desc {
  font-size: 14.5px;
  color: #A0A4B8;
  line-height: 1.6;
  margin: 0 0 24px;
  flex-grow: 1;
}

/* Amplifier / Agent tag styles */
.torc-tag-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.torc-tag-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #A0A4B8;
  font-family: 'Inter', system-ui, sans-serif;
}

.torc-tag {
  font-family: 'Geist Mono', 'SF Mono', monospace;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: 500;
}

.torc-tag-amplifier {
  color: #FFB347;
  background: rgba(255,179,71,0.08);
  border: 1px solid rgba(255,179,71,0.22);
}

.torc-tag-agent {
  color: #7B8AFF;
  background: rgba(26,45,216,0.15);
  border: 1px solid rgba(26,45,216,0.25);
}

/* ─── New Sections ─── */

/* Timeline section */
.torc-timeline-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.torc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.torc-section-label {
  font-family: 'Geist Mono', 'SF Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7B8AFF;
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.torc-section-heading {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #F7F8FB;
  margin-bottom: 0;
}

.torc-section-heading .muted {
  color: #6A6F82;
  font-weight: 500;
}

/* Timeline card */
.torc-timeline-card {
  margin-top: 48px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20,22,31,0.6), rgba(8,9,15,0.9));
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
}

.torc-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.2);
}

.torc-timeline-dates {
  display: flex;
  align-items: center;
  gap: 20px;
}

.torc-timeline-date {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.torc-timeline-date-label {
  font-family: 'Geist Mono', 'SF Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6A6F82;
}

.torc-timeline-date-value {
  font-family: 'Geist Mono', 'SF Mono', monospace;
  font-size: 13px;
  color: #F7F8FB;
  font-weight: 500;
}

.torc-timeline-date-value.brand { color: #7B8AFF; }

.torc-timeline-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', 'SF Mono', monospace;
  font-size: 11.5px;
  color: #A0A4B8;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 6px 12px;
  border-radius: 6px;
}

.torc-timeline-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2DD489;
  box-shadow: 0 0 8px #2DD489;
  animation: torc-pulse 2s ease-in-out infinite;
}

@keyframes torc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.torc-timeline-graph {
  padding: 32px;
  height: 200px;
}

.torc-timeline-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.07);
}

.torc-stat-cell {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.torc-stat-cell:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.07);
}

.torc-stat-cell:hover .torc-stat-glow {
  opacity: 0.7;
}

.torc-stat-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #4357FF, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.torc-stat-icon {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7B8AFF;
  background: rgba(255,255,255,0.025);
  margin-bottom: 14px;
}

.torc-stat-num {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #fff, #888EA3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.torc-stat-num.brand {
  background: linear-gradient(180deg, #C7CFFF, #1A2DD8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.torc-stat-num .plus {
  -webkit-text-fill-color: #6A6F82;
  font-weight: 300;
}

.torc-stat-label {
  font-family: 'Geist Mono', 'SF Mono', monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6A6F82;
}

/* ─── Case Studies Preview Section ─── */
.torc-cases-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.torc-cases-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}

.torc-cases-link {
  font-family: 'Geist Mono', 'SF Mono', monospace;
  font-size: 12px;
  color: #7B8AFF;
  text-decoration: none;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border: 1px solid rgba(67,87,255,0.3);
  border-radius: 8px;
  transition: all 0.2s;
}

.torc-cases-link:hover {
  background: rgba(67,87,255,0.1);
  border-color: rgba(67,87,255,0.5);
}

.torc-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.torc-case-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(20,22,31,0.5), rgba(8,9,15,0.7));
  backdrop-filter: blur(12px);
  transition: all 0.35s;
  cursor: pointer;
  overflow: hidden;
  min-height: 220px;
  position: relative;
}

.torc-case-card:hover {
  border-color: rgba(26,45,216,0.5);
  transform: translateY(-3px);
}

.torc-case-card.featured {
  border-color: rgba(26,45,216,0.3);
  background: linear-gradient(135deg, rgba(26,45,216,0.18), rgba(168,117,255,0.08), #0E1019);
}

.torc-case-industry {
  font-family: 'Geist Mono', 'SF Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 16px;
  color: #6A6F82;
}

.torc-case-card.featured .torc-case-industry { color: #7B8AFF; }

.torc-case-metric {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
  color: #F7F8FB;
}

.torc-case-card.featured .torc-case-metric {
  background: linear-gradient(180deg, #fff, #5468FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.torc-case-desc {
  font-size: 14.5px;
  color: #A0A4B8;
  line-height: 1.55;
  flex-grow: 1;
  margin-bottom: 20px;
}

.torc-case-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.torc-case-client {
  font-family: 'Geist Mono', 'SF Mono', monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #A0A4B8;
  font-weight: 500;
}

.torc-case-field {
  font-family: 'Geist Mono', 'SF Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6A6F82;
}

/* ─── Responsive ─── */
@media (max-width: 810px) {
  .torc-grid-3,
  .torc-grid-2,
  .torc-cap-grid,
  .torc-cases-grid {
    grid-template-columns: 1fr;
  }
  .torc-cap-grid {
    gap: 32px;
  }
  .torc-timeline-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .torc-stat-cell:nth-child(2) {
    border-right: none;
  }
  .torc-stat-cell:nth-child(1),
  .torc-stat-cell:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .torc-timeline-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .torc-service-card {
    min-height: 0;
  }
}

@media (min-width: 811px) and (max-width: 1200px) {
  .torc-grid-3,
  .torc-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
