/* CricInformer case study uses the existing BrandsGoBig shell and design tokens. */
:root {
  --case-text: #344f70;
  --case-muted: #214866;
  --case-bluewash: linear-gradient(135deg, #ffffff, #edf7ff);
  --case-navy: radial-gradient(ellipse at 100% 0%, #075c9d66, transparent 65%), var(--navy);
  --case-divider: #00bfff;
  --case-card: linear-gradient(140deg, #ffffff, #e8f3ff);
  --case-card-border: #a8cafd;
  --case-shadow: 0 9px 27px #043f7120;
}

main h1,
main h2,
main h3 {
  font-weight: 850;
  letter-spacing: -.05em;
  line-height: 1.08;
}

main h2 { font-size: clamp(30px, 3vw, 44px); }

main .eyebrow {
  color: #173b64;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

main .button {
  min-height: 48px;
  gap: 14px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}

.button.primary,
.button.secondary,
.site-header .nav-link.is-active,
.js .menu-toggle,
.case-text-link,
.case-audit-action {
  background: var(--case-card);
  border-color: #8cbcff;
  color: var(--ink);
  box-shadow: 0 4px 12px #0757ff14;
}

.button.primary {
  border-color: #3c85f0;
  color: #0645bd;
}

.site-header .nav-link.is-active {
  box-shadow: inset 0 0 0 1px #8cbcff, 0 0 15px #006fff28;
}

.button.primary:hover,
.button.secondary:hover,
.js .menu-toggle:hover,
.case-text-link:hover {
  border-color: #0757ff;
  box-shadow: 0 6px 16px #0757ff29;
}

.case-hero { background: var(--case-bluewash); }

.case-hero-grid {
  width: min(100%, var(--max));
  min-height: 452px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
}

.case-hero-copy {
  align-self: center;
  min-width: 0;
  padding: 34px 30px 38px var(--gutter);
  text-align: center;
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 25px;
  color: #14529f;
  font-size: 14px;
  font-weight: 750;
}

.case-back:hover,
.case-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.case-hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(36px, 3.65vw, 56px);
  line-height: 1.05;
}

.case-hero h1 .accent {
  display: block;
  margin-top: 5px;
  font-size: .88em;
}

.case-lead {
  max-width: 47ch;
  margin: 0 auto 24px;
  color: var(--case-text);
  font-size: 16px;
  line-height: 1.55;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.case-hero-art {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 34px var(--gutter) 24px 30px;
  border-left: 1px solid var(--case-divider);
  border-top-left-radius: 16% 50%;
  border-bottom-left-radius: 7% 27%;
  background: var(--case-navy);
}

.case-art-frame {
  width: 100%;
  overflow: hidden;
  padding: 7px;
  border: 1px solid var(--case-divider);
  border-radius: 21px;
  background: var(--navy);
  box-shadow: 0 0 0 4px #0b3256, 0 14px 30px #00112059;
}

.case-art-frame img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.case-hero-art figcaption,
.case-deliverable-art figcaption {
  color: #bcd7ed;
  font-size: 12px;
  text-align: center;
}

.case-overview,
.case-performance,
.case-scope,
.case-closing {
  padding-block: clamp(34px, 4vw, 56px);
  background: var(--case-bluewash);
}

.case-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(26px, 4vw, 62px);
}

.case-overview-copy { text-align: center; }
.case-overview-copy h2,
.case-section-heading h2,
.case-closing h2 { margin: 11px 0 13px; }

.case-overview-copy > p:not(.eyebrow) {
  max-width: 58ch;
  margin-inline: auto;
  color: var(--case-text);
  line-height: 1.55;
}

.case-browser {
  min-width: 0;
  margin: 0;
  padding: 6px;
  border: 1px solid #297bb5;
  border-radius: 16px;
  background: #092744;
  box-shadow: var(--case-shadow);
  overflow: hidden;
}

.case-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 10px;
  color: #d4e9ff;
  font-size: 12px;
  font-weight: 700;
}

.case-browser-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #488dbb;
}

.case-browser-bar i:first-child { background: var(--case-divider); }
.case-browser-bar span { margin-left: 5px; }

.case-browser img {
  width: 100%;
  border-radius: 8px;
}

.case-project-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 17px 0 13px;
}

.case-project-facts > div {
  padding: 12px;
  border: 1px solid var(--case-card-border);
  border-radius: 12px;
  background: var(--case-card);
}

.case-project-facts dt {
  margin-bottom: 3px;
  color: var(--case-muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.case-project-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.case-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #8cbcff;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 750;
}

.case-section-heading {
  max-width: 780px;
  margin: 0 auto 25px;
  text-align: center;
}

.case-section-heading > p:not(.eyebrow),
.case-closing p:not(.eyebrow) {
  color: var(--case-text);
  font-size: 16px;
}

.case-section-heading time { white-space: nowrap; }

.case-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.case-metrics > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  gap: 4px;
  min-height: 96px;
  padding: 12px 8px;
  border: 1px solid var(--case-card-border);
  border-radius: 15px;
  background: var(--case-card);
  box-shadow: 0 5px 12px #103d7511;
  text-align: center;
}

.case-metrics dt {
  color: var(--case-muted);
  font-size: 14px;
  font-weight: 700;
}

.case-metrics dd {
  margin: 0;
  color: #064bd2;
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}

.case-metrics dd span { font-size: .48em; letter-spacing: -.02em; }

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

.case-audit {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: 16px;
  border: 1px solid #56a4d1;
  border-radius: 18px;
  background: var(--case-navy);
  color: #fff;
  box-shadow: var(--case-shadow);
}

.case-audit:hover { border-color: var(--case-divider); }

.case-audit-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 13px;
}

.case-audit-heading h3 {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.02em;
}

.case-audit-heading > span { color: #7bdcff; font-size: 19px; }
.case-audit-image {
  display: grid;
  align-items: start;
  border-radius: 9px;
  overflow: hidden;
  background: #fbfcff;
}

.case-audit-image img {
  width: 100%;
  height: auto;
}

.case-audit-action {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  margin: 13px 0 0;
  padding: 7px 11px;
  border: 1px solid #8cbcff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
}

.case-audit:hover .case-audit-action {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.case-evidence-note {
  margin-top: 14px;
  color: var(--case-text);
  font-size: 13px;
  text-align: center;
}

.case-deliverables { display: grid; gap: 18px; }

.case-deliverable {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy art";
  overflow: hidden;
  border: 1px solid var(--case-card-border);
  border-radius: 24px;
  background: var(--case-bluewash);
  box-shadow: var(--case-shadow);
}

.case-deliverable-reverse { grid-template-areas: "art copy"; }

.case-deliverable-copy {
  align-self: center;
  grid-area: copy;
  padding: clamp(24px, 3vw, 44px);
}

.case-deliverable h3 {
  margin: 10px 0 15px;
  font-size: clamp(27px, 2.6vw, 38px);
  text-wrap: wrap;
}

.case-work-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.case-work-list > div {
  padding: 10px 13px;
  border: 1px solid #bad6f2;
  border-left: 3px solid #0b88f5;
  border-radius: 8px;
  background: var(--case-card);
}

.case-work-list dt {
  margin-bottom: 3px;
  color: #183958;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
}

.case-work-list dd {
  margin: 0;
  color: var(--case-text);
  font-size: 14px;
  line-height: 1.44;
}

.case-deliverable-art {
  grid-area: art;
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: clamp(16px, 2.1vw, 31px);
  border-left: 1px solid #00a8e8;
  border-radius: 44px 0 0 28px;
  background: var(--case-navy);
}

.case-deliverable-reverse .case-deliverable-art {
  border-left: 0;
  border-right: 1px solid #00a8e8;
  border-radius: 0 42px 27px 0;
}

.case-deliverable-art .case-art-frame {
  padding: 5px;
  border-radius: 16px;
  border-color: #27a0d1;
  box-shadow: 0 0 0 3px #09314f;
}
.case-deliverable-art .case-art-frame img { border-radius: 10px; }

.case-closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: center;
  gap: clamp(20px, 4vw, 62px);
  padding: clamp(24px, 4vw, 49px);
  border: 1px solid var(--case-card-border);
  border-radius: 22px;
  background: var(--case-bluewash);
  text-align: center;
}

.case-closing-action p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.footer-brand p,
.footer-nav a { font-size: 14px; }
.footer-nav h3 { font-size: 16px; letter-spacing: normal; }
.footer-bottom,
.footer-bottom p:nth-child(2) { font-size: 12px; letter-spacing: normal; }

@media (min-width: 900px) and (max-width: 1099px) {
  .site-header::before { width: 31%; }
  .site-header .brand { width: clamp(185px, 21vw, 225px); }
  .site-header #primary-navigation { gap: clamp(16px, 2vw, 22px); }
  .site-header .nav-cta { white-space: nowrap; }
  .case-hero-art { padding-right: 25px; }
}

@media (max-width: 899px) {
  .case-hero-grid,
  .case-overview-grid { grid-template-columns: 1fr; }

  .case-hero-grid { min-height: 0; }

  .case-hero-copy {
    width: min(100%, 680px);
    margin-inline: auto;
    padding: 30px var(--gutter) 28px;
  }

  .case-hero-art {
    align-items: center;
    padding: 22px var(--gutter) 16px;
    border: 0;
    border-radius: 0;
  }

  .case-hero-art .case-art-frame { max-width: 690px; }
  .case-overview-copy,
  .case-browser { width: min(100%, 690px); margin-inline: auto; }
}

@media (max-width: 780px) {
  .case-deliverable,
  .case-deliverable-reverse {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "art";
  }

  .case-deliverable-art,
  .case-deliverable-reverse .case-deliverable-art {
    justify-items: center;
    border: 0;
    border-top: 1px solid #00a8e8;
    border-radius: 0;
  }

  .case-deliverable-art .case-art-frame { max-width: 590px; }

  .case-closing-inner { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
  main h2 { font-size: clamp(28px, 8vw, 36px); }
  .case-hero h1 { font-size: clamp(35px, 9.5vw, 46px); }
  .case-hero h1 .accent { font-size: .79em; }
  .case-back { margin-bottom: 19px; }
  .case-lead { font-size: 15px; }

  .case-actions {
    width: min(100%, 320px);
    margin-inline: auto;
    flex-direction: column;
  }

  .case-art-frame { padding: 4px; border-radius: 16px; }
  .case-art-frame img { border-radius: 11px; }
  .case-audit-grid { grid-template-columns: 1fr; }
  .case-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .case-metrics dt { font-size: 12px; }
  .case-metrics > div { min-height: 80px; }
  .case-audit { padding: 12px; }
  .case-project-facts dd { font-size: 13px; }
  .case-closing-inner { padding: 24px 18px; }
}

@media (max-width: 379px) {
  .site-header .brand { width: clamp(166px, 50vw, 185px); }
  .header-inner { gap: 12px; }
}
