/* ============================================================
   Our Work — case studies page
   Extends style.css (same navy/gold tokens)
   ============================================================ */

/* nav on an interior page is always solid, so the real logo always shows */
.nav--solid { background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
.nav--solid.nav--scrolled { box-shadow: 0 2px 20px rgba(13,27,64,.1); }
.nav__logo--always { display: block !important; height: 44px; width: auto; }
.nav--solid .nav__links a:not(.btn) { color: var(--navy-ink); }
.nav--solid .nav__links a.is-current { color: var(--gold-deep); font-weight: 600; }
.nav--solid .nav__links a.is-current::after { width: 100%; }

/* ---------- hero ---------- */
.w-hero {
  background: linear-gradient(158deg, var(--navy) 0%, var(--navy-deep) 50%, var(--navy-ink) 100%);
  color: #fff; padding: 150px 0 84px; position: relative; overflow: hidden;
}
.w-hero::before {
  content: ""; position: absolute; top: -220px; right: -140px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,185,35,.18) 0%, transparent 68%);
}
.w-hero .container { position: relative; }
.w-eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); background: rgba(232,185,35,.12);
  border: 1px solid rgba(232,185,35,.35); padding: 7px 18px; border-radius: 999px;
  margin-bottom: 22px;
}
.w-hero h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1; letter-spacing: -.03em; margin: 0;
}
.w-lede {
  font-size: 1.12rem; line-height: 1.65; color: rgba(255,255,255,.85);
  max-width: 40ch; margin: 22px 0 0;
}

/* ---------- results at a glance ---------- */
.w-glance { background: var(--navy-ink); color: #fff; padding: 46px 0 54px; }
.w-label {
  font-family: var(--font-head); font-weight: 700; font-size: .74rem;
  letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.55);
  margin: 0 0 26px;
}
.w-label--gold { color: var(--gold-deep); }
.w-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 26px 22px; }
.w-stat b {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1; color: var(--gold);
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.w-stat span {
  display: block; margin-top: 8px; font-family: var(--font-head); font-weight: 600;
  font-size: .88rem; color: #fff;
}
.w-stat em {
  display: block; font-style: normal; font-family: var(--font-body); font-weight: 400;
  font-size: .78rem; color: rgba(255,255,255,.5); margin-top: 2px;
}

/* ---------- case study shell ---------- */
.w-case { padding: 84px 0; background: var(--white); }
.w-case--alt { background: var(--gray-light); }

.w-case__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 26px;
  padding-bottom: 22px; border-bottom: 1px solid #e3e8f2;
}
.w-case__id { display: flex; align-items: center; gap: 16px; }
.w-num {
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  color: var(--gold-deep); border: 1.5px solid var(--gold); border-radius: 8px;
  padding: 5px 11px; flex: none;
}
.w-meta {
  font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gray);
}
/* white chip so each client logo reads regardless of its own colours */
.w-logo {
  background: #fff; border: 1px solid #e3e8f2; border-radius: 10px;
  padding: 12px 18px; display: flex; align-items: center; flex: none;
  box-shadow: 0 1px 3px rgba(19,28,51,.05);
}
.w-logo img { height: 34px; width: auto; display: block; }
/* Torres' logo is white/orange on its own #1a1a1a ground, so it needs a dark
   chip in the same colour to blend rather than sit in a light box. */
.w-logo--dark { background: #1a1a1a; border-color: #303030; padding: 7px 13px; }
.w-logo--dark img { height: 58px; }

.w-case__title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.8rem, 4.4vw, 2.9rem); line-height: 1.1; letter-spacing: -.025em;
  color: var(--navy-ink); margin: 0 0 16px; max-width: 20ch; text-wrap: balance;
}
.w-case__lede {
  font-size: 1.05rem; line-height: 1.7; color: var(--gray);
  max-width: 62ch; margin: 0 0 34px;
}

/* screenshot */
.w-shot { margin: 0 0 40px; }
.w-shot img {
  width: 100%; height: auto; display: block; border-radius: 14px;
  border: 1px solid #dfe5f1; box-shadow: 0 16px 44px rgba(13,27,64,.14);
}
.w-shot figcaption {
  margin-top: 11px; font-size: .82rem; color: var(--gray);
  font-family: var(--font-head); font-weight: 500;
}

/* before / after columns */
.w-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px; margin-bottom: 38px; }
.w-block h3 {
  font-family: var(--font-head); font-weight: 700; font-size: 1.06rem;
  color: var(--navy-ink); margin: 0 0 14px;
}
.w-list { list-style: none; margin: 0; padding: 0; }
.w-list li {
  position: relative; padding-left: 27px; margin-bottom: 11px;
  font-size: .95rem; line-height: 1.55; color: var(--gray);
}
.w-list li:last-child { margin-bottom: 0; }
.w-list--x li::before {
  content: "✕"; position: absolute; left: 0; top: 0;
  color: #b9c2d6; font-weight: 700; font-size: .82rem;
}
.w-list--check li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--gold-deep); font-weight: 700; font-size: .9rem;
}

/* metric row */
.w-metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; background: #e3e8f2; border: 1px solid #e3e8f2;
  border-radius: 12px; overflow: hidden; margin-bottom: 38px;
}
.w-metric { background: #fff; padding: 20px 18px; }
.w-case--alt .w-metric { background: #fbfcfe; }
.w-metric b {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: 1.72rem; line-height: 1; color: var(--navy);
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.w-metric span {
  display: block; margin-top: 7px; font-size: .82rem; color: var(--gray); line-height: 1.35;
}

/* highlight feature block */
.w-feature {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 60%, var(--navy-ink) 100%);
  color: #fff; border-radius: 16px; padding: 34px 34px 32px; margin-bottom: 38px;
  position: relative; overflow: hidden;
}
.w-feature::before {
  content: ""; position: absolute; top: -130px; right: -90px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,185,35,.17) 0%, transparent 70%);
}
.w-feature > * { position: relative; }
.w-feature .w-label { color: var(--gold); margin-bottom: 12px; }
.w-feature h3 {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.22; margin: 0 0 14px; max-width: 26ch; color: #fff;
}
.w-feature p { color: rgba(255,255,255,.82); font-size: .98rem; line-height: 1.65; margin: 0 0 12px; max-width: 66ch; }
.w-feature__kicker {
  margin: 0 !important; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15);
  color: #fff !important;
}
.w-feature__kicker b { color: var(--gold); }

/* "what we found" trio */
.w-block--wide { margin-bottom: 34px; }
.w-found { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.w-found > div {
  background: #fff; border: 1px solid #e3e8f2; border-radius: 12px; padding: 20px;
  border-top: 3px solid var(--gold);
}
.w-case--alt .w-found > div { background: #fbfcfe; }
.w-found h4 {
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  color: var(--navy-ink); margin: 0 0 8px; line-height: 1.35;
}
.w-found p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--gray); }

/* honesty note */
.w-honest {
  background: var(--gold-soft); border-left: 3px solid var(--gold-deep);
  border-radius: 0 10px 10px 0; padding: 15px 20px; margin: 0 0 26px;
  font-size: .93rem; line-height: 1.6; color: var(--navy-ink); max-width: 74ch;
}
.w-honest b { font-family: var(--font-head); font-weight: 700; }

.w-visit {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .95rem; color: var(--gold-deep); text-decoration: none;
  border-bottom: 2px solid transparent; transition: border-color .2s, transform .2s;
}
.w-visit:hover { border-bottom-color: var(--gold); }
.w-visit:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- capability ---------- */
.w-cap { background: var(--white); padding: 84px 0; }
.w-cap__head { max-width: 60ch; margin-bottom: 38px; }
.w-cap__head h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 2.7rem); line-height: 1.12; letter-spacing: -.025em;
  color: var(--navy-ink); margin: 0 0 14px;
}
.w-cap__lede { font-size: 1.02rem; line-height: 1.7; color: var(--gray); margin: 0; }
.w-caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.w-capcard {
  background: #fbfcfe; border: 1px solid #e3e8f2; border-radius: 13px; padding: 24px 22px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.w-capcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(232,185,35,.5); }
.w-capcard h3 {
  font-family: var(--font-head); font-weight: 700; font-size: 1.04rem;
  color: var(--navy-ink); margin: 0 0 9px;
}
.w-capcard h3::before { content: "◈ "; color: var(--gold-deep); }
.w-capcard p { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--gray); }

/* ---------- process ---------- */
.w-process { background: var(--gray-light); padding: 78px 0; }
.w-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 24px; }
.w-step { position: relative; padding-top: 6px; }
.w-step__n {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--gold); font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
}
.w-step h3 {
  font-family: var(--font-head); font-weight: 700; font-size: 1.04rem;
  color: var(--navy-ink); margin: 0 0 8px;
}
.w-step p { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--gray); }

/* ---------- cta ---------- */
.w-cta {
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy-ink) 100%);
  padding: 78px 0; color: #fff; position: relative; overflow: hidden;
}
.w-cta::before {
  content: ""; position: absolute; bottom: -190px; left: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,185,35,.16) 0%, transparent 70%);
}
.w-cta__inner { position: relative; text-align: center; max-width: 640px; margin: 0 auto; }
.w-cta h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.9rem, 4.6vw, 2.7rem); line-height: 1.12; letter-spacing: -.025em;
  color: #fff; margin: 16px 0 12px;
}
.w-cta p { color: rgba(255,255,255,.85); font-size: 1.02rem; margin: 0 0 28px; }
.w-cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 680px) {
  .w-hero { padding: 124px 0 64px; }
  .w-case { padding: 60px 0; }
  .w-case__head { flex-direction: column; align-items: flex-start; }
  .w-feature { padding: 26px 22px; }
}
