/* Our work page: a light, editorial layout built on real content.
   Same rules as the about page: a 1260px column, 150px between sections, 72px section titles, 24px intros. */
.work-apple {
  --wk-bg: #fff;
  --wk-tile: #f5f5f7;
  --wk-text: #1d1d1f;
  --wk-grey: #6e6e73;
  --wk-line: rgba(0, 0, 0, .1);
  --wk-blue: #0066cc;
  --wk-radius: 24px;
  --wk-font: "Poppins", sans-serif;
  --wk-ease: cubic-bezier(.28, .11, .32, 1);
  --wk-gutter: max(22px, calc((100% - 1260px) / 2));
  --wk-space: clamp(80px, 10vw, 150px);
  --wk-title: clamp(40px, 5.6vw, 72px);
  background: var(--wk-bg);
}

.wk {
  color: var(--wk-text);
  font-family: var(--wk-font);
  -webkit-font-smoothing: antialiased;
  background: var(--wk-bg);
}

.wk h1,
.wk h2,
.wk p,
.wk dl,
.wk dd,
.wk figure,
.wk blockquote {
  margin: 0;
}

.wk strong {
  color: var(--wk-text);
  font-weight: 600;
}

.wk-section {
  padding: var(--wk-space) var(--wk-gutter) 0;
}

.wk-section:last-child {
  padding-bottom: var(--wk-space);
}

.wk-label,
.wk-eyebrow {
  margin-bottom: 12px !important;
  color: var(--wk-grey);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  letter-spacing: .011em;
  line-height: 1.2;
}

.wk-sub {
  max-width: 640px;
  margin: 18px 0 0 !important;
  color: var(--wk-grey);
  font-size: clamp(19px, 1.9vw, 24px);
  font-weight: 500;
  letter-spacing: .009em;
  line-height: 1.35;
}

.wk-hero .wk-sub {
  max-width: 720px;
  margin-top: 22px !important;
}

/* Hero */
.wk-hero {
  padding: clamp(130px, 14vw, 190px) var(--wk-gutter) 0;
  text-align: center;
}

.wk-hero .wk-sub {
  margin-inline: auto !important;
}

.wk-hero h1 {
  font-size: clamp(56px, 9vw, 112px);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1.02;
}

/* Section headers */
.wk-head {
  margin-bottom: clamp(40px, 4.5vw, 64px);
  text-align: left;
}

.wk-head h2,
.wk-end h2 {
  font-size: var(--wk-title);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.06;
}

/* Featured case study */
.wk-case__media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--wk-radius);
  background: var(--wk-tile);
}

.wk-case__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wk-case {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(32px, 4vw, 48px);
}

.wk-case h2 {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.16;
}

.wk-case__text {
  margin-top: 18px !important;
  color: var(--wk-grey);
  font-size: 17px;
  line-height: 1.6;
}

.wk-specs > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--wk-line);
}

.wk-specs > div:last-child {
  border-bottom: 1px solid var(--wk-line);
}

.wk-specs dt {
  color: var(--wk-grey);
  font-size: 14px;
}

.wk-specs dd {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

/* Client list: a plain index, one row per client */
.wk-clients {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--wk-line);
}

.wk-clients li {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--wk-line);
  transition: padding .4s var(--wk-ease);
}

.wk-clients li:hover {
  padding-left: 12px;
}

.wk-clients span:first-child {
  font-size: clamp(19px, 1.9vw, 24px);
  font-weight: 600;
  letter-spacing: -.03em;
}

.wk-clients span:not(:first-child) {
  color: var(--wk-grey);
  font-size: 15px;
}

.wk-clients span:last-child {
  text-align: right;
}

/* Testimonials: type only */
.wk-quotes {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
}

.wk-quote {
  padding-top: 24px;
  border-top: 1px solid var(--wk-text);
}

.wk-quote blockquote {
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.4;
}

.wk-quote figcaption {
  margin-top: 22px;
  color: var(--wk-grey);
  font-size: 14px;
}

.wk-quote figcaption strong {
  display: block;
  font-size: 15px;
}

/* Closing call to action */
.wk-end {
  text-align: left;
}

.wk-button {
  margin-top: 32px;
  padding: 15px 28px;
  color: #fff;
  font: 600 16px/1 var(--wk-font);
  border: 0;
  border-radius: 999px;
  background: var(--wk-text);
  cursor: pointer;
  transition: background .3s ease;
}

.wk-button:hover {
  background: #000;
}

.wk-button:focus-visible {
  outline: 3px solid var(--wk-blue);
  outline-offset: 3px;
}

/* Items rise in as they scroll into view (work.js adds .is-revealed). */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .wk [data-work-reveal] {
    opacity: 0;
    transform: translateY(28px);
  }

  .wk [data-work-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition: opacity .9s var(--wk-ease), transform .9s var(--wk-ease);
  }
}

@media (max-width: 834px) {
  .wk-case,
  .wk-quotes {
    grid-template-columns: 1fr;
  }

  .wk-clients li {
    grid-template-columns: 1fr auto;
  }

  .wk-clients span:nth-child(2) {
    display: none;
  }
}

@media (max-width: 600px) {
  .wk-hero {
    padding-top: 130px;
  }

  .wk-clients span:last-child {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wk-clients li {
    transition: none;
  }
}

/* Signature moments */

/* The case study cover settles into place as it scrolls into view (where scroll timelines exist). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .wk-case__media img {
      animation: wk-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
  }
}

@keyframes wk-settle {
  from { transform: scale(1.18); filter: saturate(.6); }
  to { transform: none; filter: none; }
}

/* The client map sits in the same 1260px column as everything else. */
.wk-map .client-map__frame {
  width: 100%;
  margin: 0;
}

/* Titles alternate: the map and the closing call to action sit in the centre;
   the case study, client list and quotes start on the left. */
.wk-map .wk-head,
.wk-end {
  text-align: center;
}

.wk-map .wk-sub,
.wk-end .wk-sub {
  margin-inline: auto !important;
}
