/* Vega case study — components from Figma "Vega — 07 / Full screen".
   Two card styles: the framing card (evidence, big Inter number in the corner)
   and the gradient card (insight, icon + serif title). Palette order is always
   pink, lavender, peach. */

.vg { --pink: #fcd9e1; --pink-ac: #8f1d45; --pink-num: #d4708d;
      --lav: #f0def7;  --lav-ac: #55286b;  --lav-num: #a67cba;
      --peach: #fde5d6; --peach-ac: #8a3a10; --peach-num: #e09a6c; }
.vg .p1 { --bg: var(--pink);  --ac: var(--pink-ac);  --num: var(--pink-num); }
.vg .p2 { --bg: var(--lav);   --ac: var(--lav-ac);   --num: var(--lav-num); }
.vg .p3 { --bg: var(--peach); --ac: var(--peach-ac); --num: var(--peach-num); }

.vg .cs-logo { width: 72px; }
.vg .cs-hero { gap: 16px; padding-bottom: 28px; }
.vg-grad { background: linear-gradient(90deg, #c4577a, #8a5fc0); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; font-style: italic; padding: .08em .08em .18em; margin: -.08em -.08em -.18em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }  /* room for the italic g tail and overhang */
.vg .cs-banner { background: #f9e6ea; }
.vg .cs-banner img, .vg .cs-banner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vg .cs-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }

/* sub-headings inside a section */
.cs-sub { padding-top: 24px; }
.cs-sub h2 { font-size: 28px; }

/* rows of equal cards */
.vg-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vg-row.is-five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.vg-row.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* framing card (evidence) */
.vg-fcard { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px;
  padding: 24px 24px 174px; background: var(--bg); }
.vg-chip { align-self: flex-start; padding: 4px 8px; background: rgba(255, 255, 255, .85);
  font: 500 12px/1.3 var(--sans); letter-spacing: -.02em; color: var(--ac); }
.vg-fcard h3 { font: 500 20px/1.28 var(--sans); letter-spacing: -.02em; color: var(--ac); }
.vg-fcard p { font-size: 15px; line-height: 1.5; color: #3a3a3a; }
.vg-big { position: absolute; right: -8px; bottom: 0; transform: translateY(15%);
  font: 600 220px/1 var(--sans); letter-spacing: -.04em; color: var(--num); pointer-events: none; }
.vg-fcard.is-compact { padding: 18px 18px 112px; }
.vg-fcard.is-compact h3 { font-size: 16px; }
.vg-fcard.is-compact .vg-big { font-size: 120px; right: -10px; transform: translateY(16%); }
.vg-fcard.is-stat { padding-bottom: 140px; }
.vg-fcard.is-stat .vg-big { font-size: 104px; right: -4px; bottom: 0; transform: translateY(10%); }

/* gradient card (insight) */
.vg-gcard { display: flex; flex-direction: column; padding: 24px 24px 26px; border: 1px solid #e8e8e8;
  background: linear-gradient(180deg, var(--bg), #fff); }
.vg-gcard svg { width: 30px; height: 30px; fill: none; stroke: var(--ac); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vg-gcard .vg-label { margin-top: 90px; font: 500 12px/1.3 var(--sans); color: var(--ac); }
.vg-gcard h3 { margin-top: 8px; font: 400 28px/1.15 var(--serif); letter-spacing: -.03em; color: var(--ac); }
.vg-gcard p { margin-top: 10px; font-size: 14px; line-height: 1.45; color: #3a3a3a; }

/* recognition: award count beside the summary line, above the award cards (style from the 2026 Vega page) */
.vg-recognition { display: flex; align-items: center; gap: 40px; padding-top: 28px; border-top: 1px solid var(--rule); margin-top: 8px; }
.vg-rec-num { flex: none; font: 400 104px/.85 var(--sans); letter-spacing: -.08em; color: var(--ink); }
.vg-recognition h3 { font: 400 34px/1.15 var(--sans); letter-spacing: -.03em; max-width: 680px;
  background: linear-gradient(105deg, #7c5cff 0%, #dc66a5 38%, #ff8a64 72%, #5e8dff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* awards */
.vg-award { display: flex; align-items: center; gap: 20px; padding: 18px 20px 18px 18px; border: 1px solid #e8e8e8; }
.vg-award .badge { flex: none; width: 84px; height: 84px; padding: 12px; background: #f4f4f4; display: flex; align-items: center; justify-content: center; }
.vg-award .badge img { max-width: 60px; max-height: 60px; width: auto; height: auto; }
.vg-award b { display: block; font: 500 16px/1.3 var(--sans); letter-spacing: -.02em; }
.vg-award span { font-size: 14px; line-height: 1.4; color: var(--muted); }
.vg-award:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* timeline with a continuous gradient */
.vg-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vg-phase .track { display: flex; align-items: center; height: 22px; margin-bottom: 12px; padding-left: 5px; }
/* dot with a soft ring: white gap, then a thin ring in the same colour */
.vg-phase .track i { flex: none; position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--a);
  box-shadow: 0 0 0 4px #fff, 0 0 0 5.5px color-mix(in srgb, var(--a) 55%, #fff); }
.vg-phase .track b { flex: 1; height: 3px; background: linear-gradient(90deg, var(--a), var(--b)); }
.vg-phase strong { display: block; font: 500 15px/1.3 var(--sans); }
.vg-phase span { font-size: 13px; color: var(--faded); }

/* figures */
.vg-fig img { width: 100%; height: auto; border: 1px solid var(--rule); }
.vg-cap { margin-top: 10px; font-size: 13px; line-height: 1.45; color: #6b6b6b; }
.vg-cap b { font: 500 13px/1.45 var(--sans); color: var(--ink); }
.vg-maps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.vg-maps img { width: 100%; height: 240px; object-fit: contain; background: #f7f7f7; border: 1px solid #e8e8e8; }
.vg-iters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vg-iters img { width: 100%; aspect-ratio: 224 / 219; object-fit: cover; }

/* carousels */
.vg-carousel { display: grid; gap: 16px; }
.vg-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.vg-viewport::-webkit-scrollbar { display: none; }
.vg-track { display: flex; gap: 16px; }
.vg-slide { flex: 0 0 min(580px, 88%); scroll-snap-align: start; background: #f1f1f1; }
/* fixed box: the image is clamped inside it (a grid cell sized by its content let it overflow) */
.vg-slide .shot { box-sizing: border-box; height: 360px; padding: 24px; overflow: hidden; }
.vg-slide .shot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vg-slide .text { padding: 16px 20px; background: #fff; }
.vg-slide .text b { display: block; font: 500 14px/1.4 var(--sans); letter-spacing: -.02em; }
.vg-slide .text span { font-size: 13px; color: #6b6b6b; }
.vg-carousel.is-full .vg-track { gap: 12px; }
.vg-carousel.is-full .vg-slide { flex-basis: 100%; background: none; }
.vg-carousel.is-full .vg-slide img { width: 100%; height: auto; display: block; }
.vg-controls { display: flex; align-items: center; gap: 8px; }
.vg-dots { display: flex; gap: 8px; margin-right: auto; }
.vg-dots i { width: 8px; height: 8px; border-radius: 50%; background: #c4c4c4; transition: background-color var(--hover); }
.vg-dots i.on { background: var(--ink); }
.vg-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #f1f1f1; transition: background-color var(--hover), opacity var(--hover); }
.vg-arrow:hover { background: #e6e6e6; }
.vg-arrow:disabled { opacity: .35; cursor: default; }
.vg-arrow svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* final physical product (original layout, positioned from Figma at 944 × 590) */
.vg-device { position: relative; aspect-ratio: 944 / 590; background: #fff6f9; overflow: hidden; }
.vg-device > * { position: absolute; }
.vg-device .img { object-fit: contain; }
.vg-device .open { left: 2.44%; top: 26.27%; width: 41.1%; height: 68.47%; }
.vg-device .scanner { left: 56.78%; top: 42.03%; width: 38.67%; height: 51.36%; }
.vg-device .note { width: 28.28%; padding: 17px; background: #fff; border-radius: 12px; box-shadow: 0 6px 19px rgba(0, 0, 0, .08);
  display: grid; gap: 9px; align-content: start; }
.vg-device .note.a { left: 35.8%; top: 9.32%; }
.vg-device .note.b { left: 68.33%; top: 5.25%; }
.vg-device .note em { justify-self: start; padding: 3px 6px; background: var(--pink); border-radius: 5px;
  font: 500 9.3px/1.2 var(--sans); font-style: normal; color: var(--pink-ac); }
.vg-device .note b { font: 500 15.5px/1.25 var(--sans); letter-spacing: -.02em; }
.vg-device .note span { font-size: 10.9px; line-height: 1.5; color: #6b6b6b; }
/* layering: lines under the cards, cards above, target rings on top */
.vg-device .line { background: #c4577a; z-index: 1; }
.vg-device .note { z-index: 2; }
.vg-device .note .pin { position: absolute; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #c4577a; box-shadow: 0 0 0 2px #fff; }
.vg-device .target { z-index: 3; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid #c4577a; box-shadow: 0 0 0 4px rgba(196, 87, 122, .18); }

/* product in use */
.vg-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vg-steps img { width: 100%; aspect-ratio: 224 / 350; object-fit: cover; }
.vg-steps b { display: block; margin-top: 14px; font: 400 32px/1.1 var(--serif); letter-spacing: -.03em; color: var(--ac); }
.vg-steps h3 { margin-top: 4px; font: 400 24px/1.18 var(--serif); letter-spacing: -.03em; }
.vg-steps p { margin-top: 6px; font-size: 14px; line-height: 1.45; color: #6b6b6b; }

.vg-poster img { width: 100%; height: auto; }

@media (max-width: 900px) {
  .vg-row, .vg-row.is-two, .vg-maps { grid-template-columns: 1fr; }
  .vg-row.is-five, .vg-iters, .vg-steps, .vg-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vg .cs-facts { grid-template-columns: 1fr 1fr; }
  .vg-recognition { gap: 20px; }
  .vg-rec-num { font-size: 64px; }
  .vg-recognition h3 { font-size: 24px; }
  .vg-device { aspect-ratio: auto; display: grid; gap: 12px; padding: 16px; }
  .vg-device > * { position: static; width: auto !important; height: auto !important; }
  .vg-device .line, .vg-device .dot, .vg-device .target { display: none; }
}

/* vision video: liquid-glass play button, native controls appear once it plays */
.vg-player { position: relative; }
.vg-play {
  position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%; z-index: 2;
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .12) 55%, rgba(255, 255, 255, .06));
  -webkit-backdrop-filter: blur(14px) saturate(170%) brightness(1.08); backdrop-filter: blur(14px) saturate(170%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .8), inset 0 -10px 18px rgba(255, 255, 255, .12), 0 12px 36px rgba(0, 0, 0, .18);
  transition: transform var(--hover), opacity .3s ease, visibility .3s;
}
.vg-play svg { width: 34px; height: 34px; fill: currentColor; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .2)); }
.vg-play:hover { transform: scale(1.06); }
.vg-play:active { transform: scale(.97); }
.vg-player.is-playing .vg-play { opacity: 0; visibility: hidden; transform: scale(.9); }

