/* Work page composition. Maps to the plain-HTML mockup at
   reference/Design/Page_Samples_PLAINHTML/Work.html, plus locked
   content from reference/Work Page Content/*.md (where copy differs
   from the sample, the MD content wins). */

/* ── Shared ────────────────────────────────────────────────── */

.work-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
}

.work-section {
  padding: 80px 0;
}

.work-section-head {
  margin-bottom: 48px;
}

.work-eyebrow {
  font-family: var(--sg-font-display);
  font-weight: var(--sg-w-bold);
  font-size: 22px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sg-hero-blue);
  margin: 0 0 16px;
}

.work-h2 {
  font-family: var(--sg-font-display);
  font-weight: var(--sg-w-bold);
  font-size: 48px;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

.work-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--sg-steel);
  margin: 12px 0 0;
  text-wrap: pretty;
}

/* Horizontal scroll track shared by Highlights and Patents */
.scroll-track-outer { position: relative; }

.scroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 16px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
}
.scroll-track::-webkit-scrollbar { display: none; }
.scroll-track > * { scroll-snap-align: start; }

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--sg-hero-blue);
  color: var(--sg-white);
  border: none;
  border-radius: var(--sg-radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.40);
}
.scroll-btn:hover { background: var(--sg-hero-blue-hover); transform: translateY(-50%) scale(1.06); }
.scroll-btn svg { width: 18px; height: 18px; display: block; }
.scroll-btn.prev { left: -22px; }
.scroll-btn.next { right: -22px; }

/* ── §1 Page Hero ──────────────────────────────────────────── */

.work-hero {
  position: relative;
  background: var(--sg-cape-navy);
  color: var(--sg-white);
  margin-top: calc(-1 * var(--sg-nav-height));
  padding-top: calc(var(--sg-nav-height) + 64px);
  padding-bottom: 64px;
  overflow: hidden;
  isolation: isolate;
}

.work-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 15% 20%, rgba(26, 86, 219, 0.28), transparent 65%),
    radial-gradient(600px 400px at 85% 75%, rgba(26, 86, 219, 0.14), transparent 70%);
}

.work-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 64px);
}

.work-hero__head {
  padding-top: 96px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 64px;
  align-items: center;
}

.work-hero__h1 {
  font-family: var(--sg-font-display);
  font-weight: var(--sg-w-bold);
  font-size: 88px;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--sg-white);
  margin: 0;
}

.work-hero__tagline {
  font-size: 20px;
  font-weight: var(--sg-w-regular);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.80);
  margin: 0;
  text-wrap: pretty;
}

.work-hero__rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.20);
}

.routing-grid {
  display: grid;
  /* 5 routing cards on a wide screen (sample has 4; we add Products
     as the 5th). Auto-fit so they reflow gracefully on smaller
     widths. */
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.route-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--sg-white);
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.route-card:hover {
  background: rgba(26, 86, 219, 0.08);
  border-color: var(--sg-hero-blue);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--sg-hero-blue), 0 8px 24px rgba(26, 86, 219, 0.20);
  text-decoration: none;
}

.rc-title {
  font-family: var(--sg-font-display);
  font-weight: var(--sg-w-bold);
  font-size: 24px;
  line-height: 1.1;
  color: var(--sg-white);
  margin: 0 0 12px;
}

.rc-stmt {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.70);
  margin: 0;
  text-wrap: pretty;
}

.rc-arrow {
  margin-top: 24px;
  color: var(--sg-hero-blue);
  transition: transform 0.25s;
  display: inline-flex;
}
.route-card:hover .rc-arrow { transform: translateY(4px); }
.rc-arrow svg { width: 22px; height: 22px; display: block; }

@media (max-width: 1080px) {
  .routing-grid { grid-template-columns: repeat(2, 1fr); }
  .work-hero__h1 { font-size: 64px; }
  .work-hero__head { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .work-hero { padding-top: calc(var(--sg-nav-height) + 32px); }
  .work-hero__head { padding-top: 64px; padding-bottom: 24px; }
  .work-hero__h1 { font-size: 56px; }
  .routing-grid { grid-template-columns: 1fr; }
  .work-inner { padding: 0 24px; }
  .work-section { padding: 56px 0; }
}

/* ── §2 Highlights (Institution cards horizontal scroll) ──── */

.highlights-sec { background: var(--sg-white); }

.inst-card {
  flex: 0 0 320px;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transition: transform 0.25s, box-shadow 0.25s;
}
.inst-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18); }

.inst-card__bg { position: absolute; inset: 0; z-index: 0; }

.inst-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.82) 100%);
}

.inst-card__logo-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 96px; /* leave room for the bottom name/desc block */
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.inst-card__logo {
  max-width: 75%;
  max-height: 70%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.inst-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  z-index: 2;
}

.inst-card__name {
  font-family: var(--sg-font-display);
  font-size: 20px;
  font-weight: var(--sg-w-bold);
  color: var(--sg-white);
  margin: 0 0 5px;
  line-height: 1.2;
}

.inst-card__desc {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.80);
  margin: 0;
}

/* Per-institution atmospheric gradient backgrounds.
   HP, Citi and HEC use light gradients because their logos are dark-on-
   transparent; the bottom-of-card overlay still keeps the white text
   readable. */
.ib-verizon   { background: radial-gradient(70% 60% at 55% 30%, rgba(200,32,47,.65), transparent 60%), linear-gradient(160deg,#1A0010 0%,#4A0820 50%,#880020 100%); }
.ib-hp        { background: radial-gradient(70% 60% at 50% 35%, rgba(255,255,255,.95), transparent 65%), linear-gradient(160deg,#F0F4F9 0%,#C8D2DF 50%,#8FA1B8 100%); }
.ib-cisco     { background: radial-gradient(60% 50% at 50% 40%, rgba(4,159,217,.45), transparent 65%), linear-gradient(160deg,#050E1A 0%,#0A1F35 50%,#0D3558 100%); }
.ib-citi      { background: radial-gradient(70% 60% at 50% 35%, rgba(255,255,255,.98), transparent 65%), linear-gradient(160deg,#EAF1FA 0%,#BCD2EB 50%,#7BA0C8 100%); }
.ib-honeywell { background: radial-gradient(60% 55% at 40% 35%, rgba(210,100,20,.55), transparent 65%), linear-gradient(160deg,#0E0A06 0%,#251508 45%,#4A2008 80%,#6E3010 100%); }
.ib-google    { background: radial-gradient(60% 55% at 50% 40%, rgba(26,86,219,.45), transparent 55%), radial-gradient(40% 40% at 70% 65%, rgba(52,168,83,.38), transparent 55%), linear-gradient(160deg,#050D18 0%,#0A1A2E 50%,#0E2040 100%); }
.ib-accelerator { background: radial-gradient(60% 55% at 45% 40%, rgba(255,100,0,.40), transparent 60%), radial-gradient(40% 40% at 68% 65%, rgba(26,86,219,.30), transparent 55%), linear-gradient(160deg,#100A04 0%,#221408 50%,#301C08 100%); }
.ib-jhu       { background: radial-gradient(55% 50% at 50% 45%, rgba(0,45,100,.70), transparent 60%), radial-gradient(35% 35% at 72% 70%, rgba(200,165,30,.32), transparent 55%), linear-gradient(160deg,#030C1E 0%,#051A3A 55%,#082855 100%); }
.ib-hec       { background: radial-gradient(70% 60% at 50% 35%, rgba(255,250,240,.95), transparent 65%), linear-gradient(160deg,#F5EBD4 0%,#D9BD86 55%,#A88555 100%); }

/* ── §3 Technologist / Patents (horizontal scroll) ────────── */

.patents-sec { background: var(--sg-cream); }

.patent-card {
  flex: 0 0 360px;
  background: var(--sg-white);
  border: 1px solid var(--sg-rule);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.patent-card:hover {
  border-color: var(--sg-hero-blue);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26, 86, 219, 0.10);
}

.patent-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.patent-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.patent-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 40px);
  pointer-events: none;
}

.patent-card__body {
  padding: 20px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.patent-card__num {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: var(--sg-w-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sg-steel);
  margin: 0;
}

.patent-card__title {
  font-family: var(--sg-font-display);
  font-size: 18px;
  font-weight: var(--sg-w-bold);
  line-height: 1.3;
  color: var(--sg-ink);
  margin: 0;
}

.patent-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.patent-card__tag {
  background: var(--sg-hero-blue-light);
  color: var(--sg-hero-blue);
  font-size: 11px;
  font-weight: var(--sg-w-semibold);
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
}

.patent-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--sg-steel);
  margin: 0;
}

.patent-card__diagram {
  margin: 16px 24px 24px;
  background: #F0EEE8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  border: 1px solid var(--sg-rule);
  position: relative;
  overflow: hidden;
}
.patent-card__diagram img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 8px;
}
.patent-card__diagram span {
  font-size: 12px;
  color: var(--sg-steel);
  font-style: italic;
}

/* Per-card placeholder gradient (visible when no .webp image is in
   the patent-card__img). */
.pb-1 { background: radial-gradient(60% 55% at 50% 50%, rgba(26,86,219,.55), transparent 70%), linear-gradient(160deg,#050A12 0%,#0A1428 55%,#0F1E3E 100%); }
.pb-2 { background: radial-gradient(60% 50% at 60% 40%, rgba(0,180,160,.38), transparent 65%), linear-gradient(160deg,#030E12 0%,#071A1E 55%,#0A2830 100%); }
.pb-3 { background: radial-gradient(60% 50% at 40% 50%, rgba(30,120,80,.45), transparent 65%), linear-gradient(160deg,#040C08 0%,#081A10 55%,#0C2818 100%); }
.pb-4 { background: radial-gradient(60% 50% at 50% 40%, rgba(200,32,47,.45), transparent 65%), linear-gradient(160deg,#0C0408 0%,#1A0810 55%,#280C18 100%); }
.pb-5 { background: radial-gradient(60% 50% at 55% 45%, rgba(80,50,200,.45), transparent 65%), linear-gradient(160deg,#060410 0%,#0E0820 55%,#180C35 100%); }
.pb-6 { background: radial-gradient(55% 50% at 45% 50%, rgba(26,86,219,.50), transparent 70%), radial-gradient(40% 40% at 68% 62%, rgba(200,160,30,.22), transparent 60%), linear-gradient(160deg,#040810 0%,#081428 55%,#0C1E3E 100%); }

/* ── §4 Results ────────────────────────────────────────────── */

.results-sec {
  background: var(--sg-cape-navy);
  color: var(--sg-white);
  position: relative;
  isolation: isolate;
}
.results-sec::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 20% 30%, rgba(26,86,219,.22), transparent 65%),
    radial-gradient(600px 500px at 80% 70%, rgba(26,86,219,.14), transparent 70%);
}
.results-sec::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 64px);
}

.results-sec .work-h2 { color: var(--sg-white); }
.results-sec .work-sub { color: rgba(255, 255, 255, 0.70); }

.result-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

.result-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  transition: background 0.2s, border-color 0.2s;
  min-width: 0;
}
.result-tile:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); }

.result-tile__num {
  font-family: var(--sg-font-display);
  font-size: 36px;
  font-weight: var(--sg-w-black);
  color: var(--sg-white);
  line-height: 1.1;
  margin: 0 0 10px;
  overflow-wrap: break-word;
}

.result-tile__desc {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* Case study tabs */
.cs-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  flex-wrap: wrap;
}

.cs-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 16px 24px 14px;
  margin-bottom: -1px;
  font-family: inherit;
  font-size: 15px;
  font-weight: var(--sg-w-semibold);
  color: rgba(255, 255, 255, 0.50);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  text-align: left;
  white-space: nowrap;
}
.cs-tab.is-active { color: var(--sg-white); border-bottom-color: var(--sg-hero-blue); }
.cs-tab:hover:not(.is-active) { color: rgba(255, 255, 255, 0.75); }

.cs-panel { display: none; padding-top: 40px; }
.cs-panel.is-active { display: block; }

.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.cs-img-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  min-height: 500px;
  position: relative;
  isolation: isolate;
}
.cs-img-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.cs-img-card .cs-img-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cs-img-card .cs-img-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 48px);
}

/* Per-case gradient placeholders (visible when no .webp loads) */
.cs-img-bg-1 { background: radial-gradient(70% 60% at 35% 60%, rgba(26,86,219,.45), transparent 65%), radial-gradient(40% 40% at 72% 28%, rgba(200,32,47,.20), transparent 60%), linear-gradient(180deg,#060A12 0%,#0A1422 50%,#0C1830 100%); }
.cs-img-bg-2 { background: radial-gradient(70% 60% at 60% 40%, rgba(26,86,219,.38), transparent 65%), radial-gradient(40% 40% at 25% 70%, rgba(0,150,120,.22), transparent 60%), linear-gradient(180deg,#060C10 0%,#0A1820 50%,#0D2030 100%); }
.cs-img-bg-3 { background: radial-gradient(70% 60% at 45% 55%, rgba(200,100,20,.38), transparent 65%), radial-gradient(40% 40% at 70% 28%, rgba(26,86,219,.22), transparent 60%), linear-gradient(180deg,#0C0A06 0%,#181208 50%,#221808 100%); }
.cs-img-bg-4 { background: radial-gradient(70% 60% at 55% 45%, rgba(160,80,200,.42), transparent 65%), radial-gradient(40% 40% at 28% 70%, rgba(26,86,219,.22), transparent 60%), linear-gradient(180deg,#0A0814 0%,#10122A 50%,#161A3E 100%); }

.cs-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  flex: 1;
}

.cs-lbl {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: var(--sg-w-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sg-hero-blue);
  margin: 0 0 12px;
  display: block;
}
.cs-lbl--red { color: var(--sg-hero-red); }

.cs-stat {
  font-family: var(--sg-font-display);
  font-size: 36px;
  font-weight: var(--sg-w-black);
  color: var(--sg-white);
  margin: 0 0 8px;
  line-height: 1.1;
}

.cs-body {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.80);
  margin: 0;
  text-wrap: pretty;
}

/* ── §5 Products (new section) ─────────────────────────────── */

.products-sec { background: var(--sg-cream); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--sg-white);
  border: 1px solid var(--sg-rule);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.product-card:hover {
  border-color: var(--sg-hero-blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26, 86, 219, 0.10);
}

.product-card__tag {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  font-weight: var(--sg-w-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sg-steel);
  margin: 0 0 16px;
}

.product-card__name {
  font-family: var(--sg-font-display);
  font-size: 28px;
  font-weight: var(--sg-w-black);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--sg-ink);
  margin: 0 0 18px;
}

.product-card__blurb {
  font-size: 15px;
  line-height: 1.65;
  color: var(--sg-steel);
  margin: 0 0 24px;
  text-wrap: pretty;
  flex: 1;
}

.product-card__link {
  font-size: 14px;
  font-weight: var(--sg-w-semibold);
  color: var(--sg-hero-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.product-card__link:hover { text-decoration: none; }
.product-card__link .arrow { transition: transform 0.2s; }
.product-card__link:hover .arrow { transform: translateX(3px); }
.product-card__link--static { cursor: default; }

/* ── §6 Confidential Impact ────────────────────────────────── */

.conf-sec { background: var(--sg-white); }

.conf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

.conf-stat {
  background: var(--sg-white);
  border: 1px solid var(--sg-rule);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
  min-width: 0; /* let the cell shrink instead of pushing the grid wider than the viewport */
}
.conf-stat:hover { border-color: var(--sg-hero-blue); transform: translateY(-2px); }

.conf-stat__num {
  font-family: var(--sg-font-display);
  /* Scales down at narrower viewport widths so words like "Continents"
     don't break mid-word in the 4-column desktop grid. */
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: var(--sg-w-black);
  color: var(--sg-hero-blue);
  line-height: 1.1;
  margin: 0 0 10px;
  word-break: keep-all;
  hyphens: none;
}

.conf-stat__desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--sg-steel);
  margin: 0;
}

.conf-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.conf-card {
  background: var(--sg-white);
  border: 1px solid var(--sg-rule);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}
.conf-card:hover { border-color: #D4D1C9; transform: translateY(-2px); }

.conf-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.conf-card__media .conf-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.conf-card__media .conf-card__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 36px);
}
.conf-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.conf-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.conf-card__tag {
  font-size: 11px;
  font-weight: var(--sg-w-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sg-hero-blue);
  margin: 0;
}

.conf-card__title {
  font-family: var(--sg-font-display);
  font-size: 18px;
  font-weight: var(--sg-w-bold);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--sg-ink);
  margin: 0;
  text-wrap: balance;
}

.conf-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--sg-steel);
  margin: 0;
  text-wrap: pretty;
}

.conf-card__attribution {
  font-size: 12px;
  font-style: italic;
  color: var(--sg-steel);
  margin: auto 0 0;
  padding-top: 8px;
}

/* Per-case gradient placeholders for confidential cards */
.conf-card__bg--1 { background: radial-gradient(60% 55% at 50% 40%, rgba(26,86,219,.45), transparent 70%), linear-gradient(160deg,#060A14 0%,#0A162C 55%,#0E1E3C 100%); }
.conf-card__bg--2 { background: radial-gradient(60% 50% at 40% 55%, rgba(0,150,100,.40), transparent 65%), linear-gradient(160deg,#050E0A 0%,#091A12 55%,#0C2818 100%); }
.conf-card__bg--3 { background: radial-gradient(60% 50% at 55% 45%, rgba(160,80,200,.40), transparent 65%), linear-gradient(160deg,#080510 0%,#130A20 55%,#1E0F35 100%); }

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .result-tiles      { grid-template-columns: repeat(2, 1fr); }
  .conf-stats        { grid-template-columns: repeat(2, 1fr); }
  .cs-grid           { grid-template-columns: 1fr; }
  .cs-img-card       { min-height: 280px; }
  .conf-cases        { grid-template-columns: repeat(1, 1fr); max-width: 720px; margin: 0 auto; }
  .products-grid     { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .result-tiles      { grid-template-columns: 1fr; }
  .conf-stats        { grid-template-columns: 1fr; }
  .cs-tabs           { overflow-x: auto; gap: 0; }
  .cs-tab            { font-size: 13px; padding: 14px 16px 12px; }
  .work-h2           { font-size: 36px; }
  /* Touch users get swipe + scroll-snap; arrow buttons clutter the
     edges and clipped against the viewport. */
  .scroll-btn        { display: none; }
}
