/* Home page (dark). Positions follow the live 1440 layout. */
.red { color: var(--red); }

/* Showreel */
.reel { padding: 100px 24px 0 220px; }
.reel__frame { position: relative; aspect-ratio: 1196 / 804; background: #000; overflow: hidden; }
.reel__frame video { width: 100%; height: 100%; object-fit: cover; }

/* Client logo ticker */
.ticker { overflow: hidden; padding: 59px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker__track { display: flex; align-items: center; gap: 120px; width: max-content; animation: ticker 40s linear infinite; }
.ticker__track img { height: 47px; width: auto; max-width: 80px; object-fit: contain; opacity: 0.55; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Intro statement */
.home-intro { padding: 32px 24px 160px 223px; }
.home-intro h1 { max-width: 912px; }

/* Expertise circles (static stand-in for the Spline scene) */
.home-circles { position: relative; min-height: 701px; padding: 0 0 60px; }
.home-circles .t-eyebrow { position: absolute; left: 82px; top: 0; }
.home-circles__frame { margin: -80px 0 -40px; }
/* Bubbles stay hidden until the scene has loaded and the section is well in view, then fade in slowly */
[data-scene-fade] { opacity: 0; transition: opacity 3s cubic-bezier(0.25, 0.1, 0.25, 1); }
[data-scene-fade].is-in { opacity: 1; }
.home-circles__scene { display: block; width: 100%; height: 820px; }
.circles { display: block; width: min(480px, 90vw); height: auto; margin: 0 auto; }
.circles__labels { fill: #fff; font: 400 11px/1 var(--font-body); letter-spacing: 0.02em; }
.home-circles--centre { padding: 40px 0 40px; }
.home-circles--centre + .narrow { position: relative; padding-top: 0; }
/* The scene has a lot of empty canvas under the bubbles; pull the next section up so the gap below matches the one above */
.home-circles--centre .home-circles__frame { margin-bottom: -115px; }
@media (max-width: 809.98px) { .home-circles--centre .home-circles__frame { margin-bottom: calc(-75px * var(--scene-scale)); } }

/* Expertise concertina: hovering a row opens it to show a looping slideshow, text and a link */
.conc { border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.conc__row { position: relative; display: flex; align-items: flex-end; height: 225px; padding: 0 48px 48px 82px; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, 0.3); transition: height 0.6s cubic-bezier(0.34, 1.25, 0.64, 1), background-color 0.4s; }
.conc__row:hover, .conc__row:focus-within { height: 330px; background: #141010; }
.conc__row { cursor: pointer; }
.conc__row h3 { white-space: nowrap; }
.conc__toggle { all: unset; display: block; font: inherit; color: inherit; }
.conc__panel, .conc__inner { display: contents; }
.conc__media { position: absolute; right: 512px; bottom: 48px; width: 338px; height: 234px; overflow: hidden; background: #1d1818; }
.conc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }  /* hard cut between slides, as live */
.conc__media img.is-active { opacity: 1; }
.conc__more { position: absolute; right: 48px; bottom: 48px; width: 414px; }
/* On open, a mask reveals the image upwards from its bottom edge (no scaling) and the text drops into place */
.conc__media, .conc__more { opacity: 0; transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), clip-path 0.4s cubic-bezier(0.65, 0, 0.35, 1); }
.conc__media { clip-path: inset(100% 0 0 0); }
.conc__more { transform: translateY(-16px); }
.conc__row:hover .conc__media, .conc__row:hover .conc__more, .conc__row:focus-within .conc__media, .conc__row:focus-within .conc__more { opacity: 1; transform: none; clip-path: inset(0); transition-delay: 0.05s; }
.conc__link { display: inline-flex; margin-top: 20px; padding: 9px 10px; font: 700 12px/12px var(--font-body); letter-spacing: 0.36px; text-transform: uppercase; border: 1px solid currentColor; transition: background 0.2s, color 0.2s; }
.conc__link:hover { background: #fff; color: #000; }
@media (min-width: 1100px) and (max-width: 1299.98px) {
  .conc__media { display: none; }
}
@media (hover: none) and (min-width: 1100px) {
  .conc__row { height: 330px; }
  .conc__media, .conc__more { opacity: 1; transform: none; clip-path: inset(0); }
}

/* Featured work: proportional to the viewport width, wiped in from the left, with a spotlight
   that keeps the block in the middle of the screen at full strength and dims the rest. */
.featured { --fu: calc(100vw / 1440); position: relative; padding: calc(160 * var(--fu)) calc(24 * var(--fu)) calc(210 * var(--fu)) 0; }
.featured__label { position: absolute; left: calc(82 * var(--fu)); top: calc(160 * var(--fu)); }
.feat { display: grid; grid-template-columns: calc(836 * var(--fu)) calc(260 * var(--fu)); gap: calc(32 * var(--fu)); margin-left: calc(288 * var(--fu)); align-items: start; }
.feat + .feat { margin-top: calc(80 * var(--fu)); }
.feat--right { grid-template-columns: calc(260 * var(--fu)) calc(836 * var(--fu)); }
.feat--right .feat__media { order: 2; }
.feat__media { position: relative; aspect-ratio: 836 / 525; overflow: hidden; background: #0d0909; }
.feat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.feat__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity 0.5s;
  background: linear-gradient(to bottom, rgba(7, 3, 3, 0.75) 5%, rgba(7, 3, 3, 0) 35%, rgba(7, 3, 3, 0) 65%, rgba(7, 3, 3, 0.75) 95%) fixed; }
.feat:hover .feat__media img { transform: scale(1.02); }
.feat:hover .feat__media::after { opacity: 0; }
.feat__text h3 { color: var(--grey); transition: color 0.4s; }
.feat:hover .feat__text h3 { color: #fff; }
.feat__text .t-eyebrow { margin-top: 50px; }
.feat__text .t-lead { margin-top: 10px; }
.feat.reveal { opacity: 1; transform: none; }
.feat.reveal .feat__media { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(0.65, 0, 0.35, 1); }
.feat.reveal .feat__text { opacity: 0; transition: opacity 0.8s var(--ease) 0.5s; }
.feat.reveal.is-in .feat__media { clip-path: inset(0); }
.feat.reveal.is-in .feat__text { opacity: 1; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; padding: 0 32px 200px; }
.quote { margin: 0; }
.quote__img { aspect-ratio: 433 / 269; overflow: hidden; background: #111; }
.quote__img img { width: 100%; height: 100%; object-fit: cover; }
.quote figcaption { margin-top: 18px; }
.quote__role { font-family: var(--font-display); font-size: 15px; line-height: 21px; letter-spacing: 0; }
.quote__role:first-of-type { margin-top: 10px; font-weight: 700; }
.quote blockquote { margin: 50px 0 0; }

@media (max-width: 1099.98px) {
  .reel { padding-left: 160px; }
  .home-intro { padding-left: 160px; }
  .feat, .feat--right { margin-left: 0; grid-template-columns: 1fr; }
  .feat--right .feat__media { order: 0; }
  .featured { padding-top: 220px; }
  .featured__label { left: 24px; }
  /* Accordion: tap a title to open its row (one at a time) */
  .conc__row, .conc__row:hover, .conc__row:focus-within { display: block; height: auto; padding: 24px 48px; background: none; }
  .conc__row.is-open { background: #141010; }
  .conc__row h3 { white-space: normal; }
  .conc__toggle { width: 100%; cursor: pointer; }
  .conc__toggle:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }
  .conc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
  .conc__row.is-open .conc__panel { grid-template-rows: 1fr; }
  .conc__inner { display: block; min-height: 0; overflow: hidden; }
  .conc__media, .conc__more { position: relative; right: auto; bottom: auto; }
  .conc__media { width: 206px; height: 143px; margin-top: 16px; }
  .conc__more { width: auto; max-width: 300px; margin-top: 40px; padding-bottom: 8px; }
  .conc__row:hover .conc__media, .conc__row:focus-within .conc__media { opacity: 0; clip-path: inset(100% 0 0 0); }
  .conc__row:hover .conc__more, .conc__row:focus-within .conc__more { opacity: 0; transform: translateY(-16px); }
  .conc__row.is-open .conc__media, .conc__row.is-open .conc__more { opacity: 1; transform: none; clip-path: inset(0); transition-delay: 0.1s; }
}
@media (max-width: 809.98px) {
  .reel { padding: 100px 24px 0; }
  .ticker { padding: 32px 0; }
  .ticker__track { gap: 64px; }
  .ticker__track img { height: 34px; }
  .home-intro { padding: 24px 24px 80px; }
  .home-circles { min-height: 0; }
  /* Render the scene at a fixed size and shrink it to the screen, so all three bubbles fit */
  .home-circles__frame { --scene-scale: 0.5; height: calc(820px * var(--scene-scale)); margin: 0; overflow: hidden; }
  .home-circles__scene { width: 760px; transform: scale(var(--scene-scale)); transform-origin: 0 0; }
  .home-circles .t-eyebrow { position: static; padding: 0 24px 24px; }
  .conc__row, .conc__row:hover, .conc__row:focus-within { padding: 24px 24px; }
  .featured { padding: 80px 24px; }
  .featured__label { position: static; margin-bottom: 24px; }
  .feat__text .t-eyebrow { margin-top: 20px; }
  .feat + .feat { margin-top: 56px; }
  .quotes { grid-template-columns: 1fr; gap: 56px; padding: 0 24px 100px; }
  .quote blockquote { margin-top: 20px; }
}
