/* =========================================================================
   ZXVERA — Partnerships page
   Builds on style.css tokens, buttons, reveals, header and footer.
   Imagery: real photography framed with the shared .photo-frame component.
   Lane colours: agency = blue, publisher = cyan, advertiser = silver.
   ========================================================================= */

.page-partnerships {
  --lane-a: #176BFF;
  --lane-p: #28D8FF;
  --lane-b: #C9D3E2;
}

/* ---------- Hero ---------- */
.phero {
  position: relative;
  padding: calc(var(--header-h) + clamp(16px, 2.5vw, 36px)) 0 clamp(28px, 3vw, 40px);
  color: var(--white);
  background: radial-gradient(100% 80% at 80% 45%, #0D2142 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  overflow: hidden;
  isolation: isolate;
}
.phero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.phero__glow { width: 48vw; height: 48vw; max-width: 720px; max-height: 720px; right: -10vw; top: 0; background: radial-gradient(circle, rgba(23, 107, 255, 0.38), transparent 65%); animation: drift-a 26s ease-in-out infinite alternate; }

.phero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.phero__badge { margin-bottom: 20px; }
.phero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 1; letter-spacing: -0.04em; margin-bottom: 26px; }
.phero__line { display: block; overflow: hidden; padding-bottom: 0.07em; margin-bottom: -0.04em; }
.phero__line > span { display: inline-block; }
.phero__title em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phero__title i { font-style: normal; color: var(--cyan); }
.phero__intro { max-width: 58ch; }
.phero__lede { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.45; padding-left: 18px; border-left: 2px solid var(--cyan); }
.phero__intro p + p { margin-top: 14px; color: var(--steel); }
.phero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }


/* Hero entrance (released by .hero-go from main.js) */
.js:not(.hero-go) .phero__line > span { transform: translateY(110%); }
.js:not(.hero-go) .phero .crumbs,
.js:not(.hero-go) .phero__badge,
.js:not(.hero-go) .phero__intro,
.js:not(.hero-go) .phero__actions { opacity: 0; transform: translateY(20px); }
.phero__line > span { transition: transform 1.1s var(--ease-out); }
.phero__line:nth-child(2) > span { transition-delay: 0.08s; }
.phero__line:nth-child(3) > span { transition-delay: 0.16s; }
.phero .crumbs, .phero__badge, .phero__intro, .phero__actions { transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.phero__intro { transition-delay: 0.3s; }
.phero__actions { transition-delay: 0.42s; }

/* ---------- Pathways ---------- */
.lanes-sec { position: relative; padding: var(--section-y) 0; color: var(--white); background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); overflow-x: clip; }
.lanes-sec__head { margin-bottom: clamp(24px, 2.6vw, 36px); }

.lanes { position: relative; }
.lane {
  --lane: var(--lane-a);
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 0 clamp(24px, 4vw, 56px);
  padding: clamp(20px, 2.2vw, 28px) 0;
  border-top: 1px solid var(--line-dark);
  scroll-margin-top: 110px;
}
.lane:last-child { border-bottom: 1px solid var(--line-dark); }
.lane--publisher { --lane: var(--lane-p); }
.lane--advertiser { --lane: var(--lane-b); }

/* Each lane keeps its own coloured rail, continuing the hero's lines */
.lane__rail { position: relative; display: flex; justify-content: center; }
.lane__rail::before { content: ""; position: absolute; top: 0; bottom: calc(clamp(30px, 3.5vw, 44px) * -1); left: 50%; width: 2px; margin-left: -1px; background: linear-gradient(var(--lane), transparent); opacity: 0.55; }
.lane:first-child .lane__rail::before { top: calc(clamp(20px, 2.2vw, 28px) * -1); }
.lane__node {
  position: relative;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  color: var(--lane);
  background: var(--navy-800);
  box-shadow: inset 0 0 0 1.5px var(--lane), 0 14px 30px -14px rgba(0, 0, 0, 0.8);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease-out);
}
.lane__node .icon { width: 24px; height: 24px; }
.lane:hover .lane__node, .lane:focus-within .lane__node { background: var(--lane); color: var(--navy-950); transform: rotate(-6deg); }

.lane__for { margin-bottom: 8px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lane); }
.lane--agency .lane__for { color: #6FA4FF; }
.lane__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 16px; }
.lane__main p:not(.lane__for) { max-width: 60ch; color: var(--steel-2); }
.lane__main p + p { margin-top: 12px; }
.lane__notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; font-size: 0.9rem; border-radius: var(--radius-sm); background: rgba(40, 216, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(40, 216, 255, 0.25); }
.lane__notice .icon { margin-top: 2px; color: var(--lane-p); }

.lane__aside { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 24px; border-radius: var(--radius); background: rgba(13, 27, 48, 0.7); box-shadow: inset 0 0 0 1px var(--line-dark); }
.lane__aside-title { margin-bottom: 10px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel-dim); }
.lane__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.lane__list li { padding: 7px 12px; font-size: 0.86rem; font-weight: 700; color: var(--white); border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lane) 45%, transparent); background: color-mix(in srgb, var(--lane) 10%, transparent); }
.lane__cta { margin-top: auto; }
.lane__alt { margin-top: 14px; font-size: 0.88rem; font-weight: 700; color: var(--steel-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-dark-2); transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease); }
.lane__alt:hover, .lane__alt:focus-visible { color: var(--white); text-decoration-color: var(--cyan); }

/* ---------- Approach ---------- */
.papproach { padding: var(--section-y) 0; background: var(--off); color: var(--ink); overflow-x: clip; }
.papproach__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.papproach__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 20px; }
.papproach__text { max-width: 52ch; color: var(--ink-2); font-size: 1.04rem; }

.principles3 { position: relative; display: grid; gap: 0; }
.principles3::before { content: ""; position: absolute; left: 25px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--lane-a), var(--lane-p), var(--lane-b)); opacity: 0.6; transform: scaleY(0); transform-origin: top; transition: transform 1.4s var(--ease-in-out) 0.3s; }
.principles3.is-visible::before, html:not(.js) .principles3::before { transform: none; }
.p3 { position: relative; display: grid; grid-template-columns: 52px 1fr; column-gap: 20px; padding: 16px 0; }
.p3__icon { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--white); background: var(--grad-brand); box-shadow: 0 0 0 6px var(--off), 0 14px 26px -12px rgba(23, 107, 255, 0.8); }
.p3__icon .icon { width: 22px; height: 22px; }
.p3 h3 { align-self: end; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.01em; }
.p3 p { color: var(--ink-2); font-size: 0.96rem; }

/* ---------- Inquiry ---------- */
.inquiry { position: relative; padding: var(--section-y) 0; background: linear-gradient(180deg, var(--white), var(--off)); scroll-margin-top: 70px; }
.inquiry__grid { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(28px, 4vw, 56px); align-items: start; }

.inquiry__aside { position: sticky; top: 100px; }
.inquiry__aside-inner {
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius-lg);
  color: var(--white);
  background: radial-gradient(80% 60% at 100% 0%, rgba(23, 107, 255, 0.35), transparent 70%), linear-gradient(160deg, var(--navy-800), var(--navy-950));
  box-shadow: 0 40px 70px -40px rgba(7, 17, 31, 0.7);
  overflow: hidden;
}
.inquiry__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 16px; }
.inquiry__text { color: var(--steel-2); }
.inquiry__points { display: grid; gap: 14px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.inquiry__points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 0.92rem; color: var(--steel-2); }
.inquiry__points .icon { margin-top: 2px; color: var(--cyan); }
.inquiry__points a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--cyan); }

.inquiry__panel {
  position: relative;
  padding: clamp(24px, 3.5vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-light), 0 40px 80px -50px rgba(10, 22, 40, 0.35);
}

/* ---------- Reassurance band ---------- */
.preassure { padding: clamp(28px, 3vw, 40px) 0; color: var(--white); background: linear-gradient(90deg, var(--navy-900), var(--navy-850)); border-top: 1px solid var(--line-dark); }
.preassure__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.preassure__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: 6px; }
.preassure p { color: var(--steel-2); max-width: 60ch; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .phero.is-offscreen .aurora { animation-play-state: paused; }
}
/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .phero__inner { grid-template-columns: minmax(0, 1fr); }

  .lane { grid-template-columns: 56px minmax(0, 1fr); row-gap: 22px; }
  .lane__aside { grid-column: 2; }

  .papproach__grid { grid-template-columns: minmax(0, 1fr); }

  .inquiry__grid { grid-template-columns: minmax(0, 1fr); }
  .inquiry__aside { position: static; }
}

@media (max-width: 640px) {
  .phero__title { font-size: min(12vw, 3.3rem); }
  .phero__actions .btn { flex: 1 1 100%; }

  .lane { grid-template-columns: 1fr; padding: 20px 0; }
  .lane__rail { justify-content: flex-start; }
  .lane__rail::before { display: none; }
  .lane__aside { grid-column: 1; padding: 18px; }
  .lane__cta { width: 100%; }

  .inquiry__panel { padding: 22px 18px 26px; border-radius: var(--radius); }

  .preassure .btn { width: 100%; }
}

/* ---------- Photography ---------- */
.lane__aside { overflow: hidden; }
.lane__photo { width: calc(100% + 48px); margin: -22px -24px 20px; aspect-ratio: 16 / 9; border-radius: 0; box-shadow: none; }
.inquiry__photo { margin-top: 28px; aspect-ratio: 16 / 10; border-radius: var(--radius); box-shadow: none; }

@media (max-width: 1024px) {
  .inquiry__photo { display: none; }
}
@media (max-width: 640px) {
  .lane__photo { width: calc(100% + 36px); margin: -18px -18px 18px; }
}
