/* ===========================================================
   Stream Spare — Services Detail Page Styles
   Detailed breakdown of tools, teams, and tech for every service
=========================================================== */

.services-hero{
  padding: calc(var(--header-h) + 60px) 0 80px;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-soft);
}
.services-hero .hero-sub{
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--fg-muted);
}

/* Founder Section */
.founder-section{
  padding: 100px 0;
  background: var(--bg);
}
.founder-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.founder-image{
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
}
.founder-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.05);
  transition: filter 0.6s var(--ease-soft);
}
.founder-image:hover img{
  filter: grayscale(0) contrast(1);
}
.founder-image-badge{
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: var(--fg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}
.founder-image-badge .brand-mark{
  width: 28px;
  height: 28px;
  color: var(--bg);
}
.founder-content h2{
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 8px;
}
.founder-content .title-sub{
  font-size: 1.1rem;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.founder-bio{
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-bottom: 36px;
}
.founder-stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}
.founder-stats div{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.founder-stats strong{
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fg);
}
.founder-stats span{
  font-size: 0.82rem;
  color: var(--fg-faint);
}

/* Division Tabs */
.division-tabs-section{
  padding: 80px 0 40px;
  background: var(--bg-alt);
}
.division-tabs{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.division-tab{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-soft);
}
.division-tab:hover{
  border-color: var(--border);
  color: var(--fg);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
.division-tab.is-active{
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.division-tab-icon{
  width: 48px;
  height: 48px;
}
.division-tab small{
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--fg-faint);
}
.division-tab.is-active small{
  color: rgba(255,255,255,0.7);
}

/* Division Panels */
.division-panel{
  display: none;
}
.division-panel.is-active{
  display: block;
  animation: fade-in-up 0.5s var(--ease-soft);
}

/* Team Section */
.team-section{
  padding: 100px 0;
  background: var(--bg);
}
.team-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.team-card{
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.team-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.team-avatar{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 20px;
}
.team-avatar-lead{
  background: var(--invert-bg);
  color: var(--invert-fg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.team-card h4{
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.team-role{
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-faint);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.team-desc{
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.team-skills{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.team-skills span{
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  color: var(--fg-muted);
}

/* Tech Stack Section */
.tech-stack-section{
  padding: 100px 0;
  background: var(--bg-alt);
}
.stack-category{
  margin-bottom: 64px;
}
.stack-category:last-child{
  margin-bottom: 0;
}
.stack-category-title{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  margin-bottom: 28px;
  color: var(--fg);
}
.stack-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fg);
  flex-shrink: 0;
}
.stack-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stack-card{
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast);
}
.stack-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}
.stack-card-header{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.stack-icon{
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stack-card-header h4{
  font-size: 1rem;
  margin-bottom: 4px;
}
.stack-used{
  font-size: 0.76rem;
  color: var(--fg-faint);
  font-weight: 500;
}
.stack-card > p{
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.stack-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stack-tags span{
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--fg-muted);
}

/* Service Deep Dive */
.service-deep-dive{
  padding: 100px 0;
  background: var(--bg);
}
.deep-dive-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.deep-dive-card{
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.deep-dive-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.deep-dive-header{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.deep-dive-icon{
  width: 28px;
  height: 28px;
  color: var(--fg);
  flex-shrink: 0;
}
.deep-dive-header h3{
  font-size: 1.15rem;
}
.deep-dive-body{
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.deep-dive-body p{
  font-size: 0.9rem;
  line-height: 1.6;
}
.deep-dive-body p strong{
  color: var(--fg);
  font-weight: 600;
}
.deep-dive-tools h4,
.deep-dive-team h4{
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
  margin-bottom: 10px;
}
.tool-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tool-tags span{
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  color: var(--fg);
  font-weight: 500;
}

/* Equipment Section (Studios) */
.equipment-section{
  padding: 100px 0;
  background: var(--bg-alt);
}
.equipment-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.equipment-card{
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.equipment-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.equipment-card h3{
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.equipment-card h3 .equipment-icon{
  font-size: 1.4rem;
}
.equipment-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.equipment-item{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--fg-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
}
.equipment-item:last-child{
  border-bottom: none;
}
.equipment-item svg{
  width: 16px;
  height: 16px;
  color: var(--fg);
  flex-shrink: 0;
  margin-top: 2px;
}
.equipment-item strong{
  color: var(--fg);
  display: block;
  margin-bottom: 2px;
}

/* Crew Section */
.crew-section{
  padding: 100px 0;
  background: var(--bg);
}
.crew-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.crew-card{
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--dur-med) var(--ease);
}
.crew-card:hover{
  transform: translateY(-4px);
}
.crew-card .crew-icon{
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.crew-card h4{
  font-size: 1rem;
  margin-bottom: 8px;
}
.crew-card p{
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.crew-card .crew-count{
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
}
.crew-card .crew-count-label{
  font-size: 0.76rem;
  color: var(--fg-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Back to Home CTA */
.back-home-section{
  padding: 80px 0;
  background: var(--bg-alt);
  text-align: center;
}
.back-home-section h2{
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}
.back-home-section p{
  max-width: 520px;
  margin: 0 auto 32px;
  color: var(--fg-muted);
}
.back-home-buttons{
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1080px){
  .founder-grid{ grid-template-columns: 1fr; gap: 40px; }
  .founder-image{ max-width: 320px; margin: 0 auto; }
  .team-grid{ grid-template-columns: repeat(2, 1fr); }
  .stack-grid{ grid-template-columns: repeat(2, 1fr); }
  .deep-dive-grid{ grid-template-columns: 1fr; }
  .equipment-grid{ grid-template-columns: repeat(2, 1fr); }
  .crew-grid{ grid-template-columns: repeat(2, 1fr); }
  .division-tabs{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .founder-stats{ grid-template-columns: repeat(2, 1fr); }
  .team-grid{ grid-template-columns: 1fr; }
  .stack-grid{ grid-template-columns: 1fr; }
  .equipment-grid{ grid-template-columns: 1fr; }
  .crew-grid{ grid-template-columns: 1fr; }
  .deep-dive-grid{ grid-template-columns: 1fr; }
}