.work-page {
  margin: 0;
  color: #f2f4f7;
  background:
    radial-gradient(circle at 88% 8%, rgba(90, 125, 166, 0.24), transparent 32rem),
    #071018;
  font-family: "Satoshi", Arial, sans-serif;
}

[dir="rtl"] .work-page,
.work-page[dir="rtl"] {
  font-family: "Thamanyah Sans", Arial, sans-serif;
}

.work-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 96px;
}

.work-hero,
.case-hero {
  display: grid;
  gap: 18px;
  max-width: 880px;
  min-height: 52vh;
  align-content: center;
}

.work-back,
.case-cta {
  width: fit-content;
  color: #9cb9c8;
  text-underline-offset: 5px;
}

.work-kicker,
.work-card__eyebrow {
  margin: 0;
  color: #9cb9c8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.work-hero h1,
.case-hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(3.2rem, 9vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

[dir="rtl"] .work-hero h1,
[dir="rtl"] .case-hero h1 {
  letter-spacing: 0;
  line-height: 1.05;
}

.work-hero > p:last-child,
.case-summary {
  max-width: 68ch;
  margin: 0;
  color: #a7b0ba;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.work-card {
  grid-column: span 6;
  overflow: hidden;
  border: 1px solid rgba(156, 185, 200, 0.18);
  border-radius: 18px;
  background: rgba(14, 26, 38, 0.82);
}

.work-card:nth-child(3n + 1) {
  grid-column: span 7;
}

.work-card:nth-child(3n + 2) {
  grid-column: span 5;
}

.work-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0e1a26;
}

.work-card > div {
  padding: 24px;
}

.work-card h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.work-card h2 a {
  color: #fff;
  text-decoration: none;
}

.work-card p {
  color: #a7b0ba;
  line-height: 1.6;
}

.work-card__status {
  font-size: 0.78rem;
}

.case-study {
  max-width: 1100px;
}

.case-hero {
  max-width: none;
}

.case-hero__image {
  width: 100%;
  margin-top: 24px;
  border-radius: 20px;
  background: #0e1a26;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  padding: 8px 12px;
  border: 1px solid rgba(156, 185, 200, 0.24);
  border-radius: 999px;
  color: #cbd5dc;
  font-size: 0.82rem;
  text-transform: capitalize;
}

.case-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 4px 0 0;
}

.case-facts div {
  display: grid;
  gap: 3px;
}

.case-facts dt {
  color: #7f8b96;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-facts dd {
  margin: 0;
  color: #f2f4f7;
}

.case-section {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 48px;
  padding: 72px 0;
  border-top: 1px solid rgba(156, 185, 200, 0.18);
}

.case-section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 500;
}

.case-section__intro {
  display: grid;
  align-content: start;
  gap: 12px;
}

.case-section__intro h2 {
  font-size: clamp(1.65rem, 3vw, 2.8rem);
}

.case-section > p {
  margin: 0;
  color: #c2c9d0;
  font-size: 1.15rem;
  line-height: 1.8;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.proof-grid figure,
.proof-note,
.proof-metric {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(156, 185, 200, 0.18);
  border-radius: 14px;
  background: #0e1a26;
}

.proof-grid img {
  width: 100%;
  border-radius: 9px;
}

.proof-grid video {
  display: block;
  width: 100%;
  border-radius: 9px;
  background: #071018;
}

.proof-grid figcaption {
  margin-top: 10px;
  color: #a7b0ba;
  line-height: 1.5;
}

.proof-metric {
  display: grid;
  gap: 8px;
}

.proof-metric strong {
  color: #9cb9c8;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
}

.proof-metric small {
  color: #7f8b96;
  line-height: 1.5;
}

.proof-note h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 500;
}

.proof-note p {
  margin: 0;
  color: #a7b0ba;
  line-height: 1.65;
}

.proof-link {
  display: flex;
  min-height: 112px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(156, 185, 200, 0.18);
  border-radius: 14px;
  color: #f2f4f7;
  background: #0e1a26;
  font-size: 1.05rem;
  text-decoration: none;
}

.proof-link span:last-child {
  color: #9cb9c8;
  font-size: 1.3rem;
}

.case-cta {
  display: inline-flex;
  margin-top: 40px;
  padding: 13px 18px;
  border-radius: 999px;
  color: #071018;
  background: #9cb9c8;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 760px) {
  .work-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 28px;
  }

  .work-card,
  .work-card:nth-child(n) {
    grid-column: 1 / -1;
  }

  .case-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 0;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .work-card {
    transition: transform 180ms ease, border-color 180ms ease;
  }

  .proof-link {
    transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms ease;
  }

  .work-card:hover {
    transform: translateY(-3px);
    border-color: rgba(156, 185, 200, 0.44);
  }


  .proof-link:hover {
    transform: translateY(-2px);
    border-color: rgba(156, 185, 200, 0.44);
  }
}

.work-card h2 a:focus-visible,
.work-back:focus-visible,
.case-cta:focus-visible,
.proof-link:focus-visible {
  outline: 3px solid #9cb9c8;
  outline-offset: 4px;
}

.proof-link:active,
.case-cta:active {
  transform: scale(0.97);
}

/* Case study --------------------------------------------------------------
   Sits inside the real site chrome, so it inherits the header, footer, fonts
   and colour system. Only the article itself is styled here. */

.case-body {
  background: var(--bg, #071018);
}

.case-page {
  padding: clamp(6rem, 12vw, 9rem) 1.25rem clamp(4rem, 8vw, 6rem);
}

.case-shell {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.case-back {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--light-blue, #9cb9c8);
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.case-back:hover { text-decoration: underline; }

.case-eyebrow {
  font-size: 0.85rem;
  color: var(--light-blue, #9cb9c8);
  margin: 0 0 0.5rem;
}

.case-intro h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}

.case-lede {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 1.6;
  max-width: 46rem;
  margin: 0 0 2rem;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.25rem;
  margin: 0 0 1.75rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(156, 185, 200, 0.18);
  border-bottom: 1px solid rgba(156, 185, 200, 0.18);
}

.case-facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel, #a7b0ba);
  margin-bottom: 0.35rem;
}

.case-facts dd { margin: 0; font-size: 0.95rem; }

.case-live {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(156, 185, 200, 0.4);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.case-live:active { transform: scale(0.97); }

.case-hero {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(156, 185, 200, 0.16);
}

.case-hero img { display: block; width: 100%; height: auto; }

.case-chapter h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 1rem;
}

.case-chapter p { max-width: 46rem; line-height: 1.7; margin: 0; }

/* Proof layouts. Each kind of work is arranged the way it reads best. */

.case-proof { display: grid; gap: 1.25rem; margin-top: 1.5rem; }

.case-proof--device { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.case-proof--brand { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.case-proof--print { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.case-proof--social { grid-template-columns: repeat(auto-fit, minmax(min(50%, 12rem), 1fr)); }
.case-proof--ads { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.case-proof--metrics { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.case-proof--quote, .case-proof--notes { grid-template-columns: minmax(0, 1fr); }
.case-proof--compare { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }

.proof-image, .proof-device { margin: 0; }

.proof-image img, .proof-image video, .proof-device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Screenshots read as screenshots inside a browser frame. */
.proof-device {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(156, 185, 200, 0.2);
  background: rgba(7, 16, 24, 0.6);
}

.proof-device img { border-radius: 0; }

.proof-device__chrome {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(156, 185, 200, 0.08);
  border-bottom: 1px solid rgba(156, 185, 200, 0.16);
}

.proof-device__chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(156, 185, 200, 0.32);
}

/* Logos and brand marks need room and a light backdrop. */
.case-proof--brand .proof-image {
  background: #f2f4f7;
  border-radius: 14px;
  padding: 1.75rem;
}

.case-proof--brand .proof-image img { mix-blend-mode: multiply; }

.case-proof--social .proof-image img { aspect-ratio: 1 / 1; object-fit: cover; }

.case-proof--print .proof-image img { aspect-ratio: 3 / 4; object-fit: cover; }

.proof-metric {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(156, 185, 200, 0.18);
  background: rgba(156, 185, 200, 0.05);
}

.proof-metric strong { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1; }
.proof-metric span { font-size: 0.9rem; color: var(--steel, #a7b0ba); }
.proof-metric small { font-size: 0.72rem; color: var(--steel, #a7b0ba); opacity: 0.75; }

.proof-note {
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(156, 185, 200, 0.18);
}

.proof-note h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.proof-note p { margin: 0; line-height: 1.65; }

.case-proof--quote .proof-note {
  border: 0;
  border-inline-start: 3px solid var(--light-blue, #9cb9c8);
  border-radius: 0;
  font-size: 1.1rem;
}

.proof-link {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(156, 185, 200, 0.3);
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
}

figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--steel, #a7b0ba);
  line-height: 1.5;
}

.case-cta {
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 20px;
  border: 1px solid rgba(156, 185, 200, 0.2);
  background:
    radial-gradient(circle at 80% 15%, rgba(90, 125, 166, 0.22), transparent 40%),
    linear-gradient(135deg, #0e1a26 0%, #071018 100%);
  text-align: center;
}

.case-cta h2 { margin: 0 0 0.75rem; }
.case-cta p { margin: 0 auto 1.5rem; max-width: 34rem; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .case-live { transition: none; }
  .case-live:active { transform: none; }
}

/* The CTA sits inside the site's own button and heading rules, which assume a
   different container, so its layout is stated explicitly here. */
.case-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.case-cta h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.15;
  max-width: 22ch;
  margin: 0;
}

.case-cta p {
  margin: 0;
  max-width: 38ch;
}

.case-cta .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  white-space: nowrap;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
}

.case-cta p {
  color: rgba(242, 244, 247, 0.78);
  font-weight: 400;
  line-height: 1.6;
}
