/* Fugue custom styles — loaded after the exported Webflow stylesheet.
   Breakpoints match Webflow's: tablet <=991px, mobile landscape <=767px, mobile <=479px.
   Note: a base rule here also overrides the Webflow file's media-query rules for the same
   selector (later stylesheet wins at equal specificity), so per-breakpoint values below are
   restated where needed. */

/* ---------- Brand tokens ---------- */
:root {
  --fugue-dark: #1F1F1F;
  --fugue-text: #ddd;
  --focus-ring: #ddd;
}

/* ---------- 1. No sideways scroll: 100% instead of 100vw (100vw includes the scrollbar on Windows/Linux) ---------- */
body {
  overflow-x: hidden;
  overflow-x: clip;
}

.hero_section,
.trustedby_section.bg_image-2,
.section-3,
.contact_section,
.footer-section,
.images_container,
.text_container,
.getintouch_section,
.work_display_section,
.work_section,
.section-4 {
  width: 100%;
}

/* ---------- 2. Content-driven heights instead of fixed vh (vh boxes clip or overlap when text wraps) ----------
   Heights stay fixed where children are absolutely positioned (BTS collage, logo cloud, hero images),
   since those boxes are what the children are laid out against. svh = small viewport height, which
   accounts for mobile browser toolbars; the vh line before it is the fallback. */
.contact_section,
.thank-you_section {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
}

.hero_section.bg_image {
  height: auto;
  min-height: 61vw;
}

.trustedby_section.bg_image-2 {
  height: auto;
  min-height: 70vw;
}

/* Ad film stills: the row is sized to the viewport and the images fill its height */
._3x1-grid {
  height: 80vh;
  height: 80svh;
  max-height: 60vw;
}

.ad_film_preview {
  height: 100%;
  width: auto;
  min-width: 0;
  object-fit: cover;
}

/* AI section: exactly one screen tall. fugue.js snaps to it when scrolling down only. */
.section-4 {
  height: 100vh;
  height: 100svh;
  min-height: 0;
}

/* Header pinned top, trigger warning pinned to the bottom edge */
.ai_header-div {
  height: 100%;
  min-height: 0;
  justify-content: space-between;
  grid-row-gap: 2rem;
  row-gap: 2rem;
  padding-bottom: clamp(1.25rem, 3vh, 2rem);
}

/* ---------- 6. Fluid typography ---------- */
/* Hero headline is excluded: the rolling-text animation depends on its fixed sizes */
h1:not(.header_1):not(.rolling-text) {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
}

p {
  font-size: clamp(1rem, .9rem + .45vw, 1.25rem);
}

.about_heading,
.about_heading-2 {
  font-size: clamp(2rem, -.1rem + 4.6vw, 4.2rem);
}

/* ---------- 7. Fluid section spacing (top padding left alone where it clears the fixed navbar) ---------- */
.section-3 {
  padding-top: clamp(4rem, 7vw, 6.25rem);
  padding-bottom: clamp(4rem, 7vw, 6.25rem);
}

.about_section {
  padding-bottom: clamp(4rem, 7vw, 6.25rem);
}

.services_section {
  padding-bottom: clamp(5rem, 10vw, 9.5rem);
}

/* ---------- 9. Focus and tap targets ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.w-nav-button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.submit-button,
.cta-button,
.cta-button-2 {
  min-height: 44px;
}

/* ---------- 10. Form fields: 16px stops iOS zooming in on focus ---------- */
.w-input,
.w-select {
  min-height: 44px;
  font-size: 16px;
}

/* ---------- 12. Images: AVIF with JPEG/PNG fallback ---------- */
/* <picture> wrappers are layout-transparent so the <img> keeps its original place in flex/grid */
picture {
  display: contents;
}

/* With the wrapper gone, <source> would become an empty grid/flex item; image selection is unaffected */
picture > source {
  display: none;
}

/* Browsers that can't parse image-set() with type() keep the first (JPEG/PNG) declaration */
.hero_section,
.trustedby_section,
.section-3,
.contact_section,
.services_section,
.about_section,
.thank-you_section,
.getintouch_section,
.work_display_section,
.work_section,
.meet_team_section {
  background-image: url("/assets/images/6992fc6c9e8f82ff6e8e5ba2_What-We-Do-BG.png");
  background-image: image-set(
    url("/assets/images/6992fc6c9e8f82ff6e8e5ba2_What-We-Do-BG.avif") type("image/avif"),
    url("/assets/images/6992fc6c9e8f82ff6e8e5ba2_What-We-Do-BG.png") type("image/png"));
}

.hero_section.bg_image {
  background-image: url("/assets/images/698b7352e7b0968b9f8377c0_Hero-Section.-BG.jpg");
  background-image: image-set(
    url("/assets/images/698b7352e7b0968b9f8377c0_Hero-Section.-BG.avif") type("image/avif"),
    url("/assets/images/698b7352e7b0968b9f8377c0_Hero-Section.-BG.jpg") type("image/jpeg"));
}

.trustedby_section.bg_image-2 {
  background-image: url("/assets/images/698b73529d99dbd3ff32935b_Section-3-BG.jpg");
  background-image: image-set(
    url("/assets/images/698b73529d99dbd3ff32935b_Section-3-BG.avif") type("image/avif"),
    url("/assets/images/698b73529d99dbd3ff32935b_Section-3-BG.jpg") type("image/jpeg"));
}

/* ---------- 13. Images keep their aspect ratio now that they carry width/height attributes ---------- */
img {
  height: auto;
}

/* ---------- 14. Fixed backgrounds don't work on touch devices (iOS zooms them) ---------- */
@media (hover: none), (pointer: coarse) {
  .hero_section.bg_image,
  .trustedby_section.bg_image-2,
  .section-4 {
    background-attachment: scroll;
  }
}

/* ---------- 5. Large screens: keep text at a readable line length ---------- */
@media screen and (min-width: 1440px) {
  .img_div {
    max-width: 80rem;
  }

  .about_us_para,
  .centre-para,
  .centre-para-work,
  .work-description-text {
    max-width: 70ch;
  }

  .centre-para,
  .centre-para-work {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Home "What We Do" intro paragraph spans ~90% of the viewport */
.para_div {
  width: 90vw;
  max-width: none;
}

/* ---------- About Us: Meet the Team ---------- */
.meet_team_section {
  padding: clamp(3.5rem, 6vw, 5rem) clamp(1rem, 3vw, 2.5rem);
  background-size: cover;
  background-repeat: no-repeat;
}

.team_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  align-items: start;
  gap: 32px;
  width: 90vw;
  max-width: none;
  margin: 48px auto 0;
}

.team_card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

/* Downward-pointing triangle on desktop */
.team_card.pos_top_left { grid-area: 1 / 1 / 2 / 2; }
.team_card.pos_top_right { grid-area: 1 / 3 / 2 / 4; }
.team_card.pos_bottom_center { grid-area: 2 / 2 / 3 / 3; }

/* A card switched off with the `hidden` attribute: the other two sit side by side, same card size */
.team_card[hidden] { display: none; }
@media screen and (min-width: 992px) {
  .team_grid:has(> .team_card[hidden]) { grid-template-columns: repeat(2, 1fr); width: 60vw; }
  .team_grid:has(> .team_card[hidden]) .team_card.pos_top_right { grid-area: 1 / 2 / 2 / 3; }
}

.team_image {
  width: 85%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
}

.team_name {
  margin: 4px 0 0;
  color: #103731;
  font-size: 20px;
  font-weight: 600;
}

.team_title {
  margin-top: 0;
  opacity: .7;
  font-size: 14px;
}

.team_body {
  margin: 6px 0 0;
  opacity: .8;
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Tablet ---------- */
@media screen and (max-width: 991px) {
  .hero_section.bg_image {
    min-height: 90vh;
    min-height: 90svh;
  }

  .trustedby_section.bg_image-2 {
    min-height: 80vh;
    min-height: 80svh;
  }

  ._3x1-grid {
    height: 70vh;
    height: 70svh;
    max-height: none;
  }

  .ai_header-div {
    width: 60vw;
  }

  /* Two up, third card centred underneath */
  .team_grid { grid-template-columns: repeat(2, 1fr); width: 100%; gap: 40px 24px; }
  .team_card.pos_top_left { grid-area: 1 / 1 / 2 / 2; }
  .team_card.pos_top_right { grid-area: 1 / 2 / 2 / 3; }
  .team_card.pos_bottom_center { grid-area: 2 / 1 / 3 / 3; max-width: calc(50% - 12px); }
}

/* ---------- Mobile landscape ---------- */
@media screen and (max-width: 767px) {
  /* 3. Containers sized in narrow vw get room to breathe */
  .header_div,
  .cta-container {
    width: 80vw;
  }

  .contact-hflex {
    width: auto;
  }

  .ai_header-div {
    width: 100%;
    padding-right: 1.25rem;
  }

  /* 8. Hamburger: pushed right by flex instead of hand-tuned padding-left (233/300/88px) */
  .nav_container1 {
    justify-content: space-between;
  }

  .menu_button {
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
    padding: 10px;
  }

  /* Open menu spans the navbar instead of 100vw shifted 42px right */
  .nav-menu {
    width: auto;
    margin-left: 0;
  }

  /* 9. Footer links: 44px tap height */
  .pages-vflex a,
  .contact-text-div a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .team_grid { grid-template-columns: 1fr; gap: 48px; max-width: 420px; }
  .team_card.pos_top_left,
  .team_card.pos_top_right,
  .team_card.pos_bottom_center { grid-area: auto; max-width: none; }
  .team_image { width: 70%; }
  .team_body { font-size: 14px; }
}

/* ---------- Mobile portrait ---------- */
@media screen and (max-width: 479px) {
  .herotext_container,
  .work-quick-stack {
    width: 100%;
  }

  .hero_section.bg_image {
    min-height: 100vh;
    min-height: 100svh;
  }

  /* Children are in normal flow at this size, so the box can follow its content */
  .hero_div,
  .logos_div,
  .images_container {
    height: auto;
  }

  .trustedby_section.bg_image-2 {
    min-height: 0;
  }

  /* Stills stack vertically here; each one fits within the screen */
  ._3x1-grid {
    height: auto;
  }

  .ad_film_preview {
    height: 80vh;
    height: 80svh;
    max-width: 100%;
  }

  /* The only logo still absolutely positioned on mobile; matches the other nine */
  .logos.position-9 {
    width: 55%;
    position: static;
    transform: none;
  }

  /* 11px was too small to read or tap */
  .contact-linktext {
    font-size: .875rem;
  }

  .copyright-text {
    font-size: .8rem;
  }
}

/* Above mobile, give the oversized About headings a line-height that scales with them */
@media screen and (min-width: 480px) {
  .about_heading,
  .about_heading-2 {
    line-height: 1.05;
  }
}

/* =====================================================================
   Design pass
   ===================================================================== */

/* ---------- Scroll reveal (only hidden when JS is running) ---------- */
/* Default (and "zoom"): fade + move. "fade": opacity only, for elements whose transform
   Webflow already uses for positioning (logo cloud, tilted BTS photos). */
.has-js [data-reveal] {
  opacity: 0;
  transition: opacity .7s ease var(--reveal-delay, 0ms),
    transform .7s cubic-bezier(.22, .61, .36, 1) var(--reveal-delay, 0ms),
    scale .7s cubic-bezier(.22, .61, .36, 1);
}

.has-js [data-reveal]:not([data-reveal="fade"]):not([data-reveal="zoom"]):not(.is-visible) {
  transform: translateY(24px);
}

.has-js [data-reveal="zoom"]:not(.is-visible) {
  transform: scale(1.06);
}

.has-js [data-reveal="fade"] {
  transition: opacity .7s ease var(--reveal-delay, 0ms);
}

.has-js [data-reveal].is-visible {
  opacity: 1;
}

/* ---------- Navbar: slimmer pill, same text and logo size ---------- */
.nav_link {
  padding-top: 4px;
  padding-bottom: 4px;
}

.nav_button {
  padding-top: 14px;
  padding-bottom: 14px;
}

@media screen and (min-width: 1440px) {
  .nav_div {
    padding-top: .3rem;
    padding-bottom: .3rem;
  }
}

/* ---------- Hero: rolling title on the same baseline as "We are" ----------
   Both headings share one font size and line-height, the mask is exactly one line tall,
   and each roll moves exactly one line (20% of five lines) at any screen size. */
.herotitle_div {
  --hero-title-size: 3.25rem;
}

.header_1,
.rolling-text-wrapper,
.rolling-text-mask,
.rolling-text,
.rolling-text.text_green {
  font-size: var(--hero-title-size);
  line-height: 1.2;
}

.header_1 {
  width: auto;
  height: auto;
  margin: 0;
  white-space: nowrap;
}

.rolling-text-wrapper {
  margin-left: .35em;
}

.rolling-text-mask {
  height: 1.2em;
  padding-top: 0;
  overflow: hidden;
}

.rolling-text,
.rolling-text.text_green {
  height: auto;
  margin: 0;
  white-space: nowrap;
  animation: fugue-roll 12s infinite;
}

/* Hold 2s, roll 1s — the same rhythm as before; line 5 repeats line 1 so the loop is seamless */
@keyframes fugue-roll {
  0%, 16.667% { transform: translateY(0); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  25%, 41.667% { transform: translateY(-20%); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  50%, 66.667% { transform: translateY(-40%); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  75%, 91.667% { transform: translateY(-60%); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  100% { transform: translateY(-80%); }
}

/* ---------- About: marquee banners ---------- */
.fugue_marquee_track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: fugue-marquee 28s linear infinite;
}

.fugue_marquee_track .bts_header {
  flex: none;
  margin-top: 0;
  margin-bottom: 0;
  white-space: nowrap;
}

/* Two identical halves: moving by -50% lands exactly where it started */
@keyframes fugue-marquee {
  to { transform: translateX(-50%); }
}

/* ---------- About: "AT WORK" baseline sits on the image's bottom edge ----------
   Geist Mono: ascent 1.005em, descent .295em. At line-height 1.05 the baseline is
   .17em above the bottom of the line box, so the heading drops by exactly that. */
@media screen and (min-width: 992px) {
  .about-us-title-div {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .about_heading-2 {
    margin-top: 2rem;
    margin-bottom: -.17em;
  }

  .img_div .bts_img7 {
    display: block;
  }
}

/* ---------- Home: white stroke centred behind 01 / 02 ---------- */
.work_number {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.work_number_text {
  position: relative;
}

/* Geist Mono's cap height (.71em) is centred in the line box, so 50%/50% is the visual centre of the digits */
.number_stroke {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 2.2em;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ---------- Every green stroke behind a title paints in like a brush ----------
   fugue.js tags the stroke images with .brush_stroke and adds .is-visible on scroll.
   A soft-edged mask slides across, so the leading edge looks like wet paint. */
.has-js .brush_stroke {
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  transition: -webkit-mask-position 1.6s cubic-bezier(.33, .8, .4, 1) .45s,
    mask-position 1.6s cubic-bezier(.33, .8, .4, 1) .45s;
}

.has-js .brush_stroke.is-visible {
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
}

/* ---------- Home: What We Do cards ---------- */
.wwd_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 1.2vw, 1rem);
  width: min(92vw, 80rem);
  margin: clamp(2.5rem, 5vw, 3.75rem) auto;
}

.wwd_card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background-color: #383838;
}

.wwd_card_image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.22, .61, .36, 1);
}

.wwd_card:hover .wwd_card_image {
  transform: scale(1.04);
}

.wwd_card_panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.25rem 1.3rem;
  text-align: center;
  color: var(--fugue-text);
  background-color: rgba(31, 31, 31, .6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.wwd_card_heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}

.wwd_card_icon {
  width: 28px;
  height: 28px;
}

.wwd_card_title {
  margin: 0;
  color: var(--fugue-text);
  font-family: "Geist Mono", monospace;
  font-size: clamp(1.35rem, 1rem + 1vw, 1.85rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .02em;
}

.wwd_card_service {
  margin: .45rem 0 0;
  color: var(--fugue-text);
  font-family: Montserrat, sans-serif;
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .85;
}

/* Body text opens on hover/focus; always open on touch screens */
.wwd_card_more {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  transition: grid-template-rows .45s ease, margin-top .45s ease, opacity .35s ease;
}

.wwd_card_body {
  overflow: hidden;
  min-height: 0;
  margin: 0;
  color: #ccc;
  font-size: .88rem;
  line-height: 1.5;
}

.wwd_card:hover .wwd_card_more,
.wwd_card:focus-within .wwd_card_more {
  grid-template-rows: 1fr;
  margin-top: .75rem;
  opacity: 1;
}

@media (hover: none) {
  .wwd_card_more {
    grid-template-rows: 1fr;
    margin-top: .75rem;
    opacity: 1;
  }
}

@media screen and (max-width: 767px) {
  .wwd_grid {
    grid-template-columns: 1fr;
    max-width: 30rem;
    gap: 1rem;
  }
}

/* ---------- Work: "View project" button on every thumbnail ---------- */
.work_thumb_link {
  position: relative;
  max-width: 100%;
}

.view_project_btn {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem 1rem;
  border-radius: 4px;
  color: var(--fugue-text);
  font-family: Montserrat, sans-serif;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1;
  background-color: rgba(31, 31, 31, .9);
}

.view_project_arrow {
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}

.work_thumb_link:hover .view_project_arrow,
.work_thumb_link:focus-visible .view_project_arrow {
  transform: rotate(-45deg);
}

@media screen and (max-width: 479px) {
  .view_project_btn {
    left: .6rem;
    bottom: .6rem;
    padding: .55rem .8rem;
    font-size: .85rem;
  }
}

/* ---------- Footer ---------- */
.site_footer {
  padding: clamp(4rem, 9vw, 7.5rem) clamp(1rem, 3vw, 2.5rem) 1.5rem;
  border-top: 1px solid rgba(221, 221, 221, .1);
  color: var(--fugue-text);
  background-color: var(--fugue-dark);
}

.footer_cta {
  max-width: 46rem;
  margin: 0 auto clamp(4rem, 9vw, 7rem);
  text-align: center;
}

.footer_cta_title {
  margin: 0;
  color: var(--fugue-text);
  font-family: "Geist Mono", monospace;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.footer_cta_sub {
  margin: 1rem 0 2rem;
  color: #ccc;
  font-size: clamp(.95rem, .9rem + .2vw, 1.05rem);
  line-height: 1.5;
  opacity: .7;
}

.footer_pill {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  min-height: 44px;
  padding: .35rem .35rem .35rem 1.4rem;
  border-radius: 999px;
  color: var(--fugue-dark);
  font-family: Montserrat, sans-serif;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  background-color: var(--fugue-text);
  transition: background-color .25s ease;
}

.footer_pill:hover {
  background-color: #ccc;
}

.footer_pill_icon,
.footer_send_icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--fugue-text);
  background-color: var(--fugue-green);
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}

.footer_pill_icon {
  width: 36px;
  height: 36px;
}

.footer_pill:hover .footer_pill_icon {
  transform: translateX(3px);
}

.footer_main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 3rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.footer_talk {
  grid-row: span 2;
  max-width: 28rem;
}

.footer_tagline {
  margin: 0 0 2rem;
  color: var(--fugue-text);
  font-family: "Geist Mono", monospace;
  font-size: clamp(1.2rem, 1rem + .8vw, 1.55rem);
  font-weight: 500;
  line-height: 1.25;
}

.footer_label {
  margin: 0 0 1rem;
  color: var(--fugue-text);
  font-family: Montserrat, sans-serif;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .6;
}

.footer_form {
  display: grid;
  gap: .75rem;
}

.footer_input {
  width: 100%;
  min-height: 44px;
  padding: .7rem 1.1rem;
  border: 1px solid rgba(221, 221, 221, .35);
  border-radius: 999px;
  color: var(--fugue-text);
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  background-color: transparent;
  transition: border-color .2s ease;
}

.footer_input::placeholder {
  color: rgba(221, 221, 221, .5);
}

.footer_input:focus {
  border-color: var(--fugue-text);
}

.footer_send {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  min-height: 44px;
  margin-top: .5rem;
  padding: 0;
  border: 0;
  color: var(--fugue-text);
  font-family: Montserrat, sans-serif;
  font-size: .95rem;
  font-weight: 500;
  background: none;
  cursor: pointer;
}

.footer_send_icon {
  width: 48px;
  height: 48px;
}

.footer_send:hover .footer_send_icon {
  transform: translate(2px, -2px);
}

.footer_columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 2rem;
}

.footer_col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer_link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--fugue-text);
  font-family: Montserrat, sans-serif;
  font-size: .95rem;
  text-decoration: none;
  overflow-wrap: break-word;
  transition: color .2s ease;
}

.footer_link:hover {
  color: var(--fugue-orange);
}

.footer_wordmark {
  justify-self: end;
  width: min(100%, 34rem);
  height: auto;
}

.footer_bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(221, 221, 221, .1);
}

.footer_small {
  margin: 0;
  color: var(--fugue-text);
  font-family: Montserrat, sans-serif;
  font-size: .8rem;
  text-decoration: none;
  opacity: .6;
}

a.footer_small:hover {
  opacity: 1;
}

@media screen and (max-width: 991px) {
  .footer_main {
    grid-template-columns: 1fr;
  }

  .footer_talk {
    grid-row: auto;
    max-width: 32rem;
  }

  .footer_wordmark {
    justify-self: start;
    width: min(80vw, 28rem);
  }
}

@media screen and (max-width: 767px) {
  .footer_link {
    min-height: 44px;
  }
}

@media screen and (max-width: 479px) {
  .footer_columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
  }

  .footer_col:last-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Home: preloader ---------- */
html.is-preloading {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--fugue-text);
  background-color: var(--fugue-dark);
  transition: opacity .4s ease, visibility .4s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}

.preloader_text {
  margin: 0;
  color: var(--fugue-text);
  font-family: "Geist Mono", monospace;
  font-size: clamp(1.1rem, .9rem + 1vw, 1.6rem);
  line-height: 1.4;
  letter-spacing: .04em;
  text-align: center;
}

/* Fixed-width slot so the sentence doesn't shift as the dots appear */
.preloader_dots {
  display: inline-block;
  width: 3ch;
  text-align: left;
}

.preloader_bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background-color: rgba(221, 221, 221, .12);
}

.preloader_fill {
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background-color: var(--fugue-orange);
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Mobile tweaks for the design pass ---------- */
@media screen and (max-width: 767px) {
  /* Clear the navbar, which sits over the top of the AI section on phones */
  .ai_header-div {
    padding-top: 6rem;
  }
}

@media screen and (max-width: 479px) {
  .herotitle_div {
    --hero-title-size: 2.8rem;
  }

  .rolling-text-wrapper {
    margin-left: 0;
  }
}

/* ---------- Reduced motion: no looping or reveal motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .fugue_marquee_track,
  .rolling-text,
  .rolling-text.text_green {
    animation: none;
  }

  .has-js [data-reveal],
  .has-js .brush_stroke,
  .wwd_card_image,
  .wwd_card_more,
  .view_project_arrow,
  .preloader_fill {
    transition: none;
  }
}

/* =====================================================================
   Mobile layout pass (checked against real WebKit renders at 390px)
   ===================================================================== */
@media screen and (max-width: 767px) {
  /* Hero: title centred and sized to fit "Story-Tellers" */
  .herotitle_div {
    --hero-title-size: clamp(2rem, 9vw, 2.8rem);
    flex-direction: column;
    align-items: center;
  }

  .rolling-text-wrapper {
    margin-left: 0;
  }

  .rolling-text-mask {
    justify-content: center;
  }

  .rolling-text,
  .rolling-text.text_green {
    width: auto;
    text-align: center;
  }

  .hero_div {
    height: auto;
    padding-bottom: 3rem;
  }

  /* Trusted By: two-column logo grid instead of one very long column */
  .trustedby_section.bg_image-2 {
    height: auto;
    min-height: 0;
    padding: 4rem 16px;
  }

  .logos_div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 1.5rem;
    align-items: center;
    justify-items: center;
    width: 100%;
    height: auto;
    margin-top: 2.5rem;
  }

  .logos,
  .logos.position-1, .logos.position-2, .logos.position-3, .logos.position-4, .logos.position-5,
  .logos.position-6, .logos.position-7, .logos.position-8, .logos.position-9, .logos.position-10 {
    position: static;
    width: 72%;
    margin: 0;
    transform: none;
  }

  /* Ad film stills: three across, like a filmstrip, instead of three full screens */
  ._3x1-grid {
    flex-direction: row;
    width: 100%;
    height: auto;
    padding-left: 0;
    gap: .5rem;
  }

  .ad_film_preview {
    width: calc((100% - 1rem) / 3);
    height: auto;
    aspect-ratio: 1177 / 2295;
    border-radius: 8px;
  }

  /* Documentary stills: 2 x 2 instead of four full-width images */
  #w-node-_8ccdf03a-319b-f59f-2479-72c56e76e4a6-ea1b945b {
    grid-template-columns: 1fr 1fr;
  }

  .docu-preview-1 {
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }

  /* "Wait! There's more" — remove the oversized gap above it */
  .cta-container {
    margin-top: 4rem;
  }

  /* Get In Touch: the paragraph no longer runs off the right edge */
  .container_getintouch {
    width: 100%;
    margin-left: 0;
    padding: 0 16px;
  }

  /* Services: images get a side gutter */
  .services_section {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* About: the same paragraph exists twice in the desktop collage; show it once when stacked */
  .about_para {
    display: none;
  }
}

/* Contact page already has the full form: hide the footer's CTA and mini form there */
html[data-wf-page="69d379d8883713902f1525df"] .footer_cta,
html[data-wf-page="69d379d8883713902f1525df"] #footer-talk-label,
html[data-wf-page="69d379d8883713902f1525df"] .footer_form {
  display: none;
}

/* =====================================================================
   Motion system — scroll, hover, click and loop. Short, eased, never flashy.
   All of it is switched off under prefers-reduced-motion (end of file).
   ===================================================================== */
:root {
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}


/* ---------- Load: hero copy rises in once the preloader lifts ---------- */
.has-js .hero_section .herotitle_div,
.has-js .hero_section .hero_body {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s var(--ease-out);
}

.has-js .hero_section .hero_body { transition-delay: .15s; }

html.hero-ready .hero_section .herotitle_div,
html.hero-ready .hero_section .hero_body {
  opacity: 1;
  transform: none;
}

/* ---------- Loop: scroll cue at the bottom of the hero (click scrolls to the next section) ---------- */
.scroll_cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 3;
  display: grid;
  place-items: start center;
  width: 26px;
  height: 42px;
  padding-top: 8px;
  border: 2px solid rgba(221, 221, 221, .6);
  border-radius: 14px;
  transform: translateX(-50%);
  transition: border-color .25s ease;
}

.scroll_cue::before {
  content: "";
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background-color: var(--fugue-text);
  animation: fugue-scroll-cue 1.8s ease-in-out infinite;
}

.scroll_cue:hover {
  border-color: var(--fugue-text);
}

@keyframes fugue-scroll-cue {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(12px); opacity: 0; }
}

.hero_section {
  position: relative;
}

/* ---------- Hover: navbar links get an orange underline that draws in ---------- */
.nav_button::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 9px;
  height: 2px;
  border-radius: 1px;
  background-color: var(--fugue-orange);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .35s var(--ease-out);
}

.nav_button:hover::after,
.nav_button:focus-visible::after,
.nav_button.w--current::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ---------- Click: mobile menu icon turns, links cascade in ---------- */
.menu_button .icon {
  transition: transform .35s var(--ease-out);
}

.menu_button.w--open .icon {
  transform: rotate(90deg);
}

[data-nav-menu-open] .nav_button {
  animation: fugue-menu-in .45s var(--ease-out) both;
}

[data-nav-menu-open] .nav_button:nth-child(2) { animation-delay: .05s; }
[data-nav-menu-open] .nav_button:nth-child(3) { animation-delay: .1s; }
[data-nav-menu-open] .nav_button:nth-child(4) { animation-delay: .15s; }
[data-nav-menu-open] .nav_button:nth-child(5) { animation-delay: .2s; }

@keyframes fugue-menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Hover + click: buttons lift on hover and press in on click ---------- */
.cta-button,
.cta-button-2,
.submit-button,
.footer_pill,
.footer_send,
.view_project_btn {
  transition: transform .2s var(--ease-out), background-color .2s ease, box-shadow .2s ease;
}

/* Filled buttons turn orange on hover. This was a slow Webflow JS hover on Home only;
   it's now CSS (disabled in the Webflow script) so every page matches and it's quick. */
.cta-button:hover,
.cta-button-2:hover,
.submit-button:hover {
  background-color: #e55e24;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  transform: translateY(-2px);
}

.footer_pill:hover {
  transform: translateY(-2px);
}

.cta-button:active,
.cta-button-2:active,
.submit-button:active,
.footer_pill:active,
.footer_send:active {
  box-shadow: none;
  transform: scale(.97);
}

/* ---------- Hover: images ease in slightly (uses `scale` so it never fights reveal transforms) ---------- */
.work_thumb_link,
.link-block.work_thumb_link {
  overflow: hidden;
  border-radius: 20px;
}

.work-thumbnails,
.docu-preview-1,
.ad_film_preview,
.services_img,
.team_image {
  transition: scale .7s var(--ease-out), opacity .7s ease, transform .7s var(--ease-out);
}

.work_thumb_link:hover .work-thumbnails,
.docu-preview-1:hover,
.ad_film_preview:hover,
.services_img:hover,
.team_card:hover .team_image {
  scale: 1.035;
}

.work_thumb_link:hover .view_project_btn {
  background-color: rgba(16, 55, 49, .95);
}

/* "Watch Now" / "Watch Film" links: underline draws in on hover */
.watch-button,
.watch-button-2 {
  position: relative;
  display: inline-block;
  width: auto;
}

.watch-button::after,
.watch-button-2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background-color: var(--fugue-orange);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .35s var(--ease-out);
}

.watch-link-block:hover .watch-button::after,
.watch-link-block:hover .watch-button-2::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ---------- Hover: Trusted By logo cloud tilts as one 3D card (driven by fugue.js) ----------
   The whole container rotates toward the cursor with perspective; each logo keeps the depth
   (translateZ) Webflow gave it, so logos at different depths shift against each other. */
.trustedby_section {
  perspective: 1400px;
}

.logos_div.is-tilt-ready {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------- Reduced motion: switch all of the above off ---------- */
@media (prefers-reduced-motion: reduce) {
  .has-js [data-reveal="zoom"],
  .has-js .hero_section .herotitle_div,
  .has-js .hero_section .hero_body {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll_cue::before,
  [data-nav-menu-open] .nav_button {
    animation: none;
  }

  .nav_button::after,
  .watch-button::after,
  .watch-button-2::after,
  .menu_button .icon,
  .cta-button, .cta-button-2, .submit-button, .footer_pill, .footer_send, .view_project_btn,
  .work-thumbnails, .docu-preview-1, .ad_film_preview, .services_img, .team_image {
    transition: none;
  }

  .work_thumb_link:hover .work-thumbnails,
  .docu-preview-1:hover,
  .ad_film_preview:hover,
  .services_img:hover,
  .team_card:hover .team_image {
    scale: none;
  }
}

@media screen and (max-width: 767px) {
  /* The hero is taller than the screen on phones, so the cue would sit on the photos */
  .scroll_cue {
    display: none;
  }
}

@media screen and (max-width: 479px) {
  /* Webflow nudged this column 17px right, pushing the paragraph past the screen edge */
  .text-flex-docu-film {
    left: 0;
  }
}

/* ---------- Get In Touch: stroke centred behind the heading ----------
   The stroke sits inside the heading; Geist Mono's cap height is centred in the line box,
   so 50%/50% lands on the visual middle of the text at every size. */
.get-in-touch-header {
  isolation: isolate;
}

.get-in-touch-header .title_stroke {
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(9.6em, 100%);
  max-width: none;
  height: auto;
  line-height: normal;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.title_stroke_text {
  position: relative;
}

/* ---------- Hero: title and body centred ---------- */
.hero_div {
  justify-content: center;
}

.herotext_container {
  width: 100%;
  max-width: 62rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.herotitle_div {
  justify-content: center;
}

.hero_body {
  width: 100%;
}

/* ---------- Home: "View project" button in place of "Watch Now" (same as the Work page) ---------- */
.view_project_wrap {
  margin-top: 2.25rem;
}

.view_project_btn.view_project_cta {
  position: static;
  padding: .8rem 1.2rem;
  font-size: 1rem;
  text-decoration: none;
}

.view_project_cta:hover,
.view_project_cta:focus-visible {
  background-color: rgba(16, 55, 49, .95);
}

.view_project_cta:hover .view_project_arrow,
.view_project_cta:focus-visible .view_project_arrow {
  transform: rotate(-45deg);
}

/* ---------- What We Do cards: the whole card opens its pop-up ---------- */
.wwd_card_open {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.wwd_card_open:focus-visible {
  outline-offset: -4px;
}

.wwd_sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wwd_card_hint {
  display: inline-block;
  margin-top: .6rem;
  color: var(--fugue-orange);
  font-family: Montserrat, sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- Service pop-ups (Envision / Execute / Edit Card - Pop up) ---------- */
.service_popup {
  width: min(40rem, calc(100vw - 32px));
  max-height: min(85vh, 48rem);
  max-height: min(85svh, 48rem);
  padding: 0;
  border: 1px solid rgba(221, 221, 221, .12);
  border-radius: 16px;
  color: var(--fugue-text);
  background-color: var(--fugue-dark);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  overflow: auto;
}

.service_popup::backdrop {
  background-color: rgba(10, 10, 10, .65);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Click: open with a quick rise, close with a quick fall (fugue.js adds .is-closing) */
.service_popup[open] {
  animation: fugue-popup-in .35s var(--ease-out);
}

.service_popup[open]::backdrop {
  animation: fugue-fade-in .35s ease;
}

.service_popup.is-closing {
  animation: fugue-popup-out .22s ease forwards;
}

.service_popup.is-closing::backdrop {
  animation: fugue-fade-out .22s ease forwards;
}

@keyframes fugue-popup-in {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: none; }
}

@keyframes fugue-popup-out {
  to { opacity: 0; transform: translateY(12px) scale(.98); }
}

@keyframes fugue-fade-in {
  from { opacity: 0; }
}

@keyframes fugue-fade-out {
  to { opacity: 0; }
}

html:has(.service_popup[open]) {
  overflow: hidden;
}

.service_popup_inner {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.service_popup_close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(221, 221, 221, .2);
  border-radius: 50%;
  color: var(--fugue-text);
  background: transparent;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s var(--ease-out);
}

.service_popup_close:hover {
  background-color: rgba(221, 221, 221, .1);
  transform: rotate(90deg);
}

.service_popup_head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-right: 3rem;
}

.service_popup_icon {
  width: 48px;
  height: 48px;
}

.service_popup_eyebrow {
  margin: 0 0 .25rem;
  color: var(--fugue-orange);
  font-family: Montserrat, sans-serif;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.service_popup_title {
  margin: 0;
  color: var(--fugue-text);
  font-family: "Geist Mono", monospace;
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem);
  line-height: 1.1;
}

.service_popup_lead {
  margin: 0 0 1.75rem;
  color: var(--fugue-text);
  font-size: 1.05rem;
  line-height: 1.6;
}

.service_popup_label {
  margin: 0 0 .75rem;
  color: var(--fugue-text);
  font-family: Montserrat, sans-serif;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .6;
}

.service_popup_list {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.service_popup_list li {
  position: relative;
  padding: .55rem 0 .55rem 1.4rem;
  border-bottom: 1px solid rgba(221, 221, 221, .08);
  color: #ccc;
  font-family: "Geist Mono", monospace;
  font-size: .95rem;
  line-height: 1.5;
}

.service_popup_list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--fugue-orange);
}

.service_popup_text {
  margin: 0 0 2rem;
  color: #ccc;
  font-size: .95rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .service_popup[open],
  .service_popup[open]::backdrop,
  .service_popup.is-closing,
  .service_popup.is-closing::backdrop {
    animation: none;
  }
}

/* Centred hero: the rolling word still starts right after "We are" (no extra gap for short words) */
@media screen and (min-width: 768px) {
  .rolling-text,
  .rolling-text.text_green {
    text-align: left;
  }
}

/* =====================================================================
   Hero — "player one" copy, Play button, 3D scroll entrance
   ===================================================================== */

/* Title and body sit 20px higher */
.herotext_container {
  position: relative;
  top: -20px;
}

.hero_play_row {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .9rem 1.1rem;
  margin-top: 1.4rem;
}

.hero_play_row .hero_question {
  margin: 0;
  padding-top: 0;
}



/* ---------- New Campaign pop-up: collapsible "What's included" (one open at a time) ---------- */
.service_popup_list.is-accordion li {
  padding: 0 0 0 1.4rem;
}

.service_popup_list.is-accordion li::before {
  top: 1.15rem;
}

.included_summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: .55rem 0;
  color: var(--fugue-text);
  font-family: "Geist Mono", monospace;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.included_summary::-webkit-details-marker {
  display: none;
}

.included_icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.included_icon::before,
.included_icon::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background-color: var(--fugue-orange);
  transition: transform .25s var(--ease-out);
}

.included_icon::after {
  transform: rotate(90deg);
}

details[open] > .included_summary .included_icon::after {
  transform: rotate(0deg);
}

.included_body {
  padding: 0 0 .9rem;
}

details[open] > .included_body {
  animation: fugue-included-in .3s var(--ease-out);
}

@keyframes fugue-included-in {
  from { opacity: 0; transform: translateY(-6px); }
}

.included_body p {
  margin: 0;
  color: #ccc;
  font-family: "Geist Mono", monospace;
  font-size: .9rem;
  line-height: 1.6;
}

.included_body .included_ps {
  margin-top: .6rem;
  color: var(--fugue-orange);
  font-size: .85rem;
}

@media screen and (max-width: 767px) {
}

@media (prefers-reduced-motion: reduce) {

  details[open] > .included_body {
    animation: none;
  }
}

/* ---------- Trusted By: SaffronStays, Costa Coffee, HCL in empty spots of the logo cloud ---------- */
@media screen and (min-width: 768px) {
  .logos.position-11,
  .logos.position-12,
  .logos.position-13 {
    position: absolute;
    margin: 0;
    transform: translateZ(18px);
  }

  .logos.position-11 { top: 22%; left: 47%; width: 11%; }
  .logos.position-12 { top: 74%; left: 70%; width: 15%; }
  .logos.position-13 { top: 76%; left: -8%; width: 16%; }
}

@media screen and (min-width: 1920px) {
  .logos.position-11 { top: 62%; left: 78%; }
  .logos.position-12 { top: 70%; left: 55%; }
  .logos.position-13 { top: 72%; left: -10%; }
}

/* ---------- AI section: silent looping video behind the copy ---------- */
.section-4 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image: url("/assets/images/ai-section-poster.jpg");
}

.ai_video {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ---------- Work: numbered hover list with a cursor-following preview (after the reference at 2:18) ---------- */
.work_list {
  width: min(94vw, 80rem);
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  border-top: 1px solid rgba(221, 221, 221, .18);
}

.work_row {
  position: relative;
  border-bottom: 1px solid rgba(221, 221, 221, .18);
}

.work_row_link {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 44px;
  padding: clamp(1.1rem, 2.2vw, 1.6rem) clamp(.75rem, 1.5vw, 1.25rem);
  color: var(--fugue-text);
  text-decoration: none;
  transition: background-color .35s ease;
}

.work_row_link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(221, 221, 221, .06);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform .45s var(--ease-out);
}

.work_row:hover .work_row_link::before,
.work_row_link:focus-visible::before {
  transform: scaleY(1);
  transform-origin: top center;
}

.work_row {
  isolation: isolate;
}

.work_row_num {
  color: var(--fugue-orange);
  font-family: "Geist Mono", monospace;
  font-size: .85rem;
  letter-spacing: .08em;
}

.work_row_title {
  font-family: "Geist Mono", monospace;
  font-size: clamp(1.25rem, .9rem + 1.6vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  transition: transform .45s var(--ease-out), color .3s ease;
}

.work_row:hover .work_row_title,
.work_row_link:focus-visible .work_row_title {
  transform: translateX(14px);
}

.work_row_meta {
  font-family: Montserrat, sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .6;
}

.work_row_arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(221, 221, 221, .25);
  border-radius: 50%;
  transition: transform .45s var(--ease-out), background-color .3s ease, color .3s ease, border-color .3s ease;
}

.work_row:hover .work_row_arrow,
.work_row_link:focus-visible .work_row_arrow {
  color: var(--fugue-dark);
  border-color: var(--fugue-text);
  background-color: var(--fugue-text);
  transform: rotate(45deg);
}

/* Extra links (GL x Mandi Monkeys has two reels) sit above the row's main link */
.work_row_extras {
  position: absolute;
  top: 50%;
  right: calc(44px + 9.5rem);
  z-index: 2;
  display: flex;
  gap: .5rem;
  transform: translateY(-50%);
}

.work_row_extras ~ .work_row_link .work_row_meta,
.work_row:has(.work_row_extras) .work_row_meta {
  visibility: hidden;
}

.work_row_extra {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 .8rem;
  border: 1px solid rgba(221, 221, 221, .3);
  border-radius: 999px;
  color: var(--fugue-text);
  font-family: Montserrat, sans-serif;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .25s ease, color .25s ease;
}

.work_row_extra:hover {
  color: var(--fugue-dark);
  background-color: var(--fugue-text);
}

/* The row's own thumbnail feeds the floating preview on desktop; it's shown inline on touch screens */
.work_row_thumb {
  display: none;
}

.work_preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: clamp(240px, 24vw, 380px);
  aspect-ratio: 16 / 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  will-change: transform;
}

.work_preview.is-active {
  opacity: 1;
}

.work_preview_inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  transform: scale(.8);
  transition: transform .45s var(--ease-out);
}

.work_preview.is-active .work_preview_inner {
  transform: scale(1);
}

.work_preview_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .25s ease;
}

.work_preview_img.is-swapping {
  opacity: 0;
}

@media (hover: none), (pointer: coarse), screen and (max-width: 767px) {
  .work_preview {
    display: none;
  }

  .work_row_thumb {
    display: block;
    padding: 0 clamp(.75rem, 1.5vw, 1.25rem) 1.1rem;
  }

  .work_row_thumb .work_row_img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
  }
}

@media screen and (max-width: 767px) {
  .work_row_link {
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    gap: .75rem;
  }

  .work_row_meta {
    display: none;
  }

  .work_row_extras {
    position: static;
    transform: none;
    padding: 0 clamp(.75rem, 1.5vw, 1.25rem) .9rem calc(2.25rem + .75rem + .75rem);
  }

  .work_row_arrow {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work_row_link::before,
  .work_row_title,
  .work_row_arrow,
  .work_preview,
  .work_preview_inner,
  .work_preview_img {
    transition: none;
  }
}

/* Space under the Work list lives inside the section, and the page itself is dark,
   so no gap between sections can ever show white */
.work_section {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

body {
  background-color: var(--fugue-dark);
}

@media screen and (max-width: 767px) {
  /* Square logo: narrower so its visual weight matches the wide logos in the grid */
  .logos.position-11 {
    width: 44%;
  }
}

/* =====================================================================
   Home — Ad Film display: staggered cards (after the "Meet the Team" reference)
   ===================================================================== */
.display_cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.6rem, 1vw, 1rem);
  width: 100%;
  height: 80vh;
  height: 80svh;
  max-height: 60vw;
}

.display_card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 18px;
  background-color: #2a2a2a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  transition: transform .5s var(--ease-out), box-shadow .5s ease;
}

/* Staggered heights and offsets, like the reference's offset cards */
.display_card.is-tall { align-self: end; height: 94%; }
.display_card.is-short { align-self: start; height: 64%; }
.display_card.is-mid { align-self: center; height: 72%; }

.display_card_img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease-out);
}

.display_card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, .45);
}

.display_card:hover .display_card_img {
  transform: scale(1.04);
}

/* Soft top and bottom shading so the white labels and caption read on any photo */
.display_card_overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: .6rem;
  padding: clamp(.8rem, 1.3vw, 1.1rem);
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, transparent 22%, transparent 62%, rgba(0, 0, 0, .7) 100%);
}

.display_card_label {
  font-family: Montserrat, sans-serif;
  font-size: clamp(.7rem, .6rem + .25vw, .85rem);
  font-weight: 500;
  line-height: 1.2;
}

.display_card_label.is-right {
  text-align: right;
}

.display_card_icons {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-top: 1.6rem;
  align-self: start;
  justify-self: end;
}

.display_card.is-tall .display_card_icons {
  grid-column: 1;
  align-self: center;
  justify-self: start;
  margin-top: 0;
}

.display_card_icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  background-color: #111;
  transition: transform .25s var(--ease-out), background-color .25s ease;
}

.display_card_icon:hover,
.display_card_icon:focus-visible {
  background-color: var(--fugue-orange);
  transform: scale(1.08);
}

.display_card_caption {
  grid-column: 1 / -1;
  grid-row: 3;
  max-width: 32ch;
  font-family: Montserrat, sans-serif;
  font-size: clamp(.72rem, .62rem + .3vw, .9rem);
  font-weight: 500;
  line-height: 1.35;
}

@media screen and (max-width: 991px) {
  .display_cards {
    height: 70vh;
    height: 70svh;
    max-height: none;
  }
}

/* Phones: a swipeable row of cards instead of three thin columns */
@media screen and (max-width: 767px) {
  .display_cards {
    display: flex;
    gap: .75rem;
    height: auto;
    margin: 0 -16px;
    padding: 1rem 16px 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .display_cards::-webkit-scrollbar {
    display: none;
  }

  .display_card,
  .display_card.is-tall,
  .display_card.is-short,
  .display_card.is-mid {
    flex: 0 0 72vw;
    height: 62vh;
    height: 62svh;
    align-self: auto;
    scroll-snap-align: center;
  }

  .display_card.is-short { margin-top: 1.5rem; }
  .display_card.is-mid { margin-top: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .display_card,
  .display_card_img,
  .display_card_icon {
    transition: none;
  }
}

@media screen and (min-width: 992px) {
  .ad-film-display .display_cards {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Explicit placement: label left top-left, label right top-right, icons below, caption at the bottom */
.display_card_label { grid-column: 1; grid-row: 1; }
.display_card_label.is-right { grid-column: 2; grid-row: 1; }
.display_card_icons,
.display_card.is-tall .display_card_icons { grid-row: 2; margin-top: 0; }
.display_card_icons { grid-column: 2; align-self: start; justify-self: end; }
.display_card.is-tall .display_card_icons { grid-column: 1; align-self: center; justify-self: start; }

.display_card_overlay {
  text-align: left;
}

/* ---------- Ad Film display: image-only "sound wave" (tall centre, shorter sides) ---------- */
.display_cards.is-wave {
  align-items: center;
}

.display_cards.is-wave .display_card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  align-self: center;
}

.display_cards.is-wave .display_card.is-center { height: 100%; }
.display_cards.is-wave .display_card.is-side { height: 68%; }

.display_cards.is-wave .display_card:focus-visible {
  outline: 2px solid var(--fugue-text);
  outline-offset: 4px;
}

@media screen and (max-width: 767px) {
  .display_cards.is-wave {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    height: 62vh;
    height: 62svh;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .display_cards.is-wave .display_card,
  .display_cards.is-wave .display_card.is-side,
  .display_cards.is-wave .display_card.is-center {
    flex: none;
    margin: 0;
    border-radius: 12px;
  }

  .display_cards.is-wave .display_card.is-center { height: 100%; }
  .display_cards.is-wave .display_card.is-side { height: 68%; }
}

/* Click to enlarge: the photo grows from its card to fill the screen (fugue.js) */
.photo_zoom {
  position: fixed;
  inset: 0;
  z-index: 3000;
  cursor: zoom-out;
  background-color: rgba(10, 10, 10, 0);
  transition: background-color .4s ease;
}

.photo_zoom.is-open {
  background-color: rgba(10, 10, 10, .85);
}

.photo_zoom_img {
  position: fixed;
  top: 0;
  left: 0;
  margin: 0;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform-origin: 0 0;
  transition: transform .45s var(--ease-out), border-radius .45s ease;
  will-change: transform;
}

html:has(.photo_zoom) {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .photo_zoom,
  .photo_zoom_img {
    transition: none;
  }
}

/* =====================================================================
   Film grain: faint static over the whole site, jittering ~8 times a second.
   Oversized so the jumps never reveal an edge; never blocks clicks; sits under the
   photo lightbox. Reduced-motion visitors get it still.
   ===================================================================== */
html::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 2500;
  background: url("/assets/images/noise.png") repeat;
  background-size: 128px 128px;
  opacity: .055;
  pointer-events: none;
  animation: fugue-grain 1.1s steps(8) infinite;
}

@keyframes fugue-grain {
  0% { transform: translate(0, 0); }
  12.5% { transform: translate(-3%, 2%); }
  25% { transform: translate(2%, -4%); }
  37.5% { transform: translate(-4%, -1%); }
  50% { transform: translate(3%, 3%); }
  62.5% { transform: translate(-1%, 4%); }
  75% { transform: translate(4%, -2%); }
  87.5% { transform: translate(-2%, -3%); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html::after {
    animation: none;
  }
}

/* All team photos circular, matching Tanmay's cut-out portrait */
.team_image {
  border-radius: 50%;
  object-fit: cover;
}

/* Hero PLAY: same button as "Our Portfolio", sitting under the question */
.hero_play_cta {
  margin-top: .4rem;
  padding-left: 2.25rem;
  padding-right: 2.25rem;
}

/* =====================================================================
   Navbar collapses to a hamburger at the right edge while over "What About AI?" (desktop/tablet).
   fugue.js toggles html.nav-compact / html.nav-open and sets --nav-h (the bar's height).
   Smooth both ways: width and position animate with explicit values (no auto margins),
   the contents fade rather than disappear, and the bar slides with a transform.
   ===================================================================== */
.nav_compact_btn {
  display: none;
}

@media screen and (min-width: 768px) {
  /* Full-width wrapper so the bar can travel to the viewport edge (looks identical when centred) */
  .navigation_section {
    max-width: none;
  }

  .nav_div {
    position: relative;
    transition: width .55s cubic-bezier(.65, 0, .35, 1), max-width .55s cubic-bezier(.65, 0, .35, 1),
      transform .55s cubic-bezier(.65, 0, .35, 1);
  }

  .nav_container1 {
    transition: opacity .25s ease .3s, visibility 0s linear 0s;
  }

  .nav_compact_btn {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 5px;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility 0s linear .2s;
  }

  html.nav-compact .nav_div {
    width: var(--nav-h, 56px);
    max-width: var(--nav-h, 56px);
    height: var(--nav-h, 56px);
    overflow: hidden;
    /* centre of the bar -> right edge, minus a gutter and half the circle */
    transform: translateX(calc(50vw - var(--nav-h, 56px) / 2 - clamp(1rem, 3vw, 2.5rem) - var(--nav-pad, 0px)));
  }

  /* Contents keep their full width (no re-wrapping) and are clipped by the shrinking bar */
  html.nav-compact .nav_container1 {
    flex: none;
    width: var(--nav-inner-w, auto);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, visibility 0s linear .15s;
  }

  html.nav-compact .nav_compact_btn {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition: opacity .25s ease .35s, visibility 0s linear 0s;
  }

  .nav_compact_btn span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background-color: var(--fugue-text);
    transition: transform .3s var(--ease-out), opacity .2s ease;
  }

  html.nav-open .nav_compact_btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  html.nav-open .nav_compact_btn span:nth-child(2) { opacity: 0; }
  html.nav-open .nav_compact_btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Open: the links drop down in a panel under the circle, right-aligned to it */
  html.nav-compact.nav-open .nav_div {
    overflow: visible;
  }

  html.nav-compact.nav-open .nav_container1 {
    opacity: 1;
    visibility: visible;
    transition: none;
  }

  html.nav-compact.nav-open .nav-menu {
    pointer-events: auto;
  }

  html.nav-compact.nav-open .nav_link {
    visibility: hidden;
  }

  html.nav-compact.nav-open .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: auto;
    min-width: 12rem;
    margin: 0;
    padding: .5rem;
    border-radius: 16px;
    background-color: var(--fugue-green);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
    transform-origin: top right;
    animation: fugue-panel-in .3s var(--ease-out);
  }

  @keyframes fugue-panel-in {
    from { opacity: 0; transform: translateY(-6px) scale(.96); }
  }

  html.nav-compact.nav-open .nav-menu .nav_button {
    margin: 0;
    padding: 12px 18px;
    text-align: right;
  }

  html.nav-compact.nav-open .nav-menu .nav_button::after {
    left: auto;
    right: 18px;
    width: 30px;
    bottom: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav_div,
  .nav_container1,
  .nav_compact_btn,
  .nav_compact_btn span {
    transition: none !important;
  }

  html.nav-compact.nav-open .nav-menu {
    animation: none;
  }
}

/* =====================================================================
   Preloader: 8-bit skull in navbar green with a bandana — chomps 3 times, then nods off with z's
   (fits inside the 2s preloader; stepped timing keeps the pixel feel)
   ===================================================================== */
.preloader {
  flex-direction: column;
  gap: 1.75rem;
}

.preloader_skull {
  display: block;
  width: clamp(120px, 14vw, 168px);
  height: auto;
  overflow: visible;
}

.skull_jaw {
  animation: skull-chomp .3s steps(1) 3;
}

@keyframes skull-chomp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}

/* Head nods down a pixel as it falls asleep */
.skull_body {
  animation: skull-nod .01s steps(1) .95s both;
}

@keyframes skull-nod {
  to { transform: translateY(1px); }
}

.skull_eyes_closed {
  opacity: 0;
  animation: skull-sleep .01s steps(1) .95s both;
}

.skull_eyes_open {
  animation: skull-wake-off .01s steps(1) .95s both;
}

@keyframes skull-sleep { to { opacity: 1; } }
@keyframes skull-wake-off { to { opacity: 0; } }

/* z z z z: drift up and back from behind the head, one after another */
.skull_z {
  opacity: 0;
  animation: skull-z .8s steps(6) infinite both;
}

.skull_z1 { animation-delay: .95s; }
.skull_z2 { animation-delay: 1.15s; }
.skull_z3 { animation-delay: 1.35s; }
.skull_z4 { animation-delay: 1.55s; }

@keyframes skull-z {
  0% { opacity: 0; transform: translate(0, 4px) scale(.6); }
  15% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(4px, -5px) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .skull_jaw,
  .skull_body,
  .skull_z {
    animation: none;
  }

  /* Static sleeping skull with one z */
  .skull_eyes_open { animation: none; opacity: 0; }
  .skull_eyes_closed { animation: none; opacity: 1; }
  .skull_z1 { animation: none; opacity: 1; transform: translate(2px, -2px); }
}

.hero_play_cta {
  text-align: center;
}

@media screen and (min-width: 480px) {
  .hero_play_cta {
    white-space: nowrap;
  }
}

@media screen and (max-width: 479px) {
  .hero_play_cta {
    max-width: 92vw;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    font-size: 1rem;
    letter-spacing: 2px;
  }
}
