/* ==========================================================
   Visualise - home hero, Phase 1 (12 Nov 2026). Loaded on the home page only (inc/visualise-home.php).
   The hero has its full height from the first paint, so nothing jumps when the theme's script
   runs (desktop layout shift was 0.62-0.70). Background #111111 = the colour the portrait files
   are flattened onto - keep them the same or the portrait's edges show.
   ========================================================== */

body.home .home-content > section.vis-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #111111;
}

/* the portrait: right of the headline on desktop */
.vis-hero__portrait {
  position: absolute;
  z-index: 0;
  bottom: 0;
  right: max(5%, calc((100vw - 1400px) / 2));
  width: min(40vw, calc(94vh * 0.6243));
  margin: 0;
  pointer-events: none;
  display: block;
}
.vis-hero__portrait img { display: block; width: 100%; height: auto; max-width: none; }

/* the showreel (desktop only) covers the hero and fades in over the portrait once it is playing (.is-video,
   set by vis-home.js); the scrim keeps the headline readable on it */
.vis-hero__reel {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 1.2s ease-out;
  pointer-events: none; background: transparent;
}
.vis-hero.is-video .vis-hero__reel { opacity: 1; }
.vis-hero__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(17,17,17,.86) 0%, rgba(17,17,17,.6) 38%, rgba(17,17,17,.12) 70%, rgba(17,17,17,0) 100%),
              linear-gradient(0deg, rgba(17,17,17,.55) 0%, rgba(17,17,17,0) 28%);
  opacity: 0;
  transition: opacity 1.2s ease-out;
}
.vis-hero.is-video .vis-hero__scrim { opacity: 1; }

/* headline block */
.vis-hero__text {
  position: absolute; z-index: 3;
  left: max(8%, calc((100vw - 1400px) / 2));
  top: 50%; transform: translateY(-50%);
  /* the headline's size sets the box: 7.8em fits its longest line ("video production", 7.66em), so the
     line under it wraps at the headline's width and never runs past it (Henry, 13 Nov 2026) */
  font-size: clamp(36px, 3.9vw, 56px);
  width: 7.8em; max-width: min(680px, 47vw);
  color: #FFFFFF;
  text-align: left;
}
.vis-hero__rule { display: block; width: 34px; height: 1px; background: #D4A24E; margin: 0 0 26px; }
body.home .vis-hero h1.vis-hero__title {
  margin: 0; padding: 0;
  font-family: Raleway, "Helvetica Neue", Arial, sans-serif; font-weight: 300;
  font-size: 1em; line-height: 1.12; letter-spacing: -.005em;
  color: #FFFFFF; text-transform: none; text-align: left;
  text-wrap: balance;
}
body.home .vis-hero p.vis-hero__sub {
  margin: 24px 0 0; padding: 0; max-width: none; text-wrap: pretty;
  font-family: Raleway, "Helvetica Neue", Arial, sans-serif; font-weight: 400;
  font-size: clamp(16px, 1.32vw, 19px); line-height: 1.5;
  color: rgba(255,255,255,.88);
}

/* phones and small tablets: portrait at the top, headline under it, buttons at the foot (as before) */
@media (max-width: 768px) {
  .vis-hero__portrait {
    right: auto; left: 50%; bottom: auto;
    top: calc(64px + 1.5vh);
    transform: translateX(-50%);
    width: min(82vw, calc(52svh * 0.6243));
  }
  .vis-hero__scrim {
    opacity: 1;
    background: linear-gradient(180deg, rgba(17,17,17,0) 38%, rgba(17,17,17,.82) 62%, #111111 100%);
  }
  .vis-hero__text {
    left: 24px; right: auto; top: auto; transform: none; max-width: calc(100vw - 48px);
    font-size: clamp(28px, 8.6vw, 36px); width: 7.8em;
    bottom: calc(260px + 100vh - 100svh);
  }
  .vis-hero__rule { margin-bottom: 18px; }
  body.home .vis-hero h1.vis-hero__title { font-size: 1em; }
  body.home .vis-hero p.vis-hero__sub { margin-top: 14px; font-size: 15.5px; }
}
@media (max-width: 768px) and (max-height: 700px) {
  .vis-hero__portrait { width: min(60vw, calc(44svh * 0.6243)); }
  .vis-hero__text { bottom: calc(220px + 100vh - 100svh); font-size: 26px; }
}

/* the "Who we are" block used the same portrait as its background: it now shows once, in the hero.
   Without the picture in the middle, its four short blocks sit in one row (Phase 2 replaces this block). */
body.home #us .bghppanel { background-image: none !important; }
@media (min-width: 769px) {
  body.home #us .bghppanel {
    display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 48px; row-gap: 40px; height: auto !important; min-height: 0 !important;
  }
  body.home #us .bghppanel > .repeat-block {
    width: auto !important; max-width: none !important; margin: 0 !important; padding-left: 0 !important; padding-right: 0 !important;
    float: none !important; position: static !important; transform: none !important; left: auto !important; top: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vis-hero__scrim, .vis-hero__reel { transition: none; }
}

/* phones and tablets never load the reel */
@media (max-width: 1024px) { .vis-hero__reel { display: none; } }

/* ==========================================================
   Below the hero - layout C "Work-led" (Phase 2, chosen by Henry 12 Nov 2026).
   Builds on the landing pages' .vlp styles (visualise-landing/vis-landing.css, loaded on the home page).
   ========================================================== */
body.home .vhm { background: #1c1c1c; padding-bottom: 120px; }
.vhm .vhm-wrap { width: 84%; max-width: 1208px; margin: 0 auto; }
.vhm .vlp-sec { padding-top: 112px; }
.vhm .vhm-awards-sec { padding-top: 88px; }
/* the gap under the awards matches the gap above them (Henry, 13 Nov 2026) */
.vhm .vhm-awards-sec + .vlp-sec { padding-top: 56px; }
.vhm p { margin: 0; }
.vhm .vhm-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.vhm .vhm-head-row h2.vlp-h { margin: 0; }

/* awards (13 Nov 2026: in place of the four figures) */
.vhm .vhm-awards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.vhm .vhm-awards li { margin: 0; padding: 18px 0 20px; border-top: 1px solid rgba(255, 255, 255, .14); }
.vhm .vhm-aw-t { display: block; font: 500 15px/1.4 Raleway, sans-serif; color: #fff; }
.vhm .vhm-aw-p { display: block; margin-top: 4px; font: 400 13px/1.5 Raleway, sans-serif; color: #A9A9A9; }

/* selected work: two large cards a row */
.vhm .vhm-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 40px; }
.vhm .vhm-work .vlp-card-img { aspect-ratio: 3 / 2; border-radius: 30px; }
.vhm .vlp-card-img picture, .vhm .vlp-card-img img { display: block; width: 100%; height: 100%; }
.vhm .vlp-card-img img { object-fit: cover; }
.vhm .vhm-work .vlp-card-t { font-size: 24px; }
.vhm .vhm-client { display: block; margin-top: 20px; font: 500 11px/1.3 Raleway, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #CFCAC2; }
.vhm .vhm-client .vhm-dot { color: #777; }
.vhm .vhm-client .vhm-type { color: #9F9F9F; }
.vhm .vlp-card-img.has-logo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, 0) 100%); }
.vhm .vhm-card-logo { position: absolute; z-index: 1; left: 30px; bottom: 26px; display: block; line-height: 0; }
.vhm .vlp-card-img .vhm-card-logo img, .vlp a.vlp-card:hover .vlp-card-img .vhm-card-logo img {
  width: var(--w); max-width: none; height: auto; object-fit: contain; transform: none; filter: drop-shadow(0 1px 12px rgba(0, 0, 0, .35)); }
.vhm .vhm-client + .vlp-card-t { margin-top: 8px; }
.vhm .vhm-work .vlp-card-l { color: #DCDCDC; }

/* clients and quotes band */
.vhm .vhm-band { margin-top: 112px; padding: 64px 0 72px; background: #151515; }
.vhm .vhm-logos { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px 20px; align-items: center; margin: 0; padding: 0; list-style: none; }
.vhm .vhm-logos li { display: flex; align-items: center; justify-content: center; height: 92px; margin: 0; padding: 0; }
/* width from the inline style, height follows the file's own shape - never squeezed */
.vhm .vhm-logos img { display: block; max-width: 100%; height: auto; opacity: .82; }
.vhm .vhm-quotes { margin-top: 72px; }
.vhm .vhm-quotes .vlp-quote { margin-top: 0; max-width: 980px; }
.vhm .vhm-q[hidden] { display: none; }
.vhm .vhm-qwrap.is-fade { display: grid; grid-template-columns: minmax(0, 1fr); }
.vhm .vhm-qwrap.is-fade > .vhm-q { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.vhm .vhm-qwrap.is-fade > .vhm-q.is-on { opacity: 1; visibility: visible; transition: opacity .75s ease .4s, visibility 0s linear .4s; }
.vhm .vhm-qwrap.is-fade > .vhm-qtabs { grid-area: 2 / 1; }
.vhm .vhm-qtabs button { position: relative; }
.vhm .vhm-qbar { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: #D4A24E; transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.vhm .vhm-qwrap.is-auto .vhm-qtabs button[aria-selected="true"] { border-bottom-color: rgba(212, 162, 78, .28); }
.vhm .vhm-qwrap.is-auto .vhm-qtabs button[aria-selected="true"] .vhm-qbar { animation: vhm-qbar var(--qd, 9s) linear forwards; }
.vhm .vhm-qwrap.is-paused .vhm-qbar, .vhm .vhm-quotes:hover .vhm-qbar, .vhm .vhm-quotes:focus-within .vhm-qbar { animation-play-state: paused !important; }
@keyframes vhm-qbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .vhm .vhm-qwrap.is-fade > .vhm-q, .vhm .vhm-qwrap.is-fade > .vhm-q.is-on { transition: none; } }
.vhm .vhm-q blockquote p { margin: 0; font: 300 clamp(19px, 1.9vw, 25px)/1.55 Raleway, sans-serif; color: #fff; text-wrap: pretty; }
.vhm .vhm-qname { margin-top: 20px; font: 500 14px/1.5 Raleway, sans-serif; letter-spacing: .03em; color: #BBB; }
.vhm .vhm-qtabs { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 26px; }
.vhm .vhm-qtabs button { appearance: none; margin: 0; padding: 0 0 8px; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: none; cursor: pointer;
  font: 500 12px/1.2 Raleway, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #8d8d8d; }
.vhm .vhm-qtabs button:hover { color: #ddd; }
.vhm .vhm-qtabs button[aria-selected="true"] { color: #fff; border-bottom-color: #D4A24E; }
.vhm .vhm-qtabs button:focus-visible { outline: 2px solid #D4A24E; outline-offset: 4px; }

/* what we make, who we work with */
.vhm .vhm-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 88px; align-items: start; }
.vhm .vhm-lead { font: 300 17px/1.75 Raleway, sans-serif; color: #e6e6e6; max-width: 62ch; }
.vhm .vhm-lead + .vhm-lead { margin-top: 18px; }
.vhm .vhm-lead a { color: #fff; text-decoration: underline; text-decoration-color: rgba(212, 162, 78, .8); text-underline-offset: 4px; }
.vhm .vhm-svc { margin: 28px 0 0; padding: 0; list-style: none; }
.vhm .vhm-svc li { margin: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.vhm .vhm-svc li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.vhm .vhm-svc a { display: block; padding: 15px 0 14px; font: 500 18px/1.4 Raleway, sans-serif; color: #fff; text-decoration: none; }
.vhm .vhm-svc a:hover, .vhm .vhm-svc a:focus-visible { color: #D4A24E; }
.vhm .vhm-routes { display: grid; gap: 20px; }
.vhm a.vhm-route { display: block; padding: 34px 40px 36px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 30px; color: #fff; text-decoration: none; }
.vhm a.vhm-route:hover { border-color: rgba(255, 255, 255, .4); }
.vhm .vhm-route .vlp-eyebrow { display: block; }
.vhm .vhm-route-t { display: block; font: 300 clamp(19px, 1.6vw, 23px)/1.5 Raleway, sans-serif; text-wrap: pretty; }
.vhm .vhm-route .vlp-arrow { margin-top: 20px; }
.vhm .vhm-needs { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.vhm .vhm-needs span { font: 400 14px/1 Raleway, sans-serif; color: #A9A9A9; margin-right: 6px; }
.vhm .vhm-needs a { display: inline-block; padding: 11px 18px 10px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; font: 400 14px/1.2 Raleway, sans-serif; color: #fff; text-decoration: none; }
.vhm .vhm-needs a:hover, .vhm .vhm-needs a:focus-visible { border-color: #D4A24E; }

/* "Projects from £10k" under How we work */
.vhm .vhm-price { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px 56px; margin-top: 64px; padding: 36px 44px; border-radius: 30px; background: #232323; }
.vhm .vhm-price-big { font: 300 clamp(30px, 3vw, 44px)/1.1 Raleway, sans-serif; letter-spacing: .02em; white-space: nowrap; color: #fff; }
.vhm .vhm-price-t { font: 400 15.5px/1.7 Raleway, sans-serif; color: #D6D6D6; max-width: 52ch; }
.vhm .vhm-price .vlp-arrow { white-space: nowrap; }

/* FAQs: accordion made by vis-home.js (without it every answer shows) */
.vhm .vhm-faqs .vis-extra-block { margin: 0; }
.vhm .vhm-faqs .vis-faq { max-width: 900px; margin: 0; padding: 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.vhm .vhm-faqs .vis-faq h3 { margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .16); font: 500 18px/1.45 Raleway, sans-serif; color: #fff; text-align: left; }
.vhm .vhm-faqs .vis-faq h3 button { position: relative; display: block; width: 100%; margin: 0; padding: 22px 52px 21px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font: inherit; color: inherit; }
.vhm .vhm-faqs .vis-faq h3 button::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 300 30px/1 Raleway, sans-serif; color: #D4A24E; }
.vhm .vhm-faqs .vis-faq h3 button[aria-expanded="true"]::after { content: "\2212"; }
.vhm .vhm-faqs .vis-faq h3 button:focus-visible { outline: 2px solid #D4A24E; outline-offset: 2px; }
.vhm .vhm-faqs .vhm-faq-a { padding: 0 52px 26px 0; }
.vhm .vhm-faqs .vhm-faq-a[hidden] { display: none; }
.vhm .vhm-faqs .vhm-faq-a p, .vhm .vhm-faqs .vhm-faq-a li { font: 400 15.5px/1.75 Raleway, sans-serif; color: #D6D6D6; }
.vhm .vhm-faqs .vhm-faq-a p + p, .vhm .vhm-faqs .vhm-faq-a p + ul, .vhm .vhm-faqs .vhm-faq-a ul + p { margin-top: 12px; }
.vhm .vhm-faqs .vhm-faq-a ul { margin: 8px 0 0 1.1em; padding: 0; list-style: disc; }

/* talk to us, news */
.vhm .vlp-close { margin-top: 0; }
.vhm h2.vlp-close-h { margin: 0; }
.vhm .vhm-close-sub { margin-top: 12px; font: 400 16px/1.6 Raleway, sans-serif; color: #C4C4C4; }
.vhm .vhm-news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.vhm .vhm-news .vlp-card-img { aspect-ratio: 16 / 9; }
.vhm .vhm-date { display: block; margin-top: 18px; font: 400 13px/1.4 Raleway, sans-serif; color: #9a9a9a; }

@media (max-width: 1100px) {
  .vhm .vhm-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vhm .vhm-price { grid-template-columns: auto minmax(0, 1fr); }
  .vhm .vhm-price .vlp-arrow { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .vhm .vhm-wrap { width: auto; margin: 0 24px; }
  .vhm .vlp-sec { padding-top: 76px; }
  .vhm .vhm-awards-sec { padding-top: 64px; }
  .vhm .vhm-awards-sec + .vlp-sec { padding-top: 36px; }
  .vhm .vlp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .vhm .vhm-awards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .vhm .vhm-card-logo { left: 20px; bottom: 18px; }
  .vhm .vlp-card-img .vhm-card-logo img, .vlp a.vlp-card:hover .vlp-card-img .vhm-card-logo img { width: calc(var(--w) * .78); }
  .vhm .vhm-price { grid-template-columns: 1fr; padding: 30px 26px; gap: 16px; border-radius: 24px; }
  .vhm .vhm-price-big { white-space: normal; }
  .vhm .vhm-work, .vhm .vhm-news, .vhm .vhm-two { grid-template-columns: 1fr; gap: 44px; }
  .vhm .vhm-work .vlp-card-img { border-radius: 24px; }
  .vhm .vhm-work .vlp-card-t { font-size: 21px; }
  .vhm .vhm-band { margin-top: 76px; padding: 44px 0 50px; }
  .vhm .vhm-logos { gap: 4px 14px; }
  .vhm .vhm-logos li { height: 64px; }
  .vhm .vhm-quotes { margin-top: 48px; }
  .vhm a.vhm-route { padding: 28px 26px 30px; border-radius: 24px; }
  .vhm .vhm-head-row { display: block; }
  .vhm .vhm-head-row h2.vlp-h { margin-bottom: 14px; }
  .vhm .vhm-head-row .vlp-arrow { display: inline-block; margin-bottom: 28px; }
  .vhm .vlp-close { grid-template-columns: 1fr; padding: 34px 26px 36px; }
  .vhm .vhm-faqs .vis-faq h3 { font-size: 16.5px; }
}
