/* Fox Motion Studio — sub-page components, built on the home page theme in styles.css */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.accent {
  color: var(--red-primary);
}

.section-dark .accent {
  color: #ff4b52;
}

.section-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 12px;
  max-width: 460px;
}

.section-dark .section-lead {
  color: #9aa1ae;
}

.section-foot {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* ==================== SUB-PAGE HERO (same look as the home hero, shorter) ==================== */
.hero-sub {
  min-height: min(calc(100vh - 76px), 680px);
  padding: 56px 0 72px;
}

.hero-sub .hero-stage {
  height: clamp(380px, 52vh, 520px);
}

.hero-sub .hero-title {
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
}

.hero-sub .hero-cta-group {
  margin-bottom: 0;
}

.hero-sub .hero-stats {
  margin-top: 36px;
}

/* Box-sized 3D stage used by the gears and pipeline scenes */
.hero-box-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-width: 600px;
  margin: 0 auto;
}

.hero-box-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-box-stage .hero-fallback {
  inset: 0;
  margin: auto;
}

.hero-box-stage .cta-3d-tag {
  right: 50%;
  transform: translateX(50%);
  white-space: nowrap;
}

.pipe-label {
  position: absolute;
  transform: translate(-50%, 0);
  text-align: center;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e6f6ff;
  pointer-events: none;
}

.pipe-label b {
  display: block;
  color: #ff4b52;
  font-size: 0.68rem;
}

.pipe-label small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #9aa1ae;
}

/* Contact hero has no 3D model: copy sits centred over the blueprint grid */
.hero-plain {
  min-height: 0;
  padding: 72px 0 80px;
  background-image:
    radial-gradient(ellipse at 80% 0%, rgba(217, 27, 36, 0.22) 0%, transparent 45%),
    linear-gradient(rgba(111, 211, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 211, 255, 0.045) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  background-color: #07090d;
}

.hero-plain .hero-copy {
  max-width: 720px;
}

/* ==================== SERVICES: 2×2 OFFER CARDS ==================== */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.svc-card {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  scroll-margin-top: 96px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.svc-card:hover {
  background: #ffffff;
  border-color: rgba(217, 27, 36, 0.35);
  box-shadow: var(--shadow-md);
}

.svc-media {
  position: relative;
  background: #0d1117;
  min-height: 270px;
}

.svc-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-body {
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
}

.svc-num {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--red-primary);
  margin-bottom: 6px;
}

.svc-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.svc-body p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.dash-list {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.dash-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.dash-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 14px;
  height: 2px;
  background: var(--red-primary);
}

.section-dark .dash-list li {
  color: #b4bac6;
}

.svc-body .link-arrow {
  margin-top: auto;
}

/* ==================== PROCESS LIST (compact) ==================== */
.process-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.step-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.step-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: start;
  padding: 18px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.step-list b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red-primary);
  color: #ffffff;
  font-size: 0.8rem;
  box-shadow: 0 4px 10px rgba(217, 27, 36, 0.3);
}

.step-list h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-list p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ==================== PROCESS PAGE: DETAILED TIMELINE ==================== */
.timeline {
  position: relative;
  display: grid;
  gap: 22px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--red-primary), rgba(217, 27, 36, 0.12));
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
}

.timeline-num {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--red-primary);
  color: var(--red-primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(217, 27, 36, 0.18);
}

.timeline-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  padding: 24px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.timeline-card:hover {
  background: #ffffff;
  border-color: rgba(217, 27, 36, 0.35);
  box-shadow: var(--shadow-sm);
}

.timeline-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.timeline-out {
  padding-left: 22px;
  border-left: 1px solid var(--border-light);
}

.timeline-out h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}

.timeline-out .dash-list {
  margin-bottom: 0;
}

/* ==================== DARK FEATURE CARDS (about craft, process inputs) ==================== */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.craft-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.craft-card {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #151922 0%, #10131a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.craft-card .why-icon {
  background: rgba(217, 27, 36, 0.14);
  color: #ff4b52;
  margin-bottom: 16px;
}

.craft-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #f3f4f6;
  margin-bottom: 8px;
}

.craft-card p {
  font-size: 0.86rem;
  color: #9aa1ae;
}

.craft-card .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.craft-card .tag-row span {
  font-size: 0.74rem;
  font-weight: 700;
  color: #6fd3ff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(111, 211, 255, 0.3);
  background: rgba(111, 211, 255, 0.06);
}

.craft-card .option-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff4b52;
  margin-bottom: 8px;
}

/* ==================== DELIVERABLES ==================== */
.deliver-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.deliver-card {
  padding: 22px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.deliver-card strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.deliver-card span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ==================== FAQ ACCORDION ==================== */
.faq-split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-list details[open] {
  background: #ffffff;
  border-color: rgba(217, 27, 36, 0.35);
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  font-size: 0.93rem;
  font-weight: 600;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--red-soft);
  color: var(--red-primary);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  padding: 0 18px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==================== PORTFOLIO: TRUST STRIP, TOOLBAR, FEATURED ==================== */
/* Dark band that continues the hero into the dark work section */
.trust-strip {
  position: relative;
  background: #0b0d12;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #f3f4f6;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item:last-child {
  border-right: none;
}

.trust-item .why-icon {
  flex-shrink: 0;
  background: rgba(217, 27, 36, 0.14);
  color: #ff4b52;
}

.trust-item strong {
  display: block;
  font-size: 0.9rem;
}

.trust-item span {
  font-size: 0.78rem;
  color: #9aa1ae;
}

.work-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.search-box {
  position: relative;
}

.search-box input,
.sort-box select {
  font-family: inherit;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f3f4f6;
}

.sort-box select option {
  color: var(--text-main);
}

.search-box input::placeholder {
  color: #7d8494;
}

.search-box input {
  width: 220px;
  padding-right: 38px;
}

.search-box svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7d8494;
  pointer-events: none;
}

.sort-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #9aa1ae;
}

.featured-project {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 64px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #151922 0%, #10131a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.featured-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: #0d1117;
  aspect-ratio: 16 / 9;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-media:hover img {
  transform: scale(1.04);
}

.featured-media .play-circle {
  width: 68px;
  height: 68px;
}

.featured-media:hover .play-circle {
  background: var(--red-primary);
  transform: scale(1.1);
}

.featured-copy h2 {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 4px;
}

.featured-tags {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6fd3ff;
  margin-bottom: 12px;
}

.featured-copy p {
  font-size: 0.9rem;
  color: #b4bac6;
  margin-bottom: 14px;
}

.no-results {
  display: none;
  text-align: center;
  padding: 40px 0;
  color: #9aa1ae;
}

.no-results.is-shown {
  display: block;
}

.no-results .link-arrow {
  background: none;
  font-size: inherit;
}

/* ==================== INDUSTRIES + CONCEPT SPLIT ==================== */
.industries {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 40px;
  align-items: center;
}

.industry-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.industry-tile {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 12px 20px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.industry-tile:hover {
  background: #ffffff;
  border-color: rgba(217, 27, 36, 0.35);
}

.industry-tile svg {
  display: block;
  margin: 0 auto 12px;
  color: var(--text-main);
}

.industry-tile svg .hl {
  color: var(--red-primary);
}

.industry-tile small {
  display: block;
  margin-top: 6px;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
}

.concept-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.concept-split p {
  color: var(--text-muted);
  margin: 14px 0 18px;
  max-width: 440px;
}

.concept-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

/* ==================== CONTACT PAGE ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.contact-form-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.contact-form-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.contact-form-card > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.contact-side {
  display: grid;
  gap: 18px;
}

.contact-info-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #ffffff;
  border-left: 4px solid var(--red-primary);
}

.contact-info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: #e5e7eb;
}

.contact-line:first-of-type {
  border-top: none;
}

.contact-line svg {
  flex-shrink: 0;
  color: #ff4b52;
}

.contact-line a:hover {
  color: #ff4b52;
}

.contact-line small {
  display: block;
  font-size: 0.76rem;
  color: #9aa1ae;
}

.brief-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}

.brief-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .offer-grid,
  .process-split,
  .faq-split,
  .featured-project,
  .industries,
  .concept-split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-sub {
    min-height: 0;
  }

  .craft-grid,
  .deliver-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(2) {
    border-right: none;
  }

  .timeline-card {
    grid-template-columns: 1fr;
  }

  .timeline-out {
    padding-left: 0;
    padding-top: 14px;
    border-left: none;
    border-top: 1px solid var(--border-light);
  }
}

@media (max-width: 640px) {
  .hero-sub {
    padding: 32px 0 48px;
  }

  .hero-sub .hero-stage {
    height: 300px;
  }

  .hero-plain {
    padding: 44px 0 52px;
  }

  .pipe-label small {
    display: none;
  }

  .svc-card {
    grid-template-columns: 1fr;
  }

  .svc-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .craft-grid,
  .craft-grid.two,
  .deliver-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .industry-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 4px;
  }

  .trust-item:last-child {
    border-bottom: none;
  }

  .toolbar-controls {
    flex-wrap: wrap;
    margin-left: 0;
  }

  .timeline::before {
    left: 19px;
  }

  .timeline-step {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  .timeline-num {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }

  .timeline-card {
    padding: 18px;
  }

  .toolbar-controls,
  .search-box,
  .search-box input,
  .sort-box {
    width: 100%;
  }

  .sort-box select {
    flex: 1;
  }

  .featured-project {
    padding: 14px;
  }

  .contact-form-card {
    padding: 22px 18px;
  }
}
