/* ==========================================================================
   Smart Flow Services — sections layer
   Work / Process / FAQ panel content + the room-crossing fade overlay.
   (Kept separate from styles.css to stay under the 500-line file budget.)
   ========================================================================== */

/* Black fade for hall <-> deal-room crossings (toggled by scene.js). */
#room-fade {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#room-fade.on { opacity: 1; }

/* Lead paragraph under a panel heading. */
.panel-lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--muted);
  margin-block-end: 24px;
  max-width: 52ch;
}

/* Work — the "open slot" card invites the visitor to become the next case. */
.module-cta { border-style: dashed; }
.module-cta h3 { color: var(--accent); }

/* Process — numbered steps. */
.steps {
  list-style: none;
  display: grid;
  gap: 12px;
}
.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 20px;
  transition: border-color 0.2s;
}
.steps li:hover { border-color: var(--accent); }
.step-num {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.1em;
  padding-block-start: 4px;
}
.steps h3 {
  font-size: 19px;
  font-weight: 800;
  margin-block-end: 5px;
}
.steps p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* FAQ — native accordions, no JS needed. */
.faq-list {
  display: grid;
  gap: 11px;
}
.faq-item {
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s;
}
.faq-item:hover,
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  font-weight: 600;
  font-size: 17px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 20px;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p {
  padding: 0 18px 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

/* About — tech stack: small square-ish cards, name + one-line explanation. */
.tech-block { margin-block-start: 18px; }
.callout-wide .tech-block { margin-block-start: 0; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.tech-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: border-color 0.2s;
}
.tech-card:hover { border-color: var(--accent); }
.tech-name {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.tech-card p:last-child {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* Work & Clients panels: compact project/client cards and a narrower side
   card so the 3D deal-room board stays visible behind the panel (desktop
   only; mobile keeps its stacked full-width layout). */
body:not(.mobile) #panel-work .panel-inner,
body:not(.mobile) #panel-clients .panel-inner {
  width: min(560px, 44vw);
}
body:not(.mobile) #panel-work .module-list,
body:not(.mobile) #panel-clients .module-list {
  gap: 8px;
}
body:not(.mobile) #panel-work .module,
body:not(.mobile) #panel-clients .module {
  padding: 12px 16px;
}
body:not(.mobile) #panel-work .module h3,
body:not(.mobile) #panel-clients .module h3 {
  font-size: 17px;
  margin-block-end: 4px;
}
body:not(.mobile) #panel-work .module-spec,
body:not(.mobile) #panel-clients .module-spec {
  margin-block-end: 5px;
}
body:not(.mobile) #panel-work .module p:not(.module-spec):not(.module-board),
body:not(.mobile) #panel-clients .module p:not(.module-spec):not(.module-board) {
  font-size: 15px;
  line-height: 1.45;
}
body:not(.mobile) #panel-work .module-board,
body:not(.mobile) #panel-clients .module-board {
  margin-block-start: 7px;
  font-size: 10px;
}

@media (prefers-reduced-motion: reduce) {
  #room-fade { transition: none; }
  .connectors path { animation: none; }
  .connectors circle.conn-dot { animation: none; }
}
