/* ================================================================
   FSE MEDIA SERVICES PAGE (media-production.html)
   Figma frame "Create Services Page" (78:4153). A subpage of FSE Media:
   uses body.theme-media for the red logo/arrows, and reuses the
   .media-cta band from fse-media.html. Everything else is page-specific.
   ================================================================ */
.svc{ --red: #ff0707; }
.svc-wrap{ max-width: var(--maxw); margin: 0 auto; padding-left: var(--gap); padding-right: var(--gap); }

/* ---------- Hero ---------- */
.svc-hero{
  position: relative; overflow: hidden; background: #000;
  margin-top: -86px; padding-top: 86px; min-height: 651px;
  border-bottom: 5px solid var(--red);
}
.svc-hero__bg{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* The old export had the darkening baked in and far heavier than Figma
   (the band averaged near black against Figma's ~36% of the source).
   The photo now ships plain and the scrim matches the design. */
.svc-hero__scrim{ position: absolute; inset: 0; z-index: 0; background: rgba(0,0,0,.64); }
.svc-hero__poly{
  position: absolute; z-index: 1; pointer-events: none; overflow: visible;
  left: calc(var(--u) * -1156); top: calc(var(--u) * -1146);
  width: calc(var(--u) * 3197.54); height: calc(var(--u) * 3197.54);
}
.svc-hero__poly path{ stroke: #fff; stroke-width: 1px; }
.svc-hero__poly path:first-child{ stroke-opacity: .35; }
.svc-hero__poly path:last-child{ stroke-opacity: .15; }
.svc-hero__inner{ position: relative; z-index: 2; padding-top: 34px; padding-bottom: 115px; }
.svc-hero__eyebrow{ font-size: 15px; font-weight: 500; letter-spacing: .025em; line-height: 22.5px; text-transform: uppercase; color: #fff; }
.svc-hero h1{
  margin-top: 24px; max-width: 1082px;
  font-size: clamp(36px, calc(var(--u) * 70), 70px); font-weight: 600; letter-spacing: -.043em; line-height: 1.07; color: #fff;
}
.svc-hero h1 span{ color: var(--red); }
.svc-hero__copy{ margin-top: 32px; max-width: 547px; font-size: 18px; line-height: 28px; color: #fff; }
.svc-hero__actions{ display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.svc-btn{
  display: inline-flex; align-items: center; justify-content: center; min-height: 58.5px; padding: 0 16px;
  font-size: 15px; font-weight: 700; line-height: 22.5px; color: #fff; transition: opacity .2s ease;
}
.svc-btn--solid{ background: var(--red); }
.svc-btn--ghost{ min-width: 200px; border: 2px solid #fff; }
.svc-btn:hover{ opacity: .85; }

/* ---------- Intro ---------- */
.svc-intro{ background: #fff; color: #000; }
.svc-intro .svc-wrap{ display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 68px; padding-bottom: 68px; }
.svc-intro h2{ font-size: clamp(32px, 3.34vw, 48px); font-weight: 500; letter-spacing: -.042em; line-height: 1.04; }
.svc-intro p{ max-width: 636px; font-size: 15px; line-height: 23.61px; }

/* ---------- Services grid ---------- */
.svc-services{ background: #000; color: #fff; }
.svc-services .svc-wrap{ padding-top: 90px; }
.svc-kicker{ font-size: 14px; font-weight: 300; letter-spacing: .025em; line-height: 21px; text-transform: uppercase; }
.svc-services h2{ margin-top: 16px; font-size: 40px; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.svc-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 60px; margin-top: 64px; }
.svc-card{ display: flex; flex-direction: column; gap: 24px; padding: 32px; background: #0a0a0a; border: 1px solid #1a1a1a; }
.svc-card__img{ height: 318px; background: rgba(0,0,0,.5); overflow: hidden; }
.svc-card__img img,
.svc-card__img video{ width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-card h3{ font-size: 24px; font-weight: 700; line-height: 31.5px; }
.svc-card p{ font-size: 16px; line-height: 23px; color: rgba(255,255,255,.8); }

/* ---------- Conference ---------- */
.svc-conf{ background: #000; color: #fff; }
.svc-conf .svc-wrap{ display: flex; flex-direction: column; gap: 32px; padding-top: 90px; padding-bottom: 90px; }
.svc-conf__row{ display: flex; align-items: center; gap: 60px; }
.svc-conf__copy{ flex: 1 1 0; display: flex; flex-direction: column; gap: 32px; }
.svc-conf__copy h2{ font-size: clamp(32px, 3.34vw, 48px); font-weight: 700; letter-spacing: -.01em; line-height: 1.04; }
.svc-conf__copy p{ font-size: 15px; line-height: 24px; }
.svc-conf__img{ flex: 1 1 0; height: 573.75px; overflow: hidden; }
.svc-conf__img img{ width: 100%; height: 100%; object-fit: cover; }
.svc-conf__bar{ width: 300px; height: 5px; background: var(--red); }

/* ---------- Strategy before production ---------- */
.svc-strategy{ background: #fff; color: #000; text-align: center; }
.svc-strategy .svc-wrap{ display: flex; flex-direction: column; align-items: center; gap: 32px; padding-top: 90px; padding-bottom: 90px; }
.svc-strategy h2{ font-size: clamp(32px, 3.34vw, 48px); font-weight: 500; letter-spacing: -.01em; line-height: 1.04; }
.svc-strategy__intro{ display: flex; flex-direction: column; gap: 24px; max-width: 800px; }
.svc-strategy__intro p{ max-width: 780px; margin: 0 auto; font-size: 15px; line-height: 24px; }
/* One centred line at every width: the row never wraps, the gap closes up
   and the pillars shrink from their 180px design size instead. */
.svc-pillars{ display: flex; justify-content: center; align-items: flex-start; flex-wrap: nowrap; width: 100%; gap: 32px clamp(16px, 5.5vw, 80px); }
.svc-pillar{ display: flex; flex-direction: column; align-items: center; gap: 16px; width: 180px; flex: 0 1 auto; min-width: 0; }
.svc-pillar__icon{ display: flex; align-items: center; justify-content: center; width: min(120px, 100%); aspect-ratio: 1; background: var(--red); }
.svc-pillar__icon img{ width: 51%; height: auto; }
.svc-pillar p{ font-size: 18px; font-weight: 500; line-height: 22.5px; }

/* ---------- Production framework ---------- */
.svc-framework{ background: #0a0a0a; color: #fff; }
.svc-framework .svc-wrap{ display: flex; flex-direction: column; align-items: center; gap: 64px; padding-top: 90px; padding-bottom: 70px; }
.svc-framework h2{ font-size: 40px; font-weight: 500; letter-spacing: -.05em; line-height: 1; text-align: center; }
/* Read top to bottom as a list, with each step's text beside its number. */
.svc-steps{ display: flex; flex-direction: column; width: 100%; max-width: 820px; margin: 0 auto; list-style: none; padding: 0; }
.svc-step{ position: relative; display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 32px; padding: 26px 0; }
.svc-step:not(:last-child){ border-bottom: 1px solid rgba(255,255,255,.14); }
.svc-step__num{ display: block; font-size: 48px; font-weight: 700; line-height: 48px; color: var(--red); }
/* connector line between steps (none after the last) */
/* the horizontal connector belonged to the old four-across grid */
.svc-step p{ margin: 0; max-width: none; font-size: 18px; font-weight: 500; line-height: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px){
  .svc-hero{ min-height: 0; }
  .svc-hero__inner{ padding-top: calc(var(--gap) + 20px); padding-bottom: calc(var(--gap) + 24px); }
  .svc-hero h1{ font-size: clamp(38px, 11vw, 70px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
  .svc-hero__copy{ font-size: clamp(17px, 4.6vw, 20px); line-height: 1.55; }
  .svc-intro .svc-wrap, .svc-conf .svc-wrap, .svc-strategy .svc-wrap{ padding-top: 60px; padding-bottom: 60px; }
  .svc-services .svc-wrap{ padding-top: 60px; }
  .svc-grid{ grid-template-columns: 1fr 1fr; gap: 24px; }
  .svc-conf__row{ flex-direction: column; align-items: stretch; gap: 32px; }
  .svc-conf__img{ flex: none; height: auto; aspect-ratio: 603 / 574; }
  .svc-step{ grid-template-columns: 64px 1fr; gap: 20px; padding: 20px 0; }
  .svc-step__num{ font-size: 36px; line-height: 36px; }
  .svc-step p{ font-size: 16px; line-height: 23px; }
}
@media (max-width: 640px){
  .svc-grid{ grid-template-columns: 1fr; }
  .svc-card{ padding: 24px; }
  .svc-card__img{ height: auto; aspect-ratio: 316 / 318; }
  .svc-pillars{ gap: 24px 14px; }
  .svc-pillar{ width: 140px; }
  .svc-hero__actions{ gap: 16px; }
  .svc-btn{ flex: 1 1 100%; }
}

/* ================================================================
   SHARED SERVICE PAGES (web, AI, marketing, strategy)
   Generated by tools/build-service-pages.py. Each page sets --red to its
   service colour on <body>, so the hero bar, buttons and step numbers
   follow the service's colour coding.
   ================================================================ */
.svc-intro .bar{ width: 6px; height: 28px; }

/* What's included: text cards with a service-colour top rule */
.svc-incl{ background: #000; color: #fff; }
.svc-incl .svc-wrap{ padding-top: 90px; padding-bottom: 90px; }
.svc-incl h2{ margin-top: 16px; font-size: clamp(32px, 3.34vw, 48px); font-weight: 500; letter-spacing: -.042em; line-height: 1.04; }
.svc-incl__grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.svc-incl__item{ padding: 32px; background: #0a0a0a; border: 1px solid #1a1a1a; border-top: 4px solid var(--red); }
.svc-incl__item h3{ font-size: 22px; font-weight: 700; line-height: 1.3; }
.svc-incl__item p{ margin-top: 12px; font-size: 16px; line-height: 23px; color: rgba(255,255,255,.8); }

/* Selected work: case study cards (same images as the Case Studies strip) */
.svc-work{ background: #fff; color: #000; }
.svc-work .svc-wrap{ padding-top: 90px; padding-bottom: 90px; }
.svc-work__head{ display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.svc-work__head h2{ font-size: clamp(32px, 3.34vw, 48px); font-weight: 500; letter-spacing: -.042em; line-height: 1.04; }
.svc-work__all{ font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.svc-work__grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.svc-work__card{ display: flex; flex-direction: column; }
.svc-work__img{ display: block; aspect-ratio: 349 / 380; overflow: hidden; background: #eee; }
.svc-work__img img{ width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.svc-work__card:hover .svc-work__img img{ transform: scale(1.04); }
.svc-work__card h3{ margin-top: 16px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.svc-work__card p{ margin-top: 4px; font-size: 14px; line-height: 20px; color: #555; }

/* CTA band on the shared pages: neutral scrim */
.svc .media-cta__scrim{ background: rgba(0,0,0,.62); }

@media (max-width: 1000px){
  .svc-incl .svc-wrap, .svc-work .svc-wrap{ padding-top: 60px; padding-bottom: 60px; }
  .svc-work__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .svc-incl__grid{ grid-template-columns: 1fr; }
  .svc-work__grid{ grid-template-columns: 1fr 1fr; gap: 16px; }
  .svc-incl__item{ padding: 24px; }
}
@media (prefers-reduced-motion: reduce){ .svc-work__img img{ transition: none; } }
/* Light service colours need dark button text to stay readable */
.svc--web .svc-btn--solid, .svc--marketing .svc-btn--solid, .svc--strategy .svc-btn--solid, .svc--science .svc-btn--solid{ color: #000; }
