/* ============================================================
   "Our work" page styles. Brand tokens: colors_and_type.css.
   Shared chrome (nav/footer/base/focus): site.css.
   This file = page components (extracted from the design's inline
   styles) + the scroll-reveal machinery + the responsive layer.
   Behaviour: js/our-work.js. Reveal + filtering are progressive
   enhancement — with JS off, all cards show and content is readable.
   ============================================================ */

body { margin: 0; background: var(--ax-ink-2); color: #fff; }
a { color: var(--ax-turquoise); text-decoration: none; }
a:hover { text-decoration: none; }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.ow-root { position: relative; background: var(--ax-ink); color: #fff; font-family: var(--font-text); overflow: hidden; }
.ow-nav-wrap { position: relative; z-index: 20; margin-bottom: -78px; }
.ow-container { position: relative; max-width: 1560px; margin: 0 auto 0 6vw; }
.ow-section { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 104px) clamp(24px, 4vw, 56px); }
.ow-section--dark { background: var(--ax-ink); color: #fff; }
.ow-section--light { background: #fff; color: var(--ax-ink-2); }
.ow-divider { height: 2px; background: linear-gradient(to right, transparent, rgba(26,206,188,.75), transparent); }

/* ============================================================
   TYPE COMPONENTS
   ============================================================ */
.ow-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .22em; color: var(--ax-turquoise); margin: 0 0 18px; font-weight: 400; }
.ow-eyebrow--light { color: var(--ax-turquoise-ink); }

.ow-h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.1; margin: 0; max-width: 24ch; }
.ow-h2 .hl { color: var(--ax-turquoise); }
.ow-h2--light .hl { color: var(--ax-turquoise-ink); }

/* Inline highlight span — colour follows the section context. */
.hl { color: var(--ax-turquoise); }
.ow-section--light .hl { color: var(--ax-turquoise-ink); }

/* Pull-quote */
.ow-quote { margin: clamp(56px, 9vw, 96px) 0 0; padding: 6px 0 6px 34px; border-left: 2px solid var(--ax-turquoise); }
.ow-quote p { font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 3vw, 28px); line-height: 1.4; color: #fff; margin: 0; max-width: 52ch; text-wrap: pretty; }
.ow-quote__logo { display: block; height: 40px; width: auto; margin-top: 24px; }
.ow-quote--light .ow-quote__logo + .ow-quote__cite { margin-top: 14px; }
.ow-quote__cite { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .14em; color: var(--ax-turquoise); margin-top: 22px; font-style: normal; }
.ow-quote--light p { color: var(--ax-ink-2); }
.ow-quote--light .hl { color: var(--ax-turquoise-ink); }
.ow-quote--light .ow-quote__cite { color: var(--ax-turquoise-ink); }

/* ============================================================
   BUTTONS
   ============================================================ */
.ow-btn { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; border-radius: 999px; padding: 14px 30px; text-decoration: none; white-space: nowrap;
      transition: transform .2s var(--ease, ease), box-shadow .2s var(--ease, ease), background .2s var(--ease, ease), border-color .2s var(--ease, ease); }
.ow-btn__icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ow-btn--primary { color: var(--ax-black); background: var(--ax-turquoise); box-shadow: none; }
.ow-btn--primary:hover { box-shadow: none; }
.ow-btn--lg { padding: 15px 34px; box-shadow: none; }
.ow-btn--ghost { color: #fff; border: 1px solid rgba(26,206,188,.4); }
.ow-btn--ghost:hover { border-color: rgba(26,206,188,.85); }
.ow-btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

/* ============================================================
   HERO
   ============================================================ */
.ow-hero { position: relative; overflow: hidden;
      background-image: linear-gradient(rgba(26,206,188,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(26,206,188,.05) 1px, transparent 1px);
      background-size: 48px 48px; }
.ow-hero__media { position: absolute; top: 0; right: 1.5%; width: 46%; height: 88%; max-height: 560px; overflow: hidden; pointer-events: none;
      -webkit-mask-image: radial-gradient(130% 130% at 95% 6%, #000 30%, transparent 78%), linear-gradient(to left, transparent 0, #000 14%);
      mask-image: radial-gradient(130% 130% at 95% 6%, #000 30%, transparent 78%), linear-gradient(to left, transparent 0, #000 14%);
      -webkit-mask-composite: source-in; mask-composite: intersect; }
.ow-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; filter: brightness(1.12) saturate(1.05); }
.ow-hero__media-wash1 { position: absolute; inset: 0; background: linear-gradient(200deg, rgba(4,20,27,.1), rgba(2,12,16,.5) 66%, var(--ax-ink) 100%); mix-blend-mode: multiply; }
.ow-hero__media-wash2 { position: absolute; inset: 0; background: radial-gradient(90% 90% at 88% 12%, rgba(26,206,188,.18), transparent 62%); }
.ow-hero__scrim { position: absolute; inset: 0; background:
  linear-gradient(to bottom, #020C10 0%, #020C10 14%, rgba(2,12,16,.72) 22%, rgba(2,12,16,.32) 32%, transparent 44%),
  radial-gradient(115% 100% at 52% 42%, rgba(2,12,16,.32) 0%, rgba(2,12,16,.78) 62%, rgba(2,12,16,.9) 100%); }
/* Top padding matches about.css / what-we-do.css so the hero content begins
   at the same vertical point on every content page (the design source used a
   smaller 172px top — overridden here for cross-page consistency). */
.ow-hero__inner { position: relative; z-index: 2; max-width: 1560px; margin: 0 auto 0 6vw; padding: clamp(120px, 16vw, 200px) clamp(24px, 4vw, 56px) clamp(88px, 12vw, 104px); }
.ow-hero__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 7.5vw, 78px); line-height: .98; letter-spacing: -.02em; margin: 26px 0 0; max-width: 17ch; }
.ow-hero__title .hl { color: var(--ax-turquoise); text-shadow: 0 0 32px rgba(26,206,188,.6); }
.ow-hero__lead { font-weight: 300; font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: rgba(255,255,255,.82); max-width: 58ch; margin: 26px 0 0; }

/* ============================================================
   WHO WE WORK WITH (light) — logo grid + quote
   ============================================================ */
.ow-clients__lead { font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 3vw, 26px); line-height: 1.25; margin: 0 0 clamp(48px, 8vw, 88px); color: var(--ax-ink-2); max-width: 34ch; }
.ow-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(40px, 5vw, 56px) clamp(48px, 6vw, 76px); align-items: center; }
.ow-logo { height: 66px; display: flex; align-items: center; justify-content: center; }
.ow-logo img { width: 122px; height: auto; max-width: 100%; max-height: 62px; object-fit: contain; display: block; }
.ow-logo img.ow-logo--sm { width: 58px; }
.ow-logo img.ow-logo--lg { width: 170px; }

/* ============================================================
   CASE STUDIES (dark) — filters + card grid
   ============================================================ */
.ow-work__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 38px; }
.ow-filters { display: flex; flex-direction: column; gap: 18px; }
.ow-filter-row { display: grid; grid-template-columns: 78px 1fr; gap: 18px; align-items: start; }
.ow-filter-label { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .16em; color: var(--ax-turquoise); padding-top: 11px; }
.ow-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ow-chip { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: .12em; color: rgba(255,255,255,.62);
      background: transparent; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 9px 18px; cursor: pointer;
      transition: color .18s ease, border-color .18s ease, background .18s ease; }
.ow-chip:hover { color: #fff; border-color: rgba(26,206,188,.6); }
.ow-chip[aria-pressed="true"] { color: var(--ax-ink); background: var(--ax-turquoise); border-color: var(--ax-turquoise); }
.ow-work__count { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: .14em; color: rgba(255,255,255,.45); margin: 0; padding-top: 4px; }

.ow-work__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.wkcard { display: flex; flex-direction: column; background: #0A1D24; border: 1px solid rgba(26,206,188,.22); border-radius: 12px; overflow: hidden;
      transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.wkcard:hover { border-color: rgba(26,206,188,.6); box-shadow: 0 0 0 1px rgba(26,206,188,.3), 0 0 36px rgba(26,206,188,.14); transform: translateY(-4px); }
.wkcard-media { height: 150px; overflow: hidden; position: relative; }
.wkcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.wkcard:hover .wkcard-media img { transform: scale(1.05); }
.wkcard-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.wkcard-tag { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ax-turquoise); margin-bottom: 12px; }
.wkcard-title { font-family: var(--font-display); font-weight: 300; font-size: 20px; line-height: 1.25; margin: 0 0 18px; color: #fff; text-wrap: pretty; }
.wkcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; }
.wkcard-client { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .12em; color: rgba(255,255,255,.5); }
.wkcard-go { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ax-turquoise); stroke-width: 1.6; opacity: 0; transform: translateX(-6px); transition: opacity .2s ease, transform .2s ease; }
.wkcard:hover .wkcard-go { opacity: 1; transform: none; }

/* Filtered-out cards. */
.wkcard[hidden] { display: none; }

/* Empty state (shown when a filter combination matches no case studies). */
.ow-work__empty { margin: 32px 0 0; font-size: 15px; color: rgba(255,255,255,.7); }
.ow-work__reset { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .1em; color: var(--ax-turquoise);
      background: transparent; border: 1px solid rgba(26,206,188,.4); border-radius: 999px; padding: 8px 16px; margin-left: 8px; cursor: pointer;
      transition: border-color .18s ease, background .18s ease; }
.ow-work__reset:hover { border-color: rgba(26,206,188,.85); background: rgba(26,206,188,.1); }

/* ============================================================
   VALUE ADD (light) — split: value list + testimonial
   ============================================================ */
.ow-value__head { max-width: 62ch; margin-bottom: 56px; }
.ow-value__head .ow-h2 { margin: 0 0 18px; }
.ow-value__lead { font-weight: 300; font-size: clamp(17px, 2vw, 19px); line-height: 1.65; color: rgba(4,20,27,.7); margin: 0; text-wrap: pretty; }

.ow-value__split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr); gap: 0 88px; align-items: start; }
.ow-value__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid rgba(4,20,27,.16); }
.ow-value__item { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid rgba(4,20,27,.16); }
.ow-value__title { font-family: var(--font-display); font-weight: 300; font-size: 23px; line-height: 1.2; margin: 0; color: var(--ax-ink-2); }
.ow-value__text { font-weight: 300; font-size: 16px; line-height: 1.6; color: rgba(4,20,27,.66); margin: 0; text-wrap: pretty; }

.ow-value__aside { padding-top: 20px; }
.ow-value__rule { width: 56px; height: 2px; background: var(--ax-turquoise); margin-bottom: 28px; }
.ow-value__quote { margin: 0; }
.ow-value__quote p { font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 3vw, 29px); line-height: 1.35; color: var(--ax-ink-2); margin: 0 0 30px; text-wrap: pretty; }
.ow-value__cite { font-style: normal; }
.ow-value__cite-name { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .14em; color: var(--ax-turquoise-ink); margin-bottom: 8px; }
.ow-value__cite-role { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .14em; line-height: 1.6; color: rgba(4,20,27,.55); }

/* ============================================================
   CTA (dark, centred)
   ============================================================ */
.ow-cta { position: relative; overflow: hidden; text-align: center; background: var(--ax-ink-2); }
.ow-cta__media { position: absolute; top: 0; right: 1.5%; width: 42%; height: 80%; max-height: 560px; overflow: hidden; pointer-events: none;
      -webkit-mask-image: radial-gradient(130% 130% at 95% 6%, #000 28%, transparent 74%), linear-gradient(to left, transparent 0, #000 14%);
      mask-image: radial-gradient(130% 130% at 95% 6%, #000 28%, transparent 74%), linear-gradient(to left, transparent 0, #000 14%);
      -webkit-mask-composite: source-in; mask-composite: intersect; }
.ow-cta__media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(1.12) saturate(1.05); }
.ow-cta__wash1 { position: absolute; inset: 0; background: linear-gradient(200deg, rgba(4,20,27,.2), rgba(2,12,16,.72) 62%, var(--ax-ink-2) 100%); mix-blend-mode: multiply; }
.ow-cta__wash2 { position: absolute; inset: 0; background: radial-gradient(90% 90% at 88% 12%, rgba(26,206,188,.2), transparent 62%); }
.ow-cta__scrim { position: absolute; inset: 0; background: radial-gradient(120% 100% at 70% 35%, rgba(2,12,16,.3) 0%, rgba(2,12,16,.86) 60%, var(--ax-ink-2) 100%); }
.ow-cta__inner { position: relative; padding: clamp(72px, 12vw, 110px) clamp(24px, 5vw, 40px); }
.ow-cta__title { text-shadow: 0 0 40px rgba(26,206,188,.25); margin: 0 auto 18px; }
.ow-cta__lead { color: rgba(255,255,255,.72); max-width: 52ch; margin: 0 auto 34px; font-weight: 300; line-height: 1.6; }

/* ============================================================
   SCROLL-REVEAL — toggled by js/our-work.js
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
/* The case-study cards keep their hover transitions independent of the reveal. */
.wkcard.reveal { transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1), border-color .2s ease, box-shadow .2s ease; }
.wkcard.reveal:not(:hover).in { transform: none; }
.ow-work__grid .wkcard:nth-child(1) { transition-delay: 0s } .ow-work__grid .wkcard:nth-child(2) { transition-delay: .08s }
.ow-work__grid .wkcard:nth-child(3) { transition-delay: .16s } .ow-work__grid .wkcard:nth-child(4) { transition-delay: .24s }
.ow-value__list .ow-value__item:nth-child(1) { transition-delay: .04s } .ow-value__list .ow-value__item:nth-child(2) { transition-delay: .1s }
.ow-value__list .ow-value__item:nth-child(3) { transition-delay: .16s } .ow-value__list .ow-value__item:nth-child(4) { transition-delay: .22s }
.ow-value__list .ow-value__item:nth-child(5) { transition-delay: .28s }

/* ============================================================
   RESPONSIVE LAYER
   Most sizing is fluid via clamp() above; these handle the
   structural collapses that clamp() can't express.
   ============================================================ */
@media (max-width: 1100px) {
  .ow-value__split { grid-template-columns: minmax(0, 1fr); gap: 52px 0; }
}

@media (max-width: 980px) {
  .ow-work__grid { grid-template-columns: repeat(2, 1fr); }
  .ow-logos { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .ow-container,
  .ow-hero__inner { margin-left: auto; margin-right: auto; }
}

@media (max-width: 640px) {
  .ow-work__grid { grid-template-columns: 1fr; }
  .ow-logos { grid-template-columns: repeat(2, 1fr); }
  .ow-filter-row { grid-template-columns: 1fr; gap: 8px; }
  .ow-filter-label { padding-top: 0; }
  .ow-btn { padding: 13px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .wkcard.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .wkcard-media img { transition: none; }
}
