/*
 * Option C: A's hero and shell, with the colour brought back.
 *
 * Loaded after the theme stylesheets and sponsorship.css. Everything here is
 * built from things the site already does:
 *   colour cards     the Agency carousel card: tone background, 12px radius, the
 *                    same shadow, a large faint slate circle, condensed head
 *   section labels   used the way the live site uses them: the animated-line
 *                    chapeau twice, standing alone above a full-width showcase
 *                    (Home: "Featured Work", "Our Clients"); the same label
 *                    without the line as a plain eyebrow (Agency: "About Us");
 *                    most sections have no label, the headline does the work
 *   headlines        section headlines are the site's h2 (light Plantin);
 *                    Plantin Condensed bold is kept for the names of things
 *   ruled lists      the red-ruled list from the Services page
 *   numbers          Plantin light at hero size, as in case study stats
 * New to the site: the four-step band, the process line, the tick-list inventory.
 */

.sponsorship-c {
  --sc-gap: clamp(20px, 1.7123vw + 13.8356px, 40px);
  --sc-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  --sc-ease: cubic-bezier(0.5, 0, 0, 1);
  /* Two tiers of vertical space: sections of one chapter sit closer together
     than chapters do, so grouping reads without a label on every section. */
  --sc-space: clamp(3rem, 5.4vw, 6rem);
  --sc-space-chapter: clamp(4.75rem, 8.8vw, 9.75rem);
}

/* -- Sections ------------------------------------------------------------- */

/* Sections sit on the page colour, like Home and Agency, instead of white bands. */
.single-work .entry-content .case-section.sc-bg-page {
  background: transparent;
  padding-block: 0 var(--sc-space);
}
/* Full-width sections that hold a rail or band: the label stays on the 1080 column. */
.sc-full {
  padding-block: 0 var(--sc-space);
}
/* A section that opens a chapter. */
.single-work .entry-content :is(.case-section, .sc-full).sc-chapter {
  padding-top: calc(var(--sc-space-chapter) - var(--sc-space));
}
/* A section that follows a full-bleed image or band. */
.single-work .entry-content :is(.case-section, .sc-full).sc-after-band {
  padding-top: var(--sc-space);
}
.sc-col {
  box-sizing: border-box;
  padding-inline: max(var(--case-gutter), calc((100vw - var(--case-wide-width)) / 2));
}
.sponsorship-c .sc-col h3,
.sponsorship-c .case-section > h3 {
  margin: 0 0 2.25rem;
  max-width: 22ch;
}
/* Section headline: the site's h2. */
.single-work .sponsorship-c .case-section h3.sc-head {
  font-family: var(--serif-font);
  font-weight: 300;
  font-size: clamp(32px, 3.3vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.3px;
  text-wrap: balance;
  color: #000;
}
.single-work .sponsorship-c .case-bg-accent h3.sc-head {
  color: inherit;
}

/* Chapeau as a section label. */
.sponsorship-c .entry-content .chapeau-container {
  margin: 0 0 2.5rem;
  min-height: 1px;
}
.sponsorship-c .case-bg-accent .chapeau-text,
.sponsorship-c .sc-steps-section .chapeau-text {
  color: var(--c-white);
}

/* Lists inside case sections: drop the case-study list spacing. */
.single-work .case-section :is(.sc-wordmarks, .sc-pressures, .sc-timeline, .sc-checklist) > li {
  margin-top: 0;
}

/* -- 4.2 Proof: client names as condensed wordmarks ------------------------ */

.sc-wordmarks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  padding: 0;
  overflow: hidden; /* hides the separator of whichever name starts a line */
}
.sc-wordmarks li {
  position: relative;
  padding-right: 1.4em;
  font-family: var(--serif-condensed);
  font-weight: 700;
  font-size: clamp(20px, 1.9vw, 27px);
  line-height: 1.2;
  white-space: nowrap;
}
.sc-wordmarks li:last-child {
  padding-right: 0;
}
.sc-wordmarks li::before {
  content: "·";
  position: absolute;
  left: -0.85em;
  color: var(--ik-red);
}

/* -- 4.3 Why now: four numbered statements --------------------------------- */

.sc-pressures {
  list-style: none;
  counter-reset: p;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.75rem) var(--case-gap);
  margin: 0;
  padding: 0;
}
.sc-pressures li {
  counter-increment: p;
  border-top: 1px solid var(--ik-red);
  padding-top: 1.1rem;
  font-family: var(--serif-font);
  font-weight: 300;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  color: #000;
}
.sc-pressures li::before {
  content: counter(p, decimal-leading-zero);
  display: block;
  margin-bottom: 1.1rem;
  font: 500 15px/1 var(--sans-font);
  letter-spacing: 1px;
  color: var(--ik-red);
}

/* -- Colour card (Agency carousel card) ------------------------------------ */

.sc-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 12px;
  background: var(--tone, var(--c-blue));
  box-shadow: var(--sc-shadow);
  color: #000;
}
.sc-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--dark-accent);
  opacity: 0.1;
  mix-blend-mode: multiply;
  pointer-events: none;
}
/* Circle positions, taken from the Agency cards' SVGs (400 x 600 viewBox). */
.sc-dot-bl::after { width: 100%; left: -31%; bottom: -21%; }
.sc-dot-tl::after { width: 100%; left: -31%; top: -21%; }
.sc-dot-br::after { width: 83%; right: -43%; bottom: -24%; }
.sc-dot-big-r::after { width: 185%; left: 14.5%; top: -1%; }
.sc-dot-big-l::after { width: 185%; right: 14.5%; top: -1%; }

.sponsorship-c .sc-card h4 {
  margin: 0;
  font-family: var(--serif-condensed);
  font-weight: 700;
  font-size: var(--font-lg);
  line-height: 1.1;
  letter-spacing: -0.75px;
  color: #000;
}
.sc-card a,
.sc-card a:visited,
.sc-card a:hover {
  color: inherit;
}
.sc-num {
  font: 500 15px/1 var(--sans-font);
  letter-spacing: 1px;
}

/* -- 4.4 Services: four tall colour cards, wider than the text column ------- */

.sc-rail {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sc-gap);
  max-width: 1760px;
  margin-inline: auto;
  padding-inline: 32px;
}
.sc-rail .sc-card {
  display: flex;
  flex-direction: column;
  min-height: clamp(380px, 31vw, 500px);
  padding: 24px clamp(20px, 2.2vw, 32px) 32px;
}
.sponsorship-c .sc-rail .sc-card h4 {
  margin-top: 1.25rem;
}
.sponsorship-c .sc-rail .sc-card p {
  margin: 0.9rem 0 0;
}

/* -- One roof: four steps on slate ------------------------------------------ */

.sc-steps-section {
  background: var(--dark-accent);
  color: var(--c-white);
  padding-block: var(--sc-space) 0;
}
.sc-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(248, 244, 227, 0.35);
}
.sc-steps li + li {
  border-left: 1px solid rgba(248, 244, 227, 0.35);
}
.sponsorship-c .sc-steps a,
.sponsorship-c .sc-steps a:visited {
  --pad: clamp(1.25rem, 2.4vw, 2.25rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--pad) var(--pad) clamp(1.75rem, 3vw, 2.75rem);
  color: var(--c-white);
  text-decoration: none;
  transition: color 0.3s ease;
}
/* The numbered disc floods the cell with its colour on hover or focus. */
.sc-steps a::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: var(--pad);
  left: var(--pad);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--tone);
  transition: transform 0.75s var(--sc-ease);
}
.sponsorship-c .sc-steps a:hover,
.sponsorship-c .sc-steps a:focus-visible {
  color: #000;
}
.sc-steps a:hover::after,
.sc-steps a:focus-visible::after {
  transform: scale(40);
}
.sc-disc {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  font: 500 15px/1 var(--sans-font);
  letter-spacing: 1px;
  color: #000;
}
.sc-verb {
  margin: clamp(1.5rem, 3.5vw, 3rem) 0 0.75rem;
  font-family: var(--serif-font);
  font-weight: 300;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.6px;
  white-space: nowrap;
}
.sc-what {
  font-size: 17px;
  line-height: 1.4;
}
.sc-line {
  margin-top: auto;
  padding-top: 1.5rem;
  font: 500 13px/1.35 var(--sans-font);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.sc-line::after {
  content: " →";
}

/* -- Asset icons: 40 x 40 grid, thin slate line, one red mark each ----------- */

.sc-icon {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
  overflow: visible;
  fill: none;
  stroke: var(--dark-accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sc-icon .dot {
  fill: var(--ik-red);
  stroke: none;
}
.sc-icon .red {
  fill: var(--ik-red);
  stroke: var(--ik-red);
}

/* -- 4.5 What we value: the ruled list, made tickable ----------------------- */

.sc-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.sponsorship-c .sc-split h3 {
  margin: 0 0 1.25rem;
}
.sc-inv-result {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 2rem 0 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ik-red);
}
.sc-inv-result b {
  min-width: 1.1ch;
  font-family: var(--serif-font);
  font-weight: 300;
  font-size: var(--font-hero);
  line-height: 0.9;
  color: #000;
}
.sc-inv-result span {
  flex: 1;
  font-size: 17px;
  line-height: 1.4;
}
.sponsorship-c .sc-split a.btn-rounded {
  margin: 0;
}
/* Two columns of five: tick ring, then the label. No icons here; those are C2's. */
.sc-inventory {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 var(--case-gap);
  margin: 0;
}
.sc-inv-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.62em;
  border-top: 1px solid var(--ik-red);
  font-size: var(--font-body);
  line-height: 1.25;
  cursor: pointer;
}
.sc-inv-item input {
  position: absolute;
  opacity: 0;
}
.sc-inv-item span {
  flex: 1;
  text-wrap: balance; /* a label that needs two lines breaks evenly, with no stray last word */
}
.sc-inv-item i {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--dark-accent);
  border-radius: 50%;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.sc-inv-item i::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}
.sc-inv-item input:checked + i {
  background: var(--ik-red);
  border-color: var(--ik-red);
}
.sc-inv-item input:checked + i::after {
  opacity: 1;
}
.sc-inv-item input:focus-visible + i {
  outline: 2px solid var(--ik-red);
  outline-offset: 2px;
}

/* -- 4.6 Process: six numbered stops on a red line -------------------------- */

.sc-timeline {
  list-style: none;
  counter-reset: step;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  --tl-gap: clamp(14px, 1.5vw, 24px);
  gap: var(--tl-gap);
  margin: 3rem 0 0;
  padding: 0;
}
/* The line joins the first stop to the last and goes no further. */
.sc-timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  right: calc((100% - 5 * var(--tl-gap)) / 6 - 28px);
  height: 1px;
  background: var(--ik-red);
}
.sc-timeline li {
  counter-increment: step;
  position: relative;
  padding-top: 84px;
}
.sc-timeline li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--ik-red);
  border-radius: 50%;
  background: var(--c-white);
  font: 500 15px/1 var(--sans-font);
  letter-spacing: 1px;
  color: #000;
}
.sc-timeline li:last-child::before {
  background: var(--ik-red);
  color: #fff;
}
.sponsorship-c .sc-timeline h4 {
  margin: 0;
  font-family: var(--serif-condensed);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
}
.sponsorship-c .case-section .sc-timeline p {
  margin: 0.5rem 0 0;
  font-size: 16.5px;
  line-height: 1.45;
}

/* -- 4.7 What you receive: one wide colour card ----------------------------- */

.sc-panel {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--case-gap);
  align-items: start;
  padding: clamp(1.75rem, 4vw, 3.5rem);
}
.sponsorship-c .sc-panel h3 {
  margin: 0;
}
.single-work .sponsorship-c .case-section .sc-panel h3.sc-head {
  font-size: clamp(28px, 2.7vw, 38px);
}
.sc-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--case-gap);
  margin: 0;
  padding: 0;
}
.sc-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding-block: 0.75em;
  border-top: 1px solid rgba(48, 65, 73, 0.45);
  line-height: 1.3;
}
.sc-checklist li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.1em;
  border-radius: 50%;
  background: var(--dark-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='m6 11.5 3.3 3.3L16 8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

/* The archive's large item lets its image run 64px past the column. On screens
   with narrower side margins that pushed the page sideways, so trim it at the edge. */
.single-work .sponsorship-c .entry-content #projects {
  overflow-x: clip;
}

/* -- 4.8 Additional credentials: the Work archive's small item, four across -- */

/* The case-study divider (rule + 24px condensed heading) opens the row. */
.single-work .sponsorship-c .entry-content .sc-divider {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: 1.75rem;
}
.sc-credits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--case-gap) clamp(1.25rem, 2.4vw, 2rem);
}
.sponsorship-c .sc-credits .work-item.small-item {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: inherit;
}
.sponsorship-c .sc-credits .small-item .work-image {
  flex: none; /* the archive's flex: 0 would collapse it; aspect-ratio sets the height */
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  margin: 0 0 1.1rem;
}
.sponsorship-c .sc-credits .small-item .work-text {
  flex: 0 0 auto;
}
.sponsorship-c .sc-credits .work-item .chapeau-project {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 1.2px;
}
.single-work .sponsorship-c .case-section .sc-credits .work-item.small-item h2 {
  margin: 0.4rem 0 0;
  font-size: 21px;
  line-height: 1.16;
  letter-spacing: 0;
  color: #000;
}

/* -- 4.9 Why Interkom: statement and list in one slate section -------------- */

.single-work .sponsorship-c .case-section .case-statement + ul {
  margin: 2.5rem 0 0;
}

/* -- 4.12 Final CTA: colour card beside the form ---------------------------- */

/* The card runs the height of the form, like the tall Agency cards. */
#contact .sc-split {
  align-items: stretch;
}
.sc-cta {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3.4vw, 3rem);
}
.sc-cta .sc-contacts {
  margin-top: auto;
}
.sponsorship-c .case-section .sc-cta h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.08;
  color: #000;
}
.sc-contacts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 2rem 0 0;
  border-bottom: 1px solid rgba(48, 65, 73, 0.45);
}
.single-work .case-section .sc-contacts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding-block: 0.6em;
  border-top: 1px solid rgba(48, 65, 73, 0.45);
}
.sc-contacts span {
  font: 500 14px/1.6 var(--sans-font);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sponsorship-c .sc-split #gform_wrapper_1 {
  margin-bottom: 0;
}

/* -- Smaller screens -------------------------------------------------------- */

@media (max-width: 1100px) {
  .sc-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sc-rail .sc-card {
    min-height: 320px;
  }
  .sc-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sc-steps li:nth-child(3) {
    border-left: 0;
  }
  .sc-steps li:nth-child(n + 3) {
    border-top: 1px solid rgba(248, 244, 227, 0.35);
  }
}
@media (max-width: 1000px) {
  .sc-split,
  .sc-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  /* The tick list comes before its count and button. */
  #inventory .sc-split {
    gap: 0;
  }
  #inventory .sc-split > div {
    display: contents;
  }
  #inventory .sc-inventory {
    order: 1;
    margin-top: 0.75rem;
  }
  #inventory .sc-inv-result {
    order: 2;
    margin-top: 0; /* its top rule closes the list above */
  }
  #inventory .sc-split a.btn-rounded {
    order: 3;
    justify-self: start;
  }
  /* The process line turns vertical. */
  .sc-timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  /* One segment from each stop down to the next, so the line ends at the last stop. */
  .sc-timeline::before {
    content: none;
  }
  .sc-timeline li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 56px;
    bottom: 0;
    left: 28px;
    width: 1px;
    background: var(--ik-red);
  }
  .sc-timeline li {
    min-height: 72px;
    padding: 0 0 2rem 84px;
  }
  .sc-timeline li:last-child {
    padding-bottom: 0;
  }
  .sponsorship-c .sc-timeline h4 {
    padding-top: 0.9rem;
  }
}
@media (max-width: 700px) {
  /* The service cards swipe sideways, like the creative row in case studies. */
  .sc-rail {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 0 var(--case-gutter) 1rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--case-gutter);
  }
  .sc-rail .sc-card {
    flex: 0 0 78%;
    min-height: 380px;
    scroll-snap-align: start;
  }
  .sc-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .sc-steps li + li {
    border-left: 0;
    border-top: 1px solid rgba(248, 244, 227, 0.35);
  }
  .sc-pressures,
  .sc-inventory,
  .sc-checklist {
    grid-template-columns: minmax(0, 1fr);
  }
  .sc-wordmarks li {
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sc-steps a::after {
    transition: none;
  }
}

/* -- Credential cards on smaller screens --------------------------------------- */

@media (max-width: 1000px) {
  .sc-credits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  /* One per row: a small image beside the name and line, so four cards stay short. */
  .sc-credits {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .sponsorship-c .sc-credits .work-item.small-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.1rem;
  }
  .single-work .sponsorship-c .case-section .sc-credits .work-item.small-item h2 {
    margin-top: 0.25rem;
    font-size: 19px;
  }
  .sponsorship-c .sc-credits .small-item .work-image {
    flex: none;
    width: 92px;
    aspect-ratio: 1;
    margin: 0;
  }
  .sponsorship-c .sc-credits .small-item .work-text {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* -- Phone refinements ------------------------------------------------------- */

@media (max-width: 700px) {
  /* At this width "balance" strands single words on their own line. */
  .single-work .sponsorship-c .case-section h3.sc-head {
    text-wrap: pretty;
  }
}
@media (max-width: 600px) {
  /* Contact rows: label above the value, so the email never runs past the rule. */
  .single-work .case-section .sc-contacts li {
    flex-direction: column;
    gap: 0.1rem;
  }
}
