/* =========================================================
   OnRemark — Built from Operations Section (P0)
   Built from operations. Not added on top of them.
   ========================================================= */

/* ---------- Section Container ---------- */
.built-from-operations {
  position: relative;
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.built-from-operations::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: 
    radial-gradient(500px 350px at 100% 50%, rgba(255, 107, 107, 0.05), transparent 50%),
    radial-gradient(400px 300px at 0% 50%, rgba(58, 77, 118, 0.04), transparent 50%);
  pointer-events: none;
}

.built-from-operations .wrap {
  position: relative;
  z-index: 1;
}

/* ---------- Section Header ---------- */
.built-from-header {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.built-from-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.built-from-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--t-strong);
  margin-bottom: 20px;
}

.built-from-header .lead {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: var(--t-body);
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Operation Pillars Grid ---------- */
.operation-pillars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 48px;
}

@media (max-width: 1024px) {
  .operation-pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .operation-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .operation-pillars {
    grid-template-columns: 1fr;
  }
}

/* ---------- Operation Pillar Card ---------- */
.operation-pillar {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 20px 36px;
  text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease, background .25s ease;
  position: relative;
  overflow: hidden;
}

/* pillars are links — each card opens its deep-dive */
a.operation-pillar {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.operation-pillar:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.pillar-go {
  position: absolute;
  right: 14px;
  bottom: 11px;
  font-size: 14px;
  line-height: 1;
  color: var(--coral-700);
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity .25s ease, transform .25s var(--ease);
}

.operation-pillar:hover .pillar-go,
.operation-pillar:focus-visible .pillar-go {
  opacity: 1;
  transform: translateX(0);
}

.operation-pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--navy-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.operation-pillar:hover {
  background: var(--white);
  border-color: var(--coral);
  transform: translateY(-4px);
  box-shadow: var(--sh);
}

.operation-pillar:hover::before {
  transform: scaleX(1);
}

/* ---------- Pillar Icon ---------- */
.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--coral-tint);
  color: var(--coral-700);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  transition: background .25s ease, color .25s ease, transform .25s var(--ease);
}

.operation-pillar:hover .pillar-icon {
  background: var(--coral);
  color: #fff;
  transform: scale(1.05);
}

.pillar-icon svg {
  width: 28px;
  height: 28px;
}

/* ---------- Pillar Content ---------- */
.pillar-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--t-strong);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.pillar-description {
  font-size: 14px;
  color: var(--t-muted);
  line-height: 1.5;
}

/* ---------- Connection Visual ---------- */
.operation-connection {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--coral);
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: var(--sh);
}

.operation-connection .icon {
  width: 48px;
  height: 48px;
  background: var(--coral);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.operation-connection .icon svg {
  width: 24px;
  height: 24px;
}

.operation-connection .label {
  position: absolute;
  bottom: -32px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-700);
  white-space: nowrap;
}

/* ---------- Animated Background Elements ---------- */
.bg-element {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
  z-index: 0;
}

.bg-element-1 {
  width: 300px;
  height: 300px;
  background: var(--coral);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.bg-element-2 {
  width: 200px;
  height: 200px;
  background: var(--navy-600);
  bottom: -50px;
  left: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

/* ---------- Responsive Text ---------- */
@media (max-width: 768px) {
  .built-from-header h2 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }
  
  .built-from-header .lead {
    font-size: 1rem;
  }
  
  .operation-pillar {
    padding: 20px 16px;
  }
  
  .pillar-icon {
    width: 48px;
    height: 48px;
  }
  
  .pillar-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* ---------- Animation States ---------- */
.built-from-operations .animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
}

.built-from-operations .animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.built-from-operations .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.built-from-operations .animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.built-from-operations .animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.built-from-operations .animate-on-scroll:nth-child(4) { transition-delay: 300ms; }
.built-from-operations .animate-on-scroll:nth-child(5) { transition-delay: 400ms; }
.built-from-operations .animate-on-scroll:nth-child(6) { transition-delay: 500ms; }