/* What You Get: drag carousel */
.wg { padding-block: clamp(72px, 11vh, 130px); background: var(--ink-0); border-top: 1px solid var(--rule-soft); overflow: hidden; }
.wg-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vh, 56px); }
.wg-nav { display: flex; gap: 10px; }
.wg-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--rule); background: none; color: var(--fg); font-size: 20px; cursor: pointer; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.wg-btn:hover { background: var(--accent); border-color: var(--accent); }
.wg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* left edge aligns with the .wrap content column (same inset as the h2 above); cards still bleed off the right */
.wg-track { --wg-inset: max(var(--pad), calc((100% - 1600px) / 2 + var(--pad))); display: flex; gap: clamp(14px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--pad) 8px var(--wg-inset); scroll-padding-left: var(--wg-inset); scroll-padding-right: var(--pad); cursor: grab; overscroll-behavior-x: contain; }
.wg-track::-webkit-scrollbar { display: none; }
.wg-track.drag { cursor: grabbing; scroll-snap-type: none; }
.wg-track.drag .wg-card { pointer-events: none; }
.wg-track:focus-visible { outline: none; }
.wg-card { position: relative; flex: 0 0 clamp(260px, 27vw, 420px); aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; scroll-snap-align: start; background: var(--ink-1); border: 1px solid var(--rule-soft); }
.wg-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); user-select: none; -webkit-user-drag: none; }
.wg-card:hover img { transform: scale(1.06); }
.wg-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .85) 0%, rgb(0 0 0 / .2) 45%, transparent 70%); }
.wg-txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 2vw, 30px); }
.wg-txt span { font: 400 var(--t-xs)/1 var(--f-mono); letter-spacing: .14em; color: var(--accent); }
.wg-txt h3 { font: 700 var(--t-l)/1.08 var(--f-display); letter-spacing: -0.02em; margin: 12px 0 10px; text-wrap: balance; }
.wg-txt p { color: var(--fg-2); font-size: var(--t-s); line-height: 1.45; max-width: 30ch; }
@media (max-width: 860px) { .wg-card { flex-basis: 76vw; } .wg-btn { width: 44px; height: 44px; } }

/* Desktop: the heading and the whole carousel read as one view, so fit them to one screen.
   The card is driven by height (svh) with its 4/5 ratio setting the width; the block is centred
   with generous bottom room so cards clear the fixed chat button in the bottom-right corner. */
@media (min-width: 1024px) {
  .wg { min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
    padding-top: clamp(80px, 9vh, 104px); padding-bottom: clamp(96px, 11vh, 120px); }
  /* .wrap carries margin-inline:auto, which would shrink-wrap it as a flex child; keep it full width so the h2 stays at the wrap edge */
  .wg-head { width: 100%; margin-bottom: clamp(24px, 3.4vh, 44px); }
  .wg-card { flex: 0 0 auto; width: auto; height: clamp(340px, 58svh, 540px); }
}
/* short screens: smaller card, and top padding that clears the fixed header (76px) so the centred heading never hides behind it */
@media (min-width: 1024px) and (max-height: 720px) {
  .wg { padding-top: 88px; padding-bottom: 84px; }
  .wg-head { margin-bottom: 20px; }
  .wg-card { height: clamp(290px, 56svh, 400px); }
}

/* review 13 Nov 2026: the one-screen sections keep their top content below the fixed header (--hd, 80px) and their
   bottom content above the chat button, so the whole view is readable when the section fills the screen */
@media (min-width: 1024px) {
  .wg { padding-top: calc(var(--hd, 80px) + clamp(10px, 2.6vh, 32px)); padding-bottom: clamp(88px, 11vh, 120px); }
}
@media (min-width: 1024px) and (max-height: 720px) {
  .wg { padding-top: calc(var(--hd, 80px) + 8px); padding-bottom: 84px; }
}
