/* HERO — the shared site hero (new/css/hero.css) carries the whole look; */
.devcenter-hero .hero-content p { max-width: 900px; }

/* GALLERY STRIP — infinite auto-scrolling photo marquee, same */
.devcenter-strip {
  overflow: hidden;
  background: var(--bg);
  padding: 10px 0 20px;
}
.devcenter-strip-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
  /* Duration scales with photo count to keep a constant px/sec pace */
  animation: scrollLeft 48s linear infinite;
}
.devcenter-strip-item {
  flex-shrink: 0;
  width: 280px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
}
.devcenter-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 599px) {
  .devcenter-strip { padding: 0 0 20px; }
  .devcenter-strip-item { width: 190px; height: 122px; }
}
@media (min-width: 901px) {
  .devcenter-strip-track { gap: 20px; }
  .devcenter-strip-item { width: 320px; height: 208px; }
}

/* SEE WHERE WE BUILD — same design as factory.php's "Come See */
.devcenter-visit {
  background: var(--bg);
  padding: var(--space-section) var(--site-pad-x);
}
.devcenter-visit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: var(--site-max-w);
  margin: 0 auto;
  align-items: stretch;
}
.devcenter-visit-media,
.devcenter-visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.12), 0 4px 16px rgba(15,23,42,0.06);
}
/* Wraps the media panel + its dot-nav row so the pair sits in the */
.devcenter-visit-photo {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Auto-crossfading photo carousel — shared by every photo-loop on */
.devcenter-visit-media { position: relative; }
/* Dot-nav row for the "See Where We Build" carousel only — see the */
.devcenter-visit-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.devcenter-visit-dot {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.devcenter-visit-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(15,23,42,0.18);
  transform: translate(-50%, -50%);
  transition: background 0.2s, transform 0.2s;
}
.devcenter-visit-dot:hover::before { background: rgba(15,23,42,0.32); }
.devcenter-visit-dot.is-active::before {
  background: var(--primary);
  transform: translate(-50%, -50%) scale(1.25);
}
.devcenter-crossfade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease !important;
}
.devcenter-crossfade img.is-active { opacity: 1; }
/* "See Where We Build" carousel fills the frame edge to edge via the */
.devcenter-visit-map {
  position: relative;
}
.devcenter-visit-map iframe {
  position: absolute;
  border: 0;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
}
.devcenter-visit-address {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface-card);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.18);
}
.devcenter-visit-address [data-lucide] {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  stroke-width: 1.8;
  flex-shrink: 0;
  margin-top: 2px;
}
.devcenter-visit-address p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--clr-text);
}

@media (max-width: 900px) {
  .devcenter-visit-layout { grid-template-columns: 1fr; }
  .devcenter-visit-media,
  .devcenter-visit-map { min-height: 280px; }
}
@media (max-width: 599px) {
  .devcenter-visit-layout { gap: 16px; }
  .devcenter-visit-address { padding: 12px 14px; }
  .devcenter-visit-address p { font-size: 13px; }
}

/* DEVELOPMENT CENTER — page-specific styles */

#devcenter-teams {
  background: var(--surface);
  padding: var(--space-section) var(--site-pad-x);
}

/* Team-card photo carousels ("Animation & Creative Team", */
.devcenter-card-carousel { position: relative; height: 240px; }
@media (max-width: 599px) {
  .devcenter-card-carousel { height: 200px; }
  /* devcenter-teams .card-img img (below, ≤599px) is 1 ID + 1 class */
  #devcenter-teams .devcenter-card-carousel.devcenter-crossfade img { height: 100%; }
}

.devcenter-section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.devcenter-section-head h2 { margin-bottom: 14px; }
.devcenter-section-head p {
  color: var(--clr-muted);
  font-size: var(--text-body-sm, 15px);
  line-height: 1.7;
  margin: 0;
}

.devcenter-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--site-max-w);
  margin: 0 auto;
}

/* Light card variant — #devcenter-teams only. Same recipe as */
#devcenter-teams .dark-glass-card {
  background: var(--surface-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 8px 28px rgba(0,0,0,0.06);
}
/* No translateY lift on hover — same reasoning as #factory-devices */
#devcenter-teams .dark-glass-card:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 12px 36px rgba(var(--accent-rgb), 0.07);
  border-color: rgba(var(--accent-rgb), 0.14);
}
#devcenter-teams .dark-glass-card .card-body h3 {
  color: var(--clr-text);
  font-weight: 700;
}
#devcenter-teams .dark-glass-card .card-body p {
  color: var(--clr-muted);
}

@media (max-width: 900px) {
  .devcenter-cards-grid { grid-template-columns: 1fr; gap: 16px; max-width: 480px; }
}
@media (max-width: 599px) {
  .devcenter-section-head { margin-bottom: 32px; }
  #devcenter-teams .card-img img { height: 200px; }
}

/* ONE INTEGRATED DEVELOPMENT ECOSYSTEM — cross-section rail, */
.devcenter-flow {
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.10) 0%, rgba(var(--accent-deep-rgb), 0.10) 55%, rgba(168,85,247,0.10) 100%),
    var(--bg);
  padding: var(--space-section) var(--site-pad-x);
  /* Local var, same literal as factory.css's --xsec-violet — matches */
  --xsec-violet: #a855f7;
}
.devcenter-flow-lead {
  font-size: var(--text-body-lg);
  line-height: 1.75;
  max-width: 640px;
  margin: 18px auto 0;
}

.devcenter-rail-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--site-max-w);
  margin: 44px auto 0;
  border-radius: var(--radius-sm);
}
.devcenter-rail-edge {
  flex: 0 0 auto;
  font-family: var(--h-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.devcenter-rail-edge--start { transform: rotate(180deg); }

.devcenter-rail {
  flex: 1 1 auto;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

/* Each stage: 3-row grid (top gutter / segment / bottom gutter) so */
.devcenter-rail-layer {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-rows: clamp(112px, 11vw, 140px) clamp(26px, 2.6vw, 36px) clamp(112px, 11vw, 140px);
}
.devcenter-rail-layer:nth-child(odd) .devcenter-rail-callout { grid-row: 1; align-self: end; }
.devcenter-rail-layer:nth-child(even) .devcenter-rail-callout { grid-row: 3; align-self: start; }
.devcenter-rail-layer:nth-child(even) .devcenter-rail-callout { flex-direction: column-reverse; }

.devcenter-rail-callout {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Light-card override — same recipe #devcenter-teams uses above */
.devcenter-rail .dark-glass-card.devcenter-rail-callout-card {
  background: var(--surface-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 8px 28px rgba(0,0,0,0.06);
  padding: 14px 14px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 112px;
  max-width: 158px;
  text-align: center;
  margin: 0 6px;
}
.devcenter-rail-num {
  font-family: var(--h-font);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
}
.devcenter-rail-icon [data-lucide] {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  stroke-width: 1.6;
}
.devcenter-rail-label {
  font-family: var(--h-font);
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--clr-text);
  margin: 0;
  line-height: 1.3;
}

/* Leader line — connects the callout card to its rail segment; dot */
.devcenter-rail-leader {
  position: relative;
  width: 2px;
  height: 26px;
  align-self: center;
  background: linear-gradient(180deg, rgba(26,27,29,0.35), rgba(26,27,29,0.04));
}
.devcenter-rail-leader::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}
.devcenter-rail-layer:nth-child(even) .devcenter-rail-leader::after { bottom: auto; top: 0; }

/* Pulsing connector dots — fully gated behind */
@media (prefers-reduced-motion: no-preference) {
  .devcenter-rail-leader::after {
    animation: devcenterRailLeaderPulse 2.4s ease-in-out infinite;
  }
  .devcenter-rail-layer:nth-child(1) .devcenter-rail-leader::after { animation-delay: 0s; }
  .devcenter-rail-layer:nth-child(2) .devcenter-rail-leader::after { animation-delay: 0.12s; }
  .devcenter-rail-layer:nth-child(3) .devcenter-rail-leader::after { animation-delay: 0.24s; }
  .devcenter-rail-layer:nth-child(4) .devcenter-rail-leader::after { animation-delay: 0.36s; }
  .devcenter-rail-layer:nth-child(5) .devcenter-rail-leader::after { animation-delay: 0.48s; }
  .devcenter-rail-layer:nth-child(6) .devcenter-rail-leader::after { animation-delay: 0.6s; }
  .devcenter-rail-layer:nth-child(7) .devcenter-rail-leader::after { animation-delay: 0.72s; }
}
@keyframes devcenterRailLeaderPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.32); }
}

/* Rail segment — the continuous "slice" itself; colour runs from */
.devcenter-rail-segment {
  grid-row: 2;
  height: 100%;
  min-height: 26px;
  border-right: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}
.devcenter-rail-layer:first-child .devcenter-rail-segment { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.devcenter-rail-layer:last-child .devcenter-rail-segment { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-right: none; }

.devcenter-rail-layer:nth-child(1) .devcenter-rail-segment {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--accent-cyan) 95%, transparent) 0%,
    color-mix(in srgb, var(--primary) 75%, transparent) 100%);
}
.devcenter-rail-layer:nth-child(2) .devcenter-rail-segment {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--primary) 85%, transparent) 0%,
    color-mix(in srgb, var(--primary) 55%, transparent) 100%);
}
.devcenter-rail-layer:nth-child(3) .devcenter-rail-segment {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--primary) 55%, transparent) 0%,
    color-mix(in srgb, var(--xsec-violet) 55%, transparent) 100%);
}
.devcenter-rail-layer:nth-child(4) .devcenter-rail-segment {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--xsec-violet) 68%, transparent) 0%,
    color-mix(in srgb, var(--xsec-violet) 42%, transparent) 100%);
}
.devcenter-rail-layer:nth-child(5) .devcenter-rail-segment {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--xsec-violet) 42%, transparent) 0%,
    color-mix(in srgb, var(--photo-tint) 58%, transparent) 100%);
}
.devcenter-rail-layer:nth-child(6) .devcenter-rail-segment {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--photo-tint) 62%, transparent) 0%,
    color-mix(in srgb, var(--photo-tint) 82%, transparent) 100%);
}
.devcenter-rail-layer:nth-child(7) .devcenter-rail-segment {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--photo-tint) 90%, transparent) 0%,
    rgba(1,4,16,0.96) 100%);
}

/* Reveal-on-scroll (JS-driven, opt-in only) — base state is fully */
.devcenter-flow-animate .devcenter-rail-layer {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.devcenter-flow-animate .devcenter-rail-layer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive <900px: alternating-sides layout rotated 90° */
@media (max-width: 900px) {
  .devcenter-rail-edge { display: none; }
  .devcenter-rail-wrap {
    display: block;
    max-width: 440px;
    margin: 32px auto 0;
  }
  .devcenter-rail {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-width: 0;
  }
  .devcenter-rail-layer {
    display: grid;
    grid-template-columns: 1fr 4px 1fr;
    grid-template-rows: none;
    align-items: stretch;
    flex: none;
    min-height: 92px;
  }
  .devcenter-rail-layer:nth-child(odd) .devcenter-rail-callout {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    flex-direction: row;
  }
  .devcenter-rail-layer:nth-child(even) .devcenter-rail-callout {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    flex-direction: row-reverse;
  }
  .devcenter-rail-callout {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .devcenter-rail-leader {
    width: 18px;
    height: 2px;
    background: linear-gradient(90deg, rgba(26,27,29,0.35), rgba(26,27,29,0.04));
  }
  .devcenter-rail-layer:nth-child(even) .devcenter-rail-leader {
    background: linear-gradient(270deg, rgba(26,27,29,0.35), rgba(26,27,29,0.04));
  }
  .devcenter-rail-leader::after {
    left: auto; bottom: auto; top: 50%; right: 0;
    transform: translateY(-50%);
  }
  .devcenter-rail-layer:nth-child(even) .devcenter-rail-leader::after { right: auto; left: 0; }
  .devcenter-rail-segment {
    grid-column: 2;
    grid-row: 1;
    width: 4px;
    height: 100%;
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.14);
  }
  .devcenter-rail-layer:first-child .devcenter-rail-segment { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .devcenter-rail-layer:last-child .devcenter-rail-segment { border-radius: 0 0 var(--radius-sm) var(--radius-sm); border-bottom: none; }
  .devcenter-rail .dark-glass-card.devcenter-rail-callout-card {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: auto;
    min-width: 0;
    max-width: 190px;
    margin: 0;
    text-align: left;
    padding: 10px 12px;
  }
  .devcenter-rail-num { display: none; }
}

@media (max-width: 599px) {
  .devcenter-rail-wrap { margin-top: 24px; }
  .devcenter-rail { gap: 10px; }
  .devcenter-rail .dark-glass-card.devcenter-rail-callout-card { padding: 12px 14px; }
  .devcenter-rail-icon [data-lucide] { width: 20px; height: 20px; }
  .devcenter-flow-lead { font-size: var(--text-body-sm); }
}

/* OUR DEVELOPMENT PHILOSOPHY — 5-card grid, same design as */
.devcenter-philosophy {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  padding: var(--space-section) var(--site-pad-x);
  border-top: 1px solid rgba(0,0,0,0.04);
}
.devcenter-philosophy-inner { max-width: var(--site-max-w); margin: 0 auto; }

.devcenter-philosophy-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: left;
}
.devcenter-philosophy-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.devcenter-philosophy-card:hover {
  box-shadow: 0 16px 40px rgba(10,15,30,0.10);
  border-color: rgba(var(--accent-rgb), 0.30);
  z-index: 2;
}
.devcenter-philosophy-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
.devcenter-philosophy-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.devcenter-philosophy-icon [data-lucide] { width: 22px; height: 22px; stroke-width: 2; }
.devcenter-philosophy-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}
.devcenter-philosophy-card h3 {
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-primary);
  line-height: 1.35;
  margin: 0 0 10px;
}
.devcenter-philosophy-card p {
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin: 0;
}

/* Card accent colours — same 5-colour palette as about.css's */
.devcenter-phil-accent-1 .devcenter-philosophy-icon { background: rgba(var(--accent-rgb), 0.10); border: 1px solid rgba(var(--accent-rgb), 0.22); }
.devcenter-phil-accent-1 .devcenter-philosophy-icon [data-lucide] { stroke: var(--primary); }
.devcenter-phil-accent-1 .devcenter-philosophy-num { background: var(--primary); }

.devcenter-phil-accent-2 .devcenter-philosophy-icon { background: rgba(20,184,166,0.10); border: 1px solid rgba(20,184,166,0.22); }
.devcenter-phil-accent-2 .devcenter-philosophy-icon [data-lucide] { stroke: #14B8A6; }
.devcenter-phil-accent-2 .devcenter-philosophy-num { background: #14B8A6; }

.devcenter-phil-accent-3 .devcenter-philosophy-icon { background: rgba(var(--accent-rgb), 0.10); border: 1px solid rgba(var(--accent-rgb), 0.22); }
.devcenter-phil-accent-3 .devcenter-philosophy-icon [data-lucide] { stroke: var(--accent); }
.devcenter-phil-accent-3 .devcenter-philosophy-num { background: var(--accent); }

.devcenter-phil-accent-4 .devcenter-philosophy-icon { background: rgba(168,85,247,0.10); border: 1px solid rgba(168,85,247,0.22); }
.devcenter-phil-accent-4 .devcenter-philosophy-icon [data-lucide] { stroke: #A855F7; }
.devcenter-phil-accent-4 .devcenter-philosophy-num { background: #A855F7; }

.devcenter-phil-accent-5 .devcenter-philosophy-icon { background: rgba(236,72,153,0.10); border: 1px solid rgba(236,72,153,0.22); }
.devcenter-phil-accent-5 .devcenter-philosophy-icon [data-lucide] { stroke: #EC4899; }
.devcenter-phil-accent-5 .devcenter-philosophy-num { background: #EC4899; }

/* Carousel wrapper — no-op on desktop/tablet (.devcenter-philosophy-grid */
.devcenter-philosophy-nav {
  display: none;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(10,15,30,0.08);
  color: var(--fg-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease, color 0.25s ease;
}
.devcenter-philosophy-nav [data-lucide] { width: 18px; height: 18px; stroke-width: 2; }
.devcenter-philosophy-nav:hover {
  background: var(--text-gradient) border-box;
  border-color: transparent;
  color: var(--on-accent);
}

@media (max-width: 1100px) {
  .devcenter-philosophy-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .devcenter-philosophy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .devcenter-philosophy-carousel { display: flex; align-items: center; gap: 8px; margin-top: 32px; }
  .devcenter-philosophy-nav { display: flex; }
  .devcenter-philosophy-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    flex: 1;
    min-width: 0;
  }
  .devcenter-philosophy-grid::-webkit-scrollbar { display: none; }
  .devcenter-philosophy-card {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: center;
  }
  .devcenter-philosophy-num { display: none; }
}
/* Tap targets — 44 px buttons, hit area around the photo dots */
@media (max-width: 767px), (pointer: coarse) {
  .devcenter-philosophy-nav { min-width: 44px; min-height: 44px; }
  .devcenter-visit-dot { position: relative; }
  .devcenter-visit-dot::after { content: ''; position: absolute; inset: -12px -4px; }
}
