/* ============================================================
   PRODUCTS — three big interactive blocks (tab switcher)
   + detail panes with a horizontal timeline. Entropia palette.
   No pricing. Loaded only on products.html.
   ============================================================ */

/* Top intro — keep tight so the blocks appear high on the page */
.svc-top { padding-top: var(--s-7); }

/* ============================================================
   SWITCHER — three large blocks act as tabs
   ============================================================ */
.svc-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-6);
}
.svc-block {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  text-align: left;
  min-height: clamp(240px, 34vh, 380px);
  padding: var(--s-6);
  border: var(--hairline);
  border-top: 2px solid transparent;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.45);
  color: inherit;
  cursor: pointer;
  transition: transform 220ms var(--ease-out, ease), border-color 220ms ease,
    background 220ms ease, box-shadow 220ms ease;
}
.svc-block:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.svc-block.is-active {
  border-color: var(--line);
  border-top-color: var(--accent);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
}
.svc-block:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.svc-block-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--titanium-faint);
  transition: color 220ms ease;
}
.svc-block.is-active .svc-block-num { color: var(--accent); }
.svc-block-title {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: var(--s-2);
}
.svc-block-tag {
  font-size: 14px;
  line-height: 1.5;
  color: var(--titanium-dim);
}
.svc-block-go {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--titanium-mute);
  transition: color 220ms ease, transform 220ms ease;
}
.svc-block:hover .svc-block-go { color: var(--accent); transform: translateX(3px); }
.svc-block.is-active .svc-block-go { color: var(--accent); }
.svc-block.is-active .svc-block-go::before { content: "● "; }

/* accent bottom progress line on the active block */
.svc-block::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--accent);
  transition: width 360ms var(--ease-out, ease);
}
.svc-block.is-active::after { width: 100%; }

@media (max-width: 900px) {
  .svc-blocks { grid-template-columns: 1fr; gap: var(--s-4); }
  .svc-block { min-height: 0; }
}

/* ============================================================
   PANES — detail area that swaps with the active block
   ============================================================ */
.svc-panes { margin-top: var(--s-7); }
.svc-pane { display: none; }
.svc-pane.is-active {
  display: block;
  animation: svc-pane-in 360ms var(--ease-out, ease) both;
}
@keyframes svc-pane-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.svc-pane-head { margin-bottom: var(--s-6); }

/* ============================================================
   TIMELINE — horizontal stepped track (start → finish)
   ============================================================ */
.timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin-top: var(--s-5);
}
.tl-step {
  position: relative;
  padding: 34px var(--s-5) 0 0;
}
.tl-step::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 14px;
  right: 0;
  height: 2px;
  background: var(--line);
}
.tl-step:last-child::after { display: none; }
.tl-node {
  position: absolute;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.tl-step:first-child .tl-node,
.tl-step:last-child .tl-node {
  background: var(--color-bg);
  border: 2px solid var(--accent);
}
.tl-id {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--titanium-mute);
}
.tl-step h4 { font-size: 17px; margin-top: 8px; letter-spacing: -0.01em; }
.tl-step p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--titanium-dim);
  margin-top: 8px;
  padding-right: var(--s-4);
}
.tl-step .tl-cap {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 860px) {
  .timeline { grid-auto-flow: row; }
  .tl-step { padding: 0 0 var(--s-6) 34px; }
  .tl-step::after { top: 14px; left: 6px; width: 2px; height: 100%; right: auto; }
  .tl-step p { padding-right: 0; }
}

/* ============================================================
   SERVICE detail block — text + supporting panel (systems/services)
   ============================================================ */
.svc-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-9);
  align-items: start;
}
.svc-points { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: var(--hairline); }
.svc-point { background: rgba(255, 255, 255, 0.5); padding: var(--s-5); }
.svc-point .mono.faint { font-size: 10px; letter-spacing: 0.2em; }
.svc-point h4 { font-size: 17px; margin-top: 10px; }
.svc-point p { font-size: 13.5px; line-height: 1.55; color: var(--titanium-dim); margin-top: 6px; }
@media (max-width: 900px) { .svc-detail { grid-template-columns: 1fr; gap: var(--s-7); } }
