/* ================================================================
   WeForm V10 — two small, focused refinements to Version 9.
   1) Restore two complete MP4 marquee rows above the fold on desktop.
   2) Make the OUTSIDE Selected Work info panels easier to read.
   No change to media, marquee JavaScript, branding, navigation or projects.
   ================================================================ */

/* The compact V8 two-track layout was targeted at [data-gif-only], but the
   V9 MP4 hero uses [data-ambient-only]. Apply that spacing to this hero. */
@media (min-width: 1000px) {
  .hero-shell .hero-content {
    padding-top:clamp(8px,1.1vw,16px)!important;
  }
  .hero-shell .hero-content h1 {
    margin-top:clamp(7px,.7vw,11px)!important;
  }
  .hero-shell .hero-actions {
    margin-top:clamp(14px,1.3vw,18px)!important;
  }
  .hero-shell .hero-media[data-ambient-only="true"] {
    --video-h:clamp(150px,12.3vw,181px);
    margin-top:clamp(14px,1.5vw,22px)!important;
    padding-top:8px!important;
    padding-bottom:14px!important;
  }
  .hero-shell .hero-media[data-ambient-only="true"] .marquee-viewport {
    padding:14px 0!important;
  }
  .hero-shell .hero-media[data-ambient-only="true"] .marquee-viewport + .marquee-viewport {
    margin-top:-2px!important;
  }
}
/* Common 1366×768 laptop screens need the slightly tighter variant so both
   videos tracks are visible without scrolling. Keep generous desktop type. */
@media (min-width: 1000px) and (max-height: 820px) {
  .hero-shell .hero-media[data-ambient-only="true"] {
    --video-h:clamp(136px,11vw,157px);
    margin-top:14px!important;
    padding-top:7px!important;
    padding-bottom:9px!important;
  }
  .hero-shell .hero-media[data-ambient-only="true"] .marquee-viewport {padding:11px 0!important;}
  .hero-shell .hero-media[data-ambient-only="true"] .marquee-viewport + .marquee-viewport {margin-top:-4px!important;}
}

/* Side panels use the reserved exterior gutters, never overlay the videos.
   Increase typography, internal breathing room and panel width together. */
@media (min-width: 1280px) {
  .weform-featured-work .weform-featured-grid {
    max-width:min(1140px,calc(100vw - 512px))!important;
  }
}
@media (min-width: 1000px) {
  .weform-work-v8 .weform-hover-panel,
  .weform-work-v8:nth-child(n+4) .weform-hover-panel {
    top:clamp(14px,7.5%,28px)!important;
    width:clamp(218px,16vw,232px)!important;
    min-height:175px!important;
    max-width:none!important;
    padding:21px 19px 22px 22px!important;
    border-radius:19px!important;
    box-shadow:0 19px 52px rgba(8,22,55,.15),0 5px 12px rgba(29,85,230,.06)!important;
  }
  .weform-work-v8 .weform-hover-kicker {
    font-size:10px!important;
    letter-spacing:.09em!important;
    margin-bottom:10px!important;
  }
  .weform-work-v8 .weform-hover-flourish {
    width:27px!important;height:27px!important;
    top:12px!important;right:12px!important;
  }
  .weform-work-v8 .weform-hover-client {
    font-size:18px!important;
    line-height:1.35!important;
    margin-bottom:9px!important;
    letter-spacing:-.038em!important;
    overflow-wrap:anywhere;
  }
  .weform-work-v8 .weform-hover-description {
    font-size:14px!important;
    line-height:1.58!important;
    -webkit-line-clamp:5!important;
    overflow-wrap:break-word;
  }
  .weform-work-v8 .weform-hover-customer {
    font-size:11px!important;
    line-height:1.45!important;
    margin-bottom:7px!important;
  }
  /* Allow a small air gap; the panel remains outside the video entirely. */
  .weform-work-v8:nth-child(odd) .weform-hover-panel {
    left:auto!important;right:calc(100% + 8px)!important;
  }
  .weform-work-v8:nth-child(even) .weform-hover-panel {
    right:auto!important;left:calc(100% + 8px)!important;
  }
}
@media (min-width: 1000px) and (max-width:1279px) {
  .weform-featured-work .weform-featured-grid {
    max-width:calc(100vw - 452px)!important;
  }
  .weform-work-v8 .weform-hover-panel,
  .weform-work-v8:nth-child(n+4) .weform-hover-panel {
    width:195px!important;
    min-height:160px!important;
    padding:17px 14px 18px 18px!important;
  }
  .weform-work-v8 .weform-hover-client {font-size:16px!important;}
  .weform-work-v8 .weform-hover-description {font-size:13px!important;}
}
/* On touch layouts keep the existing single-column gallery and full-size
   project preview; there is no unusable hover-only information panel. */
