/* GSK Productions — Agency (Advertising & Marketing pillar) page-specific styles.
   Scoped under body.page-agency so these can reuse short class names
   (.grid, .why, .steps …) without colliding with other pages' styles.
   See DESIGN-SYSTEM.md. */

.page-agency .hero-strip {
  display: flex;
  gap: 26px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-agency .hero-strip .stat b {
  display: block;
  font-size: 15px;
  color: #fff;
  font-weight: 700;
}

.page-agency .hero-strip .stat span {
  font-size: 13px;
  color: #9AA4C6;
}

.page-agency .hero-tag {
  font-size: 13px;
  letter-spacing: .05em;
  color: #8E99BF;
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 20px;
}

/* Signature: connected-capabilities orbit */
.page-agency .orbit {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  margin-inline: auto;
}

.page-agency .orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
}

.page-agency .orbit-ring.r2 { inset: 15%; }
.page-agency .orbit-ring.r3 { inset: 30%; }

.page-agency .orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-bright));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  box-shadow: 0 0 60px -6px rgba(50, 180, 230, .65);
  z-index: 3;
}

.page-agency .orbit-core b {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
}

.page-agency .orbit-core span {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 5px;
  color: var(--cyan-soft);
}

.page-agency .chip {
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #EAF0FF;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 7px 13px;
  border-radius: 100px;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(var(--r)) rotate(calc(var(--a) * -1));
}

.page-agency .spin, .page-agency .spin-rev { position: absolute; inset: 0; }
.page-agency .spin { animation: agency-spin 48s linear infinite; }
.page-agency .spin-rev { animation: agency-spin 48s linear infinite reverse; }
/* Each chip's counter-rotation must play in the SAME direction as its own
   ring (not opposite) for the two rotations to sum to a constant angle —
   see the derivation in css/ai-automation.css's equivalent comment. */
.page-agency .spin .chip { animation: agency-counter 48s linear infinite; }
.page-agency .spin-rev .chip { animation: agency-counter 48s linear infinite reverse; }

@keyframes agency-spin { to { transform: rotate(360deg); } }
@keyframes agency-counter {
  from { transform: translate(-50%, -50%) rotate(var(--a)) translateY(var(--r)) rotate(calc(var(--a) * -1)); }
  to { transform: translate(-50%, -50%) rotate(var(--a)) translateY(var(--r)) rotate(calc(var(--a) * -1 - 360deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .page-agency .spin, .page-agency .spin-rev { animation: none; }
  .page-agency .spin .chip, .page-agency .spin-rev .chip { animation: none; }
}

/* Chip radii are fixed px offsets (--r), so shrinking the container's max-width
   alone would push chips outside the visible ring. Scale the whole orbit
   uniformly instead so chips and rings stay proportional at every size. */
@media (max-width: 920px) {
  .page-agency .orbit { transform: scale(.82); margin-bottom: -70px; }
}

@media (max-width: 760px) {
  .page-agency .orbit { transform: scale(.6); margin-bottom: -160px; margin-top: -20px; }
}

@media (max-width: 480px) {
  .page-agency .orbit { transform: scale(.48); margin-bottom: -220px; }
}

/* ---------- One agency / connected capabilities ---------- */
.page-agency .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 880px) {
  .page-agency .split { grid-template-columns: 1fr; gap: 36px; }
}

.page-agency .connect-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-top: 8px;
}

.page-agency .connect-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--body);
  font-weight: 500;
}

.page-agency .connect-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
}

.page-agency .panel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}

.page-agency .panel-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.page-agency .mini-flow {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 18px;
}

.page-agency .mini-flow .row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--mist);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.page-agency .mini-flow .row .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

.page-agency .mini-flow .arrow {
  color: var(--cyan);
  text-align: center;
  font-size: 14px;
  line-height: .6;
  padding: 1px 0;
}

/* ---------- Capabilities grid ---------- */
.page-agency .cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 980px) { .page-agency .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .page-agency .cap-grid { grid-template-columns: 1fr; } }

.page-agency .cap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
  position: relative;
  overflow: hidden;
}

.page-agency .cap::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
  transition: width .3s ease;
}

.page-agency .cap:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.page-agency .cap:hover::after { width: 100%; }

.page-agency .cap-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--cyan);
}

.page-agency .cap-ico {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: var(--cyan-soft);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0 16px;
}

.page-agency .cap-ico svg {
  width: 24px;
  height: 24px;
}

.page-agency .cap h3 {
  font-size: 18.5px;
  margin-bottom: 9px;
  letter-spacing: -.01em;
}

.page-agency .cap p {
  font-size: 14.5px;
  color: var(--body);
  margin-bottom: 14px;
}

.page-agency .cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.page-agency .cap-tags span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy);
  background: var(--mist);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 100px;
}

.page-agency .cap-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
}

/* ---------- How we work (7-step) ---------- */
.page-agency .steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}

@media (max-width: 1040px) { .page-agency .steps { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .page-agency .steps { grid-template-columns: repeat(2, 1fr); } }

.page-agency .steps .step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 18px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s;
}

.page-agency .steps .step:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.page-agency .steps .step .n {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 30px;
  font-weight: 600;
  color: var(--cyan);
  line-height: 1;
}

.page-agency .steps .step h4 { font-size: 15.5px; margin: 12px 0 7px; }
.page-agency .steps .step p { font-size: 13px; color: var(--body); line-height: 1.55; }

/* ---------- Engagement models ---------- */
.page-agency .models {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 1040px) { .page-agency .models { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .page-agency .models { grid-template-columns: 1fr; } }

.page-agency .model {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.page-agency .model:hover { border-color: var(--cyan); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.page-agency .model .tag { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.page-agency .model h4 { font-size: 17px; margin: 10px 0 8px; }
.page-agency .model p { font-size: 13.5px; color: var(--body); }

/* ---------- Industries (pill cloud) ---------- */
.page-agency .ind-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.page-agency .ind {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition: background .2s, color .2s, border-color .2s;
}

.page-agency .ind:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Why (dark band) ---------- */
.page-agency .why {
  background: radial-gradient(120% 120% at 20% 0%, #3A4576 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
}

.page-agency .why .sec-head h2 { color: #fff; }
.page-agency .why .sec-head p { color: #C4CBE4; }

.page-agency .why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 980px) { .page-agency .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .page-agency .why-grid { grid-template-columns: 1fr; } }

.page-agency .why-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 26px 24px;
  transition: background .2s, transform .2s;
}

.page-agency .why-card:hover { background: rgba(255, 255, 255, .09); transform: translateY(-3px); }

.page-agency .why-ico {
  width: 40px;
  height: 40px;
  color: var(--cyan-bright);
  margin-bottom: 14px;
}

.page-agency .why-ico svg { width: 100%; height: 100%; }

.page-agency .why-card h4 { color: #fff; font-size: 17px; margin-bottom: 9px; }
.page-agency .why-card p { font-size: 14px; color: #C4CBE4; }

/* ---------- Outcome checklist ---------- */
.page-agency .outcome-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 26px;
  margin-top: 26px;
}

@media (max-width: 720px) { .page-agency .outcome-list { grid-template-columns: 1fr; } }

.page-agency .outcome-list .oi {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.page-agency .outcome-list .oi .k {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--cyan-soft);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

/* ---------- CTA ---------- */
.page-agency .cta-inner {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 66px 34px;
  position: relative;
  overflow: hidden;
}

.page-agency .cta-inner::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50, 180, 230, .35), transparent 70%);
  top: -120px;
  right: -80px;
}

.page-agency .cta-inner h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); position: relative; }
.page-agency .cta-inner p { color: #C9D0E6; font-size: 18px; max-width: 600px; margin: 18px auto 32px; position: relative; }
