/* ===== style block 1 ===== */
/* ------------------------- Scaling System -------------------------  */

/* Desktop */
:root {
  --size-unit: 16;
  /* body font-size in design - no px */
  --size-container-ideal: 1440;
  /* screen-size in design - no px */
  --size-container-min: 992px;
  --size-container-max: 1920px;
  --size-container: clamp(var(--size-container-min), 100vw, var(--size-container-max));
  --size-font: calc(var(--size-container) / (var(--size-container-ideal) / var(--size-unit)));
}
#nl-badge-frame{
  display: none !important;
}
/* Tablet */
@media screen and (max-width: 991px) {
  :root {
    --size-container-ideal: 834;
    /* screen-size in design - no px */
    --size-container-min: 768px;
    --size-container-max: 991px;
  }
}

/* Mobile Landscape */
@media screen and (max-width: 767px) {
  :root {
    --size-container-ideal: 550;
    /* screen-size in design - no px */
    --size-container-min: 480px;
    --size-container-max: 767px;
  }
}

/* Mobile Portrait */
@media screen and (max-width: 479px) {
  :root {
    --size-container-ideal: 390;
    /* screen-size in design - no px */
    --size-container-min: 320px;
    --size-container-max: 479px;
  }
}

body {
  font-size: var(--size-font);
}

html,
body {
  position: fixed;
  overflow: hidden;
  inset: 0;
  height: 100%;
  width: 100%;
}

* {
  -webkit-tap-highlight-color: transparent;
}

/* ===== style block 2 ===== */
/* Ensure loader container covers the entire viewport */
.loader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: all;
}

/* Background SVG layer covering entire viewport */
.svg-bg-stroke {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.svg-bg-stroke svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Centered logo content */
.loader-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1451px;
  padding: 2rem;
  pointer-events: none;
}

.logo-animation,
.loader-inner svg,
.floo-logo-svg {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  visibility: hidden;
  /* Option B: Keeps SVG in layout tree so getBBox() calculates accurately */
}

/* ===== style block 3 ===== */
.floo-nav-toggle-btn {
  width: 2.5em !important;
  height: 2.5em !important;
  min-width: 2.5em !important;
  min-height: 2.5em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #B84D4C !important;
  border-radius: 0.25em !important;
  background-color: #FBF3F3 !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  padding: 0.35em !important;
  position: relative !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.floo-toggle-svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  overflow: visible !important;
  display: block !important;
  transform-origin: center center !important;
  will-change: transform;
  pointer-events: none !important;
}

.floo-toggle-svg path {
  will-change: stroke-dashoffset, stroke-dasharray, stroke-width;
}

/* ===== style block 4 ===== */
/* Base state: strictly fixed and removed from DOM flow so it never occupies space */
.ham-navbar {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  width: 100svw !important;
  height: 100vh !important;
  height: 100svh !important;
  background-color: rgba(251, 243, 243, 0.95) !important;
  opacity: 0;
  pointer-events: none;
  overflow-y: hidden !important;
  overflow-x: hidden !important;
  margin: 0 !important;
}

/* When open on mobile (<= 768px) */
@media (max-width: 768px) {
  .ham-navbar.is-open {
    display: block !important;
    opacity: 1;
    pointer-events: auto !important;
  }

  .hamburger-links>* {
    will-change: transform, opacity;
    transform-origin: center center;
  }
}

/* Strictly hidden on desktop (> 768px) */
@media (min-width: 769px) {

  .ham-navbar,
  .ham-navbar.is-open {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* ===== style block 5 ===== */
/* Fixed overlay base state - strictly 100svh, zero scrollbar */
.contact-page {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  width: 100svw !important;
  height: 100vh !important;
  height: 100svh !important;
  max-height: 100svh !important;
  z-index: 9999999 !important;
  display: none;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden !important;
  overflow-y: hidden !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.contact-page::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.contact-page.is-active {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Transition SVG full coverage */
.contact-transition,
.svg-tcontact {
  pointer-events: none;
}

.contact-transition svg,
.svg-tcontact svg {
  overflow: visible;
}

/* SplitText & mask utilities */
.contact-heading-char {
  display: inline-block;
  will-change: transform, opacity, text-shadow;
  transform-origin: center center;
}

.contact-para-line-mask {
  overflow: hidden !important;
  display: block !important;
}

.contact-para-line {
  display: block !important;
  will-change: transform, opacity;
}

/* Email headings: strictly single line with overflow hidden */
.email-heading,
.contact-right .email-heading {
  white-space: nowrap !important;
  word-break: keep-all !important;
}

.contact-word-mask {
  overflow: hidden !important;
  display: inline-block !important;
  white-space: nowrap !important;
  vertical-align: top !important;
}

.contact-word {
  display: inline-block !important;
  white-space: nowrap !important;
  will-change: transform, opacity;
}

/* Email links: NO overflow hidden */
.email-link,
.contact-right .email-link,
.contact-right [class*="email-link"] {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow: visible !important;
  display: inline-block !important;
}

.contact-email-char {
  display: inline-block;
  transform-origin: center center;
  will-change: transform, text-shadow;
}

.contact-social {
  will-change: transform, opacity;
}

.contact-img-wrap {
  overflow: visible !important;
  contain: none !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  pointer-events: none !important;
}

.contact-img-wrap svg,
.contact-img-wrap img,
.contact-img {
  overflow: visible !important;
  max-height: 52vh !important;
  max-height: 52svh !important;
  width: auto !important;
  max-width: 85vw !important;
  object-fit: contain !important;
  display: block !important;
  transform-origin: bottom center !important;
  -webkit-transform-origin: bottom center !important;
  will-change: transform, opacity;
}

@media (max-width: 767px) {

  .contact-img-wrap svg,
  .contact-img-wrap img,
  .contact-img {
    max-height: 35svh !important;
    width: auto !important;
    object-fit: contain !important;
  }
}

/* ===== style block 6 ===== */
/* Prevent FOUC: Elements start invisible until GSAP initializes */
.section-hero .hero-text h1,
.section-hero .hero-text .heading,
.section-hero [data-hero-heading],
.section-hero h1 {
  opacity: 0;
}

.section-hero .hero-pill {
  opacity: 0;
  will-change: transform, opacity;
}

/* Pill text mask: clips inner text for slide-up reveal */
.section-hero .hero-pill .hero-pill-text,
.section-hero .hero-pill [class*="pill-text"],
.section-hero .hero-pill [class*="pill-label"] {
  display: block;
  will-change: transform, opacity;
}

.section-hero .hero-pill-text-mask {
  overflow: hidden;
  display: block;
}

.section-hero .hero-path-svg-left svg,
.section-hero .hero-path-svg-right svg {
  overflow: visible;
}

/* Line-by-line heading mask: matching projects-end look */
.hero-line-mask {
  display: block !important;
  overflow: hidden !important;
}

.hero-line {
  display: block !important;
  will-change: transform, opacity;
}

/* ===== style block 7 ===== */
.hero-marquee svg {
  overflow: visible !important;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* Safari Baseline & Vertical Centering Alignment Fix */
.hero-marquee-text,
.hero-marquee-tp,
.marquee-unit,
.hero-marquee-text tspan {
  dominant-baseline: central !important;
  alignment-baseline: central !important;
  -webkit-font-smoothing: antialiased;
}

/* ===== style block 8 ===== */
.section-slider-wrapper {
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
}

.showcase-slider {
  display: flex !important;
  flex-direction: row !important;
  width: max-content !important;
  will-change: transform;
}

.showcase-slide {
  flex-shrink: 0 !important;
  will-change: transform;
  transform-origin: center center;
}

/* ===== style block 9 ===== */
/* Clip mask container for project card reveal (15% W/H to 100%) */
.project-card-clip-mask {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  perspective: 1200px;
  -webkit-perspective: 1200px;
  transform-style: preserve-3d;
  will-change: clip-path;
}

.project-card {
  will-change: transform;
  transform-style: preserve-3d;
}

/* Projects End: Line-by-line heading masks & pills */
.section-projects .projects-end-para {
  opacity: 0;
}

.project-line-mask {
  display: block !important;
  overflow: hidden !important;
}

.project-line {
  display: block !important;
  will-change: transform, opacity;
}

.section-projects .projects-pill-first,
.section-projects .projects-pill-second,
.section-projects .projects-pill-third,
.section-projects .projects-pill-fourth,
.section-projects [class*="projects-pill"],
.section-projects .project-btn {
  opacity: 0;
  will-change: transform, opacity;
}

/* ===== style block 10 ===== */
/* Ensure project card image wrapper and images always maintain cover fit */
.project-card-img-wrapper {
  position: relative !important;
  overflow: hidden !important;
}

.project-card-img-wrapper img.project-img,
.project-card-img-wrapper img.project-img-hover {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.project-card-mask-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
}

/* ===== style block 11 ===== */
.services-path-svg-dark svg,
.service-path-mobile-dark svg,
.service-path-mobile svg,
.services-path-mobile-dark svg,
.services-path-svg svg {
  overflow: visible !important;
}

/* ===== style block 12 ===== */
/* 1. Ensure parent container stack fills section with centered grid */
.testimonials-body-bg {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate; /* lets the backdrop layers sit under the book but over the panel colour */
  /* brand charcoal "desk": the red cover and cream pages both read against it */
  background-color: #262A2C !important;
}

/* Backdrop, three layers, all decorative and click-through:
   ::before  warm spotlight on the book, a huge ghosted quote mark, vignette
   ::after   fine dot texture that fades out from the centre
   The panel is dark so the book is the only bright thing in it. */
.testimonials-body-bg::before,
.testimonials-body-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.testimonials-body-bg::before {
  background-image:
    /* warm brand-red spotlight pooled behind the book */
    radial-gradient(ellipse 46% 62% at 50% 52%, rgba(184, 77, 76, 0.55) 0%, rgba(184, 77, 76, 0.18) 48%, rgba(184, 77, 76, 0) 78%),
    /* giant ghosted opening quote, off-centre so it reads as texture */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><text x='200' y='360' text-anchor='middle' font-family='Georgia,serif' font-size='520' fill='%23FBF3F3' fill-opacity='0.045'>%E2%80%9C</text></svg>"),
    /* edge vignette */
    radial-gradient(ellipse 120% 100% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.45) 100%);
  background-repeat: no-repeat;
  background-position: center, 6% 40%, center;
  background-size: auto, min(46vw, 640px) auto, auto;
}

.testimonials-body-bg::after {
  background-image: radial-gradient(rgba(251, 243, 243, 0.14) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 50%, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 80% at 50% 50%, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
}

/* the book sits on the desk: deeper contact shadow under every leaf */
.testimonials-body-bg .book-front {
  box-shadow: 0 2.2em 2.6em -1.2em rgba(0, 0, 0, 0.55), 0 0.3em 0.8em rgba(0, 0, 0, 0.3) !important;
}

/* progress ticks: brighter on the dark panel */
.testimonials-body-bg .side-bar > * {
  opacity: 0.9;
}

.testimonials-body-bg .w-dyn-list,
.testimonials-body-bg .testimonial-list-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.testimonials-body-bg .w-dyn-items,
.testimonials-body-bg .testimonial-list {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 2. All cards share the exact same grid cell (grid-area: 1 / 1) for 100% device-agnostic dead-center alignment */
.testimonials-body-bg .testimonial-item {
  grid-area: 1 / 1 !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 auto !important;
  /* Stretch to the tallest card so every card in the deck is the same size */
  align-self: stretch !important;
  justify-self: center !important;
  transform-origin: center center !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
}

/* 3. Strip all Webflow CSS positioning and transforms on inner card elements */
.testimonials-body-bg .testimonial-item .testimonial-card {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 auto !important;
  transform: none !important;
}

/* 4. Card look: a soft shadow separates the stacked cards instead of a hairline border */
.testimonials-body-bg .testimonial-card {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 2.5em;
  border: 0;
  box-shadow: 0 0.5em 1.5em rgba(0, 0, 0, 0.08);
}

.testimonials-body-bg .testimonial-heading {
  line-height: 0.95;
  text-wrap: balance;
}

.testimonials-body-bg .testimonial-card-btm {
  flex-direction: column;
  align-items: center;
  gap: 2em;
}

/* Quote sits above the person, everything centred in the card */
.testimonials-body-bg .testimonial-card-para {
  order: -1;
  max-width: none;
  color: var(--brand-black);
  line-height: 1.3;
  text-wrap: pretty;
}

.testimonials-body-bg .testimonial-pfp-designation {
  color: var(--brand-black);
  line-height: 1.2;
}

/* 5. Person row: small avatar beside name and role, centred under the quote */
.testimonials-body-bg .testimonial-card-pfp {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: auto;
}

.testimonials-body-bg .testimonial-img-wrap {
  flex: none;
  width: 5em;
  height: 5em;
}

.testimonials-body-bg .pfp-info-wrapper {
  align-items: flex-start;
  text-align: left;
}

/* 6. Tablet & phone: lay the progress ticks out as a plain horizontal row */
@media screen and (max-width: 991px) {
  .testimonials-body-bg .side-bar {
    flex-direction: row !important;
    gap: 0.5em !important;
    width: auto;
    transform: none;
  }
}

/* 7. Phone & small tablet: stacked card, wider and with slightly larger text */
@media screen and (max-width: 767px) {
  .testimonials-body-bg .testimonial-item {
    width: min(calc(100vw - 4.5rem), 30rem);
    min-width: 0;
    max-width: none;
    font-size: 0.6em;
  }

  .testimonials-body-bg .testimonial-card {
    gap: 2em;
  }

  .testimonials-body-bg .testimonial-heading {
    font-size: 3em;
  }
}

/* ===== style block 13 ===== */
.footer-btm {
  will-change: transform;
}

.footer-btm {
  display: block !important;
  transform-origin: bottom center !important;
  will-change: transform;
}

.footer-heading-line-mask {
  overflow: hidden !important;
  display: block !important;
}

.footer-heading-line {
  display: block !important;
  will-change: transform, opacity;
}

.footer-link-char {
  display: inline-block;
  transform-origin: center center;
  will-change: transform, text-shadow;
}

/* Layout: grow with the content so nothing collides on short screens */
.footer {
  height: auto;
  min-height: 100svh;
  align-items: stretch;
}

.footer-wrapper {
  height: auto;
  gap: 3em;
  /* Clears the fixed navbar, which stays on top of the footer */
  padding-top: 6em;
}

/* Link columns: same gap and line height, so rows line up across columns */
.footer-links-block,
.footer-links-block.socials {
  height: auto;
  justify-content: flex-start;
  gap: 0.5em;
}

.footer-link-header {
  margin-bottom: 0;
  line-height: 140%;
  white-space: nowrap;
}

.footer-links-block.email {
  padding-top: 1em;
}

.footer-rights-text {
  margin-bottom: 1em;
}

/* Wide, short windows: tighter top block so the footer fits one screen */
@media screen and (min-width: 992px) and (min-aspect-ratio: 5/3) {
  .footer-wrapper {
    padding-top: 5em;
    gap: 1.5em;
  }

  .footer-top-left {
    max-width: 30em;
    gap: 0.75em;
  }

  .footer-heading {
    font-size: 2.75em;
  }

  .footer-links-block.email {
    padding-top: 0.25em;
  }

  .footer-top-right {
    gap: 1.5em;
  }

  .footer-rights-text {
    margin-bottom: 0.5em;
  }
}

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

  /* No empty screen of orange on tall tablets and phones */
  .footer {
    min-height: 0;
  }

  .footer-top-right {
    max-width: 50%;
  }
}

@media screen and (max-width: 767px) {
  .footer-top-right {
    max-width: none;
  }
}

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

  /* Keep the logo on the same side margins as the text, and fully on screen */
  .footer-wrapper {
    padding-left: 0;
    padding-right: 0;
    overflow: visible;
  }

  .footer-top {
    height: auto;
  }

  .footer-btm {
    padding: 0 1.25em 1.25em;
  }

  .footer-rights-text {
    margin-left: 0;
  }
}

.floo-letter {
  position: absolute;
  display: block;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  will-change: transform, opacity;
}


.floo-logo-svg .floo-letter {
  will-change: transform, opacity;
}

/* ===== Wearefloo loader wordmark =====
   The intro is CSS, not GSAP, so it starts at first paint instead of waiting
   for jQuery + Webflow + 7 GSAP files + scripts.js to download and run.
   Each letter carries --len (its path length) and --d (its stagger delay).
   Three separate animations so each property keeps its own easing, the way
   the GSAP version did: draw, then fill/stroke crossfade, then a scale spring. */
.floo-logo-svg {
  display: block;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  overflow: visible;
}

.floo-logo-svg .floo-letter {
  fill-opacity: 0;
  stroke: #B84D4C;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  transform: scale(0.93);
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation:
    floo-draw 0.8s cubic-bezier(0.45, 0, 0.55, 1) var(--d) forwards,
    floo-fill 0.55s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--d) + 0.45s) forwards,
    floo-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--d) + 0.45s) forwards;
}

@keyframes floo-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes floo-fill {
  to { fill-opacity: 1; stroke-width: 0; }
}

@keyframes floo-pop {
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .floo-logo-svg .floo-letter {
    animation: none;
    fill-opacity: 1;
    stroke-width: 0;
    stroke-dashoffset: 0;
    transform: none;
  }
}

/* ===== Work page =====
   .work-hero-pill.one / .two are absolutely positioned over .work-hero-text,
   which reads as intentional layering while the heading is two lines. Below
   768px it wraps to three and the pills land mid-word, so give them their own
   band above and below the heading instead. */
@media screen and (max-width: 767px) {
  .section-work-hero .work-hero-text {
    padding-top: 3em;
    padding-bottom: 3em;
  }

  .section-work-hero .work-hero-pill.one {
    top: 0;
    bottom: auto;
    left: 4%;
  }

  .section-work-hero .work-hero-pill.two {
    top: auto;
    bottom: 0;
    right: 4%;
  }

  .section-work-hero .work-hero-btm {
    padding-bottom: 3em;
  }
}

/* ===== Floating navbar =====
   .nav-hidden slides the bar away while the page is in motion.
   .nav-floating detaches it into a rounded, translucent bar once past the
   top of the page, so it reads as floating over the content rather than
   sitting flush against it. */
.header {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
  will-change: transform;
}

.header.nav-hidden {
  transform: translateY(-130%);
  opacity: 0;
  pointer-events: none;
}

.header .navbar-wrap {
  transition: width 0.35s ease, margin 0.35s ease, border-radius 0.35s ease,
    background-color 0.35s ease, box-shadow 0.35s ease;
}

.header.nav-floating .navbar-wrap {
  width: calc(100% - 1.5em);
  margin: 0.5em auto 0;
  border-radius: 999px;
  background-color: rgba(251, 243, 243, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(46, 51, 53, 0.1);
}

@media screen and (max-width: 767px) {
  .header.nav-floating .navbar-wrap {
    width: calc(100% - 1em);
    margin-top: 0.375em;
    border-radius: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header,
  .header .navbar-wrap {
    transition: none;
  }

  .header.nav-hidden {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
}

/* ===== Services ribbon =====
   Depth cues for the scroll-drawn services path, plus the service copy
   presented as floating panels rather than flat text. */
.services-path svg {
  overflow: visible;
}

.service-block-para-wrapper {
  background-color: rgba(251, 243, 243, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 77, 76, 0.18);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(46, 51, 53, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .ribbon-centre {
    opacity: 0.75 !important;
  }
}

/* ===== Showcase flip cards =====
   The slide keeps its GSAP-driven scale; .flip-inner carries the rotation,
   so the marquee and the flip never fight over a single transform. */
.showcase-slide {
  perspective: 1600px;
}

.showcase-slide .flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-slide:hover .flip-inner,
.showcase-slide:focus-visible .flip-inner,
.showcase-slide.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

.showcase-slide .flip-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.showcase-slide .flip-front > * {
  width: 100%;
  height: 100%;
}

.showcase-slide .flip-back {
  transform: rotateY(180deg);
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-between;
  align-items: stretch;
  padding: 1.75em;
  color: var(--brand-white, #FBF3F3);
  background-color: var(--brand-primary, #B84D4C);
  background-image:
    radial-gradient(120% 90% at 12% 8%, rgba(251, 243, 243, 0.22) 0%, rgba(251, 243, 243, 0) 55%),
    linear-gradient(150deg, #C4584F 0%, #B84D4C 48%, #93403F 100%);
}

/* watermark, bleeding off the bottom-right, kept well behind the text */
.showcase-slide .flip-mark {
  position: absolute;
  right: -12%;
  bottom: -14%;
  width: 72%;
  height: auto;
  color: #FBF3F3;
  opacity: 0.1;
  pointer-events: none;
}

.showcase-slide .flip-back-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 0.75em;
  width: 100%;
}

.showcase-slide .flip-index {
  font-family: var(--font-secondary, inherit);
  font-size: 0.875em;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.showcase-slide .flip-rule {
  flex: 1;
  height: 1px;
  background-color: currentColor;
  opacity: 0.3;
}

/* the text column: title, one line, then deliverables — stacked */
.showcase-slide .flip-back-main {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
}

.showcase-slide .flip-title {
  display: block;
  margin: 0 0 0.35em;
  font-family: var(--font-primary, inherit);
  font-size: 2.1em;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: inherit;
}

.showcase-slide .flip-copy {
  display: block;
  margin: 0;
  max-width: 15em;
  font-family: var(--font-secondary, inherit);
  font-size: 0.95em;
  line-height: 1.35;
  opacity: 0.85;
}

.showcase-slide .flip-list {
  list-style: none;
  margin: 1em 0 0;
  padding: 0;
  display: flex;
  flex-flow: row wrap;
  align-items: baseline;
  gap: 0.25em 0.55em;
  font-family: var(--font-secondary, inherit);
  font-size: 0.9em;
  line-height: 1.3;
}

.showcase-slide .flip-list li {
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  padding: 0;
}

/* middot between items, never after the last */
.showcase-slide .flip-list li + li::before {
  content: "\00B7";
  margin-right: 0.55em;
  opacity: 0.55;
}

.showcase-slide .flip-arrow {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6em;
  height: 2.6em;
  border-radius: 999px;
  border: 1px solid rgba(251, 243, 243, 0.45);
  color: inherit;
  transition: transform 0.4s ease, background-color 0.4s ease;
}

.showcase-slide .flip-arrow svg {
  width: 42%;
  height: 42%;
  display: block;
}

.showcase-slide:hover .flip-arrow,
.showcase-slide.is-flipped .flip-arrow {
  background-color: rgba(251, 243, 243, 0.14);
  transform: translate(2px, -2px);
}

.showcase-slide:focus-visible {
  outline: 2px solid var(--brand-primary, #B84D4C);
  outline-offset: 4px;
}

@media screen and (max-width: 991px) {
  .showcase-slide .flip-back { padding: 1.4em; }
  .showcase-slide .flip-title { font-size: 1.6em; }
  .showcase-slide .flip-copy { font-size: 0.875em; }
  .showcase-slide .flip-list { font-size: 0.8em; margin-top: 0.8em; }
  .showcase-slide .flip-arrow { width: 2.2em; height: 2.2em; }
}

@media screen and (max-width: 767px) {
  .showcase-slide .flip-back { padding: 1.15em; }
  .showcase-slide .flip-title { font-size: 1.3em; }
  .showcase-slide .flip-copy { font-size: 0.8em; line-height: 1.3; }
  .showcase-slide .flip-list { font-size: 0.72em; margin-top: 0.6em; gap: 0.2em 0.4em; }
  .showcase-slide .flip-mark { width: 60%; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-slide .flip-inner,
  .showcase-slide .flip-arrow { transition: none; }
}

/* ===== Services on mobile =====
   The titles used the Dark cut of MD Nichrome at 4.2em, which reads heavy and
   tall on a phone. Switch to the regular cut and tighten the size so the
   seven services sit more compactly along the ribbon. */
@media screen and (max-width: 767px) {
  .section-services .service-text {
    font-family: var(--font-primary);
    font-size: 3.1em;
    line-height: 86%;
    letter-spacing: 0.005em;
  }
}

/* ===== FAQ: chips, typing, avatar =====
   Topic chips filter the chat; a short "typing" bubble plays before each
   answer; the answer avatar carries the Wearefloo initials. */
.faq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6em;
  width: 100%;
  margin-bottom: 1.75em;
}
.faq-chip {
  font-family: var(--font-secondary);
  font-size: 1em;
  line-height: 1;
  padding: .75em 1.25em;
  border-radius: 5em;
  border: 1px solid var(--brand-primary);
  background: transparent;
  color: var(--brand-primary);
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.faq-chip:hover { transform: translateY(-2px); }
.faq-chip.is-active {
  background: var(--brand-primary);
  color: var(--brand-secondary);
}
.faq-chip:focus-visible { outline: 2px solid #2E3335; outline-offset: 3px; }

.faq-typing {
  display: inline-flex;
  gap: .35em;
  align-items: center;
  align-self: flex-end;
  margin-right: 4.2em;
  padding: .9em 1.2em;
  border-radius: 2em 2em 0 2em;
  background: var(--brand-secondary);
  border: 1px solid #0003;
}
.faq-typing span {
  width: .45em;
  height: .45em;
  border-radius: 50%;
  background: var(--brand-primary);
  animation: faqDot 1s infinite ease-in-out;
}
.faq-typing span:nth-child(2) { animation-delay: .15s; }
.faq-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes faqDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .35; }
  30% { transform: translateY(-.35em); opacity: 1; }
}

.faq-logo-mark {
  font-family: var(--font-primary);
  font-size: 1.35em;
  line-height: 1;
  color: var(--brand-secondary);
  letter-spacing: -.02em;
  transform: translateY(.04em);
}

.faq-ask {
  display: inline-flex;
  align-items: center;
  gap: .75em;
  align-self: flex-start;
  margin-top: 2em;
  padding: 1em 1.5em;
  border-radius: 5em;
  background: #2E3335;
  color: var(--brand-secondary);
  font-family: var(--font-secondary);
  font-size: 1em;
  text-decoration: none;
  transition: transform .25s ease, background-color .25s ease;
}
.faq-ask:hover { transform: translateY(-2px); background: var(--brand-primary); }
.faq-ask-arrow { transition: transform .25s ease; }
.faq-ask:hover .faq-ask-arrow { transform: translateX(4px); }

@media screen and (max-width: 767px) {
  .faq-chips { gap: .45em; margin-bottom: 1.25em; }
  .faq-chip { font-size: .9em; padding: .65em 1em; }
  .faq-typing { margin-right: 3.6em; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-typing span { animation: none; opacity: .7; }
}
/* ===== end FAQ ===== */

/* ===== Hero: floating notification stickers =====
   Replace the two heavy red loops with small "notification" stickers that
   float around the illustration and nod to what the agency does. */
/* the two loops return as light dotted motion trails (see scripts.js) */
.section-hero .hero-path-svg-left,
.section-hero .hero-path-svg-right {
  z-index: 2;
  pointer-events: none;
  opacity: 0; /* revealed with the stickers */
}

.hero-floats {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.hero-float {
  position: absolute;
  opacity: 0; /* revealed by scripts.js */
  will-change: transform;
}
/* kept in the open space beside the people, clear of the cat and dog */
.hero-float-l1 { left: 9%;  top: 33%; }
.hero-float-l2 { left: 3%;  top: 49%; }
.hero-float-r1 { right: 9%; top: 31%; }
.hero-float-r2 { right: 3%; top: 47%; }

.hero-float-inner {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding: .55em 1.15em .55em .55em;
  border-radius: 5em;
  background: #FBF3F3;
  border: 2px solid #2E3335;
  box-shadow: 4px 5px 0 #2E3335;
  font-family: var(--font-secondary);
  font-size: 1.05em;
  font-weight: 500;
  color: #2E3335;
  white-space: nowrap;
}
.hero-float-l1 .hero-float-inner { transform: rotate(-6deg); }
.hero-float-l2 .hero-float-inner { transform: rotate(4deg); }
.hero-float-r1 .hero-float-inner { transform: rotate(5deg); }
.hero-float-r2 .hero-float-inner { transform: rotate(-4deg); }

.hero-float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  color: #FBF3F3;
  flex: none;
}
.hero-float-icon.is-red  { background: #B84D4C; }
.hero-float-icon.is-dark { background: #2E3335; }
.hero-float-icon svg { width: 1.25em; height: 1.25em; }

/* tablets: pull them in a little and shrink */
@media screen and (max-width: 991px) {
  .hero-float-inner { font-size: .85em; }
  .hero-float-l1 { left: 3%; top: 42%; }
  .hero-float-l2 { left: 2%; top: 53%; }
  .hero-float-r1 { right: 3%; top: 40%; }
  .hero-float-r2 { right: 2%; top: 51%; }
}
/* phones: the illustration fills the width, so keep just two small
   stickers tucked into the top corners of the image */
@media screen and (max-width: 767px) {
  .hero-float-l2, .hero-float-r2 { display: none; }
  .hero-float-inner { font-size: .62em; box-shadow: 3px 3px 0 #2E3335; }
  .hero-float-l1 { left: 2%; top: 40%; }
  .hero-float-r1 { right: 2%; top: 45%; }
}
/* ===== end hero floats ===== */

/* ===== Social media / Reels =====
   Desktop/tablet: a pinned stage where the reel cards spread out as you
   scroll (scripts.js "reels" block drives every transform). Phones: a plain
   swipeable carousel. Uses the site palette and fonts only. */
.section-reels {
  position: relative;
  width: 100%;
  background-color: var(--brand-secondary);
  overflow: hidden;
}
.reels-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  min-height: 640px;
  padding: 7.5em 1.25em 2.5em; /* clears the floating navbar */
  box-sizing: border-box;
}
.reels-head { width: 100%; text-align: center; position: relative; z-index: 3; }
.reels-stage {
  position: relative;
  flex: 1;
  width: 100%;
  perspective: 1400px;
  perspective-origin: 50% 40%;
}
.reels-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.reel-card {
  position: absolute;
  left: 50%;
  top: 50%;
  /* sized from the viewport height too, so the spread always fits
     between the label and the headline */
  width: min(13.5vw, 21.5vh, 205px);
  min-width: 130px;
  aspect-ratio: 9 / 15;
  will-change: transform;
  transform: translate(-50%, -50%); /* replaced by GSAP on desktop/tablet */
}
.reel-card.is-center { width: min(16vw, 25vh, 250px); min-width: 150px; }

.reel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.25em;
  overflow: hidden;
  background: var(--brand-black);
  border: 2px solid var(--brand-black);
  box-shadow: 0 1.25em 2.5em rgba(46, 51, 53, .18);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}
.reel-card.is-center .reel-inner {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 5px rgba(184, 77, 76, .18), 0 1.5em 3em rgba(46, 51, 53, .22);
}
.reel-card:hover .reel-inner {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 1.75em 3em rgba(46, 51, 53, .25);
}
.reel-card.is-center:hover .reel-inner {
  box-shadow: 0 0 0 5px rgba(184, 77, 76, .25), 0 1.75em 3.25em rgba(46, 51, 53, .28);
}

.reel-media { position: absolute; inset: 0; overflow: hidden; }
.reel-img, .reel-video {
  position: absolute;
  left: 0; top: -8%;
  width: 100%;
  height: 116%; /* room for the parallax drift */
  object-fit: cover;
  display: block;
}

.reel-badge {
  position: absolute;
  top: .7em; left: .7em;
  width: 2.1em; height: 2.1em;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(46, 51, 53, .55);
  color: var(--brand-secondary);
}
.reel-badge svg { width: 1.15em; height: 1.15em; }

.reel-info {
  position: absolute;
  left: .55em; right: .55em; bottom: .55em;
  padding: .75em .85em;
  border-radius: .9em;
  background: rgba(251, 243, 243, .92);
  color: var(--brand-black);
  font-family: var(--font-secondary);
}
.reel-metric { line-height: 1; }
.reel-num {
  font-family: var(--font-primary);
  font-size: 1.9em;
  color: var(--brand-primary);
  letter-spacing: -.01em;
}
.reel-label { font-size: .95em; font-weight: 500; }
.reel-who { margin-top: .35em; font-size: .8em; opacity: .75; padding-right: 2.2em; }
.reel-arrow {
  position: absolute;
  right: .7em; bottom: .7em;
  width: 1.8em; height: 1.8em;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--brand-secondary);
  transition: transform .3s ease;
}
.reel-arrow svg { width: .8em; height: .8em; }
.reel-card:hover .reel-arrow { transform: rotate(45deg); }
.reel-card.is-center .reel-num { font-size: 2.3em; }

.reels-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6em;
  text-align: center;
  z-index: 2;
}
.reels-heading {
  margin: 0;
}
.reels-accent { color: var(--brand-primary); }
.reels-underline {
  width: min(18em, 60vw);
  height: auto;
  margin-top: -.4em;
  color: var(--brand-primary);
}
.reels-btn-wrap { margin-top: .6em; }
/* the shared .cta-wrap is hidden on phones (it belongs to the navbar there);
   keep this one visible, and keep the label centred like the section intro */
.section-reels .reels-btn-wrap { display: flex; justify-content: center; }
/* label sits top-left like every other section's label; the heading is centred */
.section-reels .reels-head { text-align: left; }
.section-reels .reels-head .about-text {
  position: absolute;
  top: 0;
  left: 1.125em;
  font-family: var(--font-secondary);
  font-size: 1.125em;
  font-weight: 500;
  line-height: 100%;
  text-transform: uppercase;
  text-align: left;
}

/* tablet: five cards */
@media screen and (max-width: 991px) {
  .reel-card[data-d="3"], .reel-card[data-d="-3"] { display: none; }
  .reel-card { width: min(16.5vw, 21vh, 178px); }
  .reel-info { font-size: .78em; }
  .reel-card.is-center .reel-info { font-size: .9em; }
  .reel-card.is-center { width: min(21.5vw, 27vh, 222px); }
}

/* phones: swipeable carousel, no pinning */
@media screen and (max-width: 767px) {
  .reels-pin { height: auto; min-height: 0; padding: 4.5em 0 3.5em; }
  .reels-stage { flex: none; perspective: none; }
  .reels-track {
    position: relative;
    display: flex;
    gap: .9em;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1.5em 1.25em 2em;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .reels-track::-webkit-scrollbar { display: none; }
  .reel-card, .reel-card.is-center {
    min-width: 0;
    position: relative;
    left: auto; top: auto;
    flex: none;
    width: 62vw;
    max-width: 260px;
    transform: none !important;
    scroll-snap-align: center;
  }
  .reel-card[data-d="3"], .reel-card[data-d="-3"] { display: block; }
  .reel-info, .reel-card.is-center .reel-info { font-size: 1em; }
  .reel-img, .reel-video { top: 0; height: 100%; }
}
/* phones, scroll-linked: the row is moved by GSAP instead of swiping */
@media screen and (max-width: 767px) {
  .section-reels.is-hscroll .reels-pin {
    height: 100vh;
    height: 100svh;
    justify-content: center;
    padding-top: 5.5em;
    padding-bottom: 1.5em;
  }
  .section-reels.is-hscroll .reels-stage { overflow: hidden; }
  .section-reels.is-hscroll .reels-track {
    overflow: visible;
    scroll-snap-type: none;
    width: max-content;
    will-change: transform;
  }
  .section-reels.is-hscroll .reel-card { width: min(68vw, 50svh * 0.6, 280px); }
}

/* pagination dots: phones only */
.reels-dots { display: none; }
@media screen and (max-width: 767px) {
  .reels-dots {
    display: flex;
    justify-content: center;
    gap: .45em;
    margin: -.75em 0 1.5em;
  }
  .reels-dot {
    width: .5em;
    height: .5em;
    padding: 0;
    border: 0;
    border-radius: 1em;
    background: var(--brand-black);
    opacity: .25;
    cursor: pointer;
    transition: width .3s ease, opacity .3s ease, background-color .3s ease;
  }
  .reels-dot.is-active {
    width: 1.6em;
    opacity: 1;
    background: var(--brand-primary);
  }
  .reels-dot:focus-visible { outline: 2px solid var(--brand-black); outline-offset: 3px; }
}
/* ===== end reels ===== */

/* ===== Section headings: one consistent style =====
   Before, headings differed per page: wrap widths of 3em / 5em / 6em
   (.less-max-w, default, .white) made "Selected Works" break onto two lines
   while others sat on one, and the size stepped through three fixed values at
   breakpoints. Now every .section-heading shares one fluid size, one wrap
   width and one line-height, centred. .left-align (the FAQ, which sits beside
   its content) is the only deliberate exception. */
.section-heading,
.section-heading.less-max-w,
.section-heading.white {
  max-width: 6em;
  font-size: clamp(2.75rem, 1.2rem + 5.4vw, 6.25rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
}

.section-heading.left-align {
  text-align: left;
}

/* same gap between the small label and the heading on every section */
.section-projects-header,
.section-faq-header {
  row-gap: 0;
}

/* the social-media heading wraps by its own <br>, not the shared 6em width */
.section-heading.reels-heading {
  max-width: none;
  width: auto;
}

/* desktop/tablet: .reels-pin already pads 1.25em, so the label needs no extra
   inset to line up with the other sections' labels */
@media screen and (min-width: 768px) {
  .section-reels .reels-head .about-text { left: 0; }
}

/* breathing room between the fanned-out cards and the headline */
.reels-cta { margin-top: 1.1em; }
@media screen and (max-width: 767px) { .reels-cta { margin-top: 0; } }

/* ===== Work hero: same heading treatment as the About hero =====
   Two huge brand-red lines, the first pushed right and the second left, with
   the pills sitting on the join. The work hero wrapper pads its right edge
   for the old centred layout, so match the About hero's padding instead. */
.section-work-hero .work-hero-text {
  align-items: stretch;
  padding-right: 2em;
}

@media screen and (min-width: 768px) {
  .section-work-hero .work-hero-text .heading {
    /* the stagger needs the full row, and one line each */
    white-space: nowrap;
  }
}

/* phones: wrap and centre so nothing runs off the edge */
@media screen and (max-width: 767px) {
  .section-work-hero .work-hero-text .heading {
    width: 100%;
    padding: 0;
    text-align: center;
    font-size: 3.1em;
  }
}

/* Work hero bottom row reuses the About hero's illustration + paragraph
   layout; keep a little space before the project grid starts. */
.section-work-hero .about-hero-btm {
  padding-bottom: 3em;
}

/* ===== Project cards: breathing room =====
   The grid ran to ~8px from the viewport edge while every other section keeps
   1.25em, the logo sat flush against the card edge, and rows were only 2em
   apart so one card's caption almost touched the next card's image. */
/* the grid already sits ~8px in; 0.75em more lands on the site-wide 20px */
.projects-list-wrapper {
  padding-left: 0.75em;
  padding-right: 0.75em;
  box-sizing: border-box;
}

.projects-list {
  column-gap: 1.5em;
  row-gap: 3.25em;
}

.project-detail {
  padding: 1.15em 0.25em 0 0.25em;
}

.project-detail-header {
  row-gap: 0.55em;
}

/* the page ends with a clear margin under the last row */
.section-projects-work-wrapper {
  padding-bottom: 5em;
}

@media screen and (max-width: 767px) {
  .projects-list { row-gap: 2.25em; }
  .section-projects-work-wrapper { padding-bottom: 3em; }
}

/* ===== Client logo marquee (work page) =====
   Pure CSS: the track holds the list twice and slides by exactly half its
   width, so the loop is seamless. Each chip carries its own right margin
   (not flex gap) so that half really is one full set. Edges fade out, hover
   pauses it, reduced-motion stops it and lets the row scroll by hand. */
.section-clients {
  width: 100%;
  padding: 7em 0 8em;
}

.section-clients-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5em;
  width: 100%;
}

.clients-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.clients-track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0.5em 0;
  list-style: none;
  animation: clients-scroll 38s linear infinite;
  will-change: transform;
}

.clients-marquee:hover .clients-track,
.clients-marquee:focus-within .clients-track {
  animation-play-state: paused;
}

@keyframes clients-scroll {
  to { transform: translateX(-50%); }
}

.client-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  margin: 0 1.25em 0 0;
  padding: 0.55em 1.8em 0.55em 0.55em;
  border: 1px solid rgba(184, 77, 76, 0.28);
  border-radius: 999px;
  background-color: var(--brand-white, #FBF3F3);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.client-chip:hover {
  border-color: var(--brand-primary, #B84D4C);
  transform: translateY(-3px);
  box-shadow: 0 0.6em 1.4em rgba(46, 51, 53, 0.1);
}

.client-logo {
  flex: none;
  width: 3.75em;
  height: 3.75em;
  border-radius: 50%;
  overflow: hidden;
  background-color: #fff;
}

.client-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-name {
  font-family: var(--font-primary-dark);
  font-size: 1.6em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--brand-black, #2E3335);
}

@media screen and (max-width: 767px) {
  .section-clients { padding: 5em 0 5.5em; }
  .section-clients-wrapper { gap: 2.5em; }
  .client-chip { margin-right: 0.9em; }
  .client-logo { width: 3.1em; height: 3.1em; }
  .client-name { font-size: 1.3em; }
  .clients-track { animation-duration: 30s; }
}

@media (prefers-reduced-motion: reduce) {
  .clients-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .clients-track { animation: none; }
}

/* ===== Work page: project index =====
   Big typographic rows. On a mouse, hovering a row pulls up that project's
   image next to the cursor (work/work-index.js). Touch devices just get the
   rows as plain links. */
.section-index {
  position: relative;
  width: 100%;
  padding: 7em 1.25em 3em;
  box-sizing: border-box;
}

.section-index-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5em;
  width: 100%;
  max-width: var(--size-container, 90em);
  margin: 0 auto;
}

.index-list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgba(46, 51, 53, 0.18);
}

.index-row-item { margin: 0; padding: 0; }

.index-row {
  display: grid;
  grid-template-columns: 4.5em 1fr auto 3.25em;
  align-items: center;
  column-gap: 1.5em;
  padding: 1.35em 0.5em;
  border-top: 1px solid rgba(46, 51, 53, 0.18);
  color: var(--brand-black, #2E3335);
  text-decoration: none;
  position: relative;
  isolation: isolate;
  transition: color 0.35s ease, padding 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* a red wash that wipes up from the bottom of the row */
.index-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brand-primary, #B84D4C);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 0.5em;
}

.index-num {
  font-family: var(--font-secondary);
  font-size: 1.05em;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

.index-name {
  font-family: var(--font-primary-dark);
  font-size: clamp(2.4rem, 5.6vw, 5.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.index-cat {
  font-family: var(--font-secondary);
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: right;
  opacity: 0.75;
}

.index-arrow {
  justify-self: end;
  width: 2.6em;
  height: 2.6em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease, color 0.3s ease;
}
.index-arrow svg { width: 38%; height: 38%; }

.index-row:hover,
.index-row:focus-visible {
  color: var(--brand-white, #FBF3F3);
  padding-left: 1.4em;
  padding-right: 1.4em;
  outline: none;
}
.index-row:hover::before,
.index-row:focus-visible::before { transform: scaleY(1); }
.index-row:hover .index-name,
.index-row:focus-visible .index-name { transform: translateX(0.25em); }
.index-row:hover .index-arrow,
.index-row:focus-visible .index-arrow {
  transform: rotate(45deg);
  background: var(--brand-white, #FBF3F3);
  color: var(--brand-primary, #B84D4C);
}

/* the cursor-following image */
.index-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: clamp(190px, 17vw, 270px);
  aspect-ratio: 4 / 5;
  border-radius: 1em;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 1.5em 3em rgba(46, 51, 53, 0.28);
  background: #fff;
  will-change: transform, opacity;
  transition: opacity 0.25s ease;
}
.index-preview-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.section-index.is-previewing .index-preview { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .index-preview { display: none; }
}

@media screen and (max-width: 767px) {
  .section-index { padding: 5em 1.25em 2em; }
  .section-index-wrapper { gap: 2.5em; }
  .index-row {
    grid-template-columns: 2.4em 1fr 2.6em;
    column-gap: 0.9em;
    padding: 1.1em 0.25em;
  }
  .index-cat { display: none; }
  .index-name { font-size: clamp(2rem, 9vw, 2.8rem); }
}

/* ===== Work page: draft -> final reveal =====
   Two stacked layers in one frame: a grayscale draft with construction guides
   underneath, and the finished image on top, masked by a wavy stroke that
   work/work-ba.js draws as you scroll (--p is 0..1). */
.section-ba {
  width: 100%;
  padding: 7em 1.25em 3em;
  box-sizing: border-box;
}

.ba-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  column-gap: 4.5em;
  width: 100%;
  max-width: var(--size-container, 90em);
  margin: 0 auto;
}

.ba-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 1.5em;
  overflow: hidden;
  background: #1f2325;
  box-shadow: 0 2em 4em rgba(46, 51, 53, 0.18);
  isolation: isolate;
}

/* the raw state: drained, flat, a little soft */
.ba-draft {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(0.85) brightness(0.8) blur(1.2px);
  transform: scale(1.04);
}

.ba-guides,
.ba-final {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.ba-guides {
  opacity: calc(1 - var(--p) * 1.25);
  pointer-events: none;
}

.ba-chip {
  position: absolute;
  top: 1.1em;
  z-index: 3;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  font-family: var(--font-secondary);
  font-size: 0.95em;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(251, 243, 243, 0.18);
  color: var(--brand-white, #FBF3F3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.35s ease, color 0.35s ease, opacity 0.35s ease;
}
.ba-chip-draft { left: 1.1em; background: var(--brand-white, #FBF3F3); color: var(--brand-black, #2E3335); }
.ba-chip-final { right: 1.1em; opacity: 0.55; }
.ba-frame.is-final .ba-chip-draft { background: rgba(251, 243, 243, 0.18); color: var(--brand-white, #FBF3F3); opacity: 0.55; }
.ba-frame.is-final .ba-chip-final { background: var(--brand-primary, #B84D4C); color: var(--brand-white, #FBF3F3); opacity: 1; }

.ba-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4em;
}

/* the label is absolutely positioned elsewhere; here it flows above the heading */
.ba-copy .ba-label { position: static; text-align: left; }

.ba-copy .section-heading { max-width: 7em; }

.ba-para {
  max-width: 22em;
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 1.35em;
  line-height: 130%;
  color: var(--brand-primary);
}

.ba-meter {
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  margin-top: 0.4em;
  font-family: var(--font-primary-dark);
  color: var(--brand-black, #2E3335);
  line-height: 0.85;
}
.ba-pct { font-size: 5.5em; min-width: 1.5ch; font-variant-numeric: tabular-nums; }
.ba-pct-sign { font-size: 2.6em; color: var(--brand-primary); }
.ba-meter-label {
  margin-left: 0.6em;
  font-family: var(--font-secondary);
  font-size: 1.1em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.ba-bar {
  width: min(100%, 22em);
  height: 6px;
  border-radius: 6px;
  background: rgba(46, 51, 53, 0.12);
  overflow: hidden;
}
.ba-bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--brand-primary, #B84D4C);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.ba-project {
  font-family: var(--font-secondary);
  font-size: 1.05em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-black, #2E3335);
}
.ba-project span { opacity: 0.6; }

@media screen and (max-width: 991px) {
  .ba-wrapper { grid-template-columns: 1fr; row-gap: 2.5em; }
  .ba-copy { align-items: center; text-align: center; }
  .ba-copy .ba-label { text-align: center; }
  .ba-copy .section-heading.left-align { text-align: center; }
  .ba-para { text-align: center; }
}

@media screen and (max-width: 767px) {
  .section-ba { padding: 5em 1.25em 2em; }
  .ba-frame { border-radius: 1.1em; }
  .ba-pct { font-size: 4em; }
  .ba-pct-sign { font-size: 2em; }
}

/* ===== Work page: website redesign, two working monitors =====
   Each monitor is a CSS-drawn case around a real page in an iframe, with a
   real power button (work/work-site.js). The iframe is laid out at a desktop
   width and scaled to fit the screen. Screens are size containers. */
.section-site {
  width: 100%;
  padding: 7em 1.25em 3em;
  box-sizing: border-box;
}

.section-site-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4em;
  width: 100%;
  max-width: var(--size-container, 90em);
  margin: 0 auto;
}

.monitors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  column-gap: 1.5em;
  width: 100%;
  max-width: 74em;
}

.mon { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1.6em; min-width: 0; }

.mon-arrow { align-self: center; width: 4.5em; color: var(--brand-primary, #B84D4C); opacity: 0.8; }
.mon-arrow svg { display: block; width: 100%; height: auto; }

/* ---------- screens (shared) ---------- */
.screen { position: relative; container-type: inline-size; overflow: hidden; }

.screen-view {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1), filter 0.5s ease, opacity 0.2s ease 0.32s;
}

.screen-frame {
  position: absolute;
  left: 0;
  top: 0;
  border: 0;
  background: #fff;
  transform-origin: 0 0;
  pointer-events: none;
}
.screen.is-live .screen-frame { pointer-events: auto; }

/* transparent button over the screen: click to take control of the page inside */
.screen-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.screen.is-live .screen-hit { display: none; }
.screen-hit::after {
  content: "Click to explore";
  position: absolute;
  left: 50%;
  bottom: 4cqw;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  background: rgba(46, 51, 53, 0.88);
  color: #FBF3F3;
  font: 500 max(11px, 2.2cqw) / 1 var(--font-secondary, sans-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.mon.is-on .screen-hit:hover::after,
.mon.is-on .screen-hit:focus-visible::after { opacity: 1; }
.mon:not(.is-on) .screen-hit { pointer-events: none; cursor: default; }

/* power off: the CRT collapses to a bright line, the flat screen just goes black */
.mon-old:not(.is-on) .screen-view { transform: scale(1, 0.006); filter: brightness(4); opacity: 0; }
.mon-new:not(.is-on) .screen-view { filter: brightness(0); opacity: 0; transition: filter 0.4s ease, opacity 0.4s ease; }

/* ---------- power buttons ---------- */
.power {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.power svg { width: 58%; height: 58%; display: block; }
.power:active { transform: scale(0.92); }
.power:focus-visible { outline: 2px solid var(--brand-primary, #B84D4C); outline-offset: 3px; }
.power.is-invite::before {
  content: "";
  position: absolute;
  inset: -0.35em;
  border-radius: 50%;
  border: 2px solid var(--brand-primary, #B84D4C);
  animation: power-pulse 1.4s ease-out infinite;
}
@keyframes power-pulse { from { transform: scale(0.7); opacity: 0.9; } to { transform: scale(1.5); opacity: 0; } }

/* ---------- old CRT ---------- */
.crt { width: 100%; max-width: 31em; display: flex; flex-direction: column; align-items: center; }
.crt-case {
  width: 100%;
  box-sizing: border-box;
  padding: 1.5em 1.5em 0.9em;
  border-radius: 1.4em 1.4em 1em 1em;
  background: linear-gradient(160deg, #e6e0cf, #d0c9b5 55%, #bcb49d);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -6px 14px rgba(0, 0, 0, 0.16), 0 1.4em 2.2em rgba(46, 51, 53, 0.28);
}
.crt-screen {
  aspect-ratio: 4 / 3;
  border-radius: 2.4em / 2em;
  background: #0b0f0b;
  box-shadow: inset 0 0 0 0.4em #26261f, inset 0 0 2.4em rgba(0, 0, 0, 0.85), 0 0 0 0.3em #a39b85;
}
.mon-old .screen-frame { filter: sepia(0.3) saturate(0.85) contrast(1.05) blur(0.45px); }
.crt-scan, .crt-glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.crt-scan {
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.26) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 80% 80% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}
.crt-glare { background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, transparent 38%); }
.crt-chin { display: flex; align-items: center; gap: 0.8em; padding: 0.9em 0.4em 0.1em; }
.crt-led {
  width: 0.75em; height: 0.75em; border-radius: 50%;
  background: #3dff6a; box-shadow: 0 0 0.7em #3dff6a;
  opacity: 0.12;
  transition: opacity 0.3s ease;
}
.mon-old.is-on .crt-led { opacity: 1; }
.power-crt {
  width: 2.1em; height: 2.1em; margin-left: auto;
  color: #6f6858;
  background: radial-gradient(circle at 35% 30%, #efe9d8, #a39b85);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), inset 0 -2px 3px rgba(0, 0, 0, 0.18);
}
.mon-old.is-on .power-crt { color: #1f9d3e; }
.crt-knob {
  width: 1em; height: 1em; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #efe9d8, #9b937d);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.crt-foot {
  width: 56%; height: 1.2em;
  border-radius: 0 0 0.9em 0.9em;
  background: linear-gradient(#b8b09a, #968e79);
  box-shadow: 0 0.8em 1.2em rgba(0, 0, 0, 0.25);
}

/* ---------- new monitor ---------- */
.lcd { width: 100%; max-width: 35em; display: flex; flex-direction: column; align-items: center; }
.lcd-bezel {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75em 0.75em 1.7em;
  border-radius: 1em;
  background: #0f1113;
  box-shadow: inset 0 0 0 1px #2c2f33, 0 1.4em 2.4em rgba(46, 51, 53, 0.3);
}
.lcd-cam { position: absolute; top: 0.3em; left: 50%; width: 0.36em; height: 0.36em; border-radius: 50%; background: #2b3035; transform: translateX(-50%); }
.lcd-screen { aspect-ratio: 16 / 10; border-radius: 0.4em; background: #050606; }
.power-lcd {
  position: absolute;
  right: 1.1em; bottom: 0.3em;
  width: 1.5em; height: 1.5em;
  color: #6a7076;
  background: #1b1e21;
  box-shadow: inset 0 0 0 1px #343a40;
}
.mon-new.is-on .power-lcd { color: #FBF3F3; box-shadow: inset 0 0 0 1px #FBF3F3, 0 0 0.8em rgba(251, 243, 243, 0.55); }
.lcd-neck { width: 3.6em; height: 2.8em; background: linear-gradient(90deg, #8d9399, #dde0e3 45%, #8d9399); }
.lcd-base { width: 12em; height: 0.75em; border-radius: 50% / 100%; background: linear-gradient(#d3d7da, #8d9399); box-shadow: 0 0.6em 1em rgba(0, 0, 0, 0.25); }

/* ---------- captions ---------- */
.mon-cap { display: flex; flex-direction: column; align-items: center; gap: 0.4em; text-align: center; }
.mon-tag {
  padding: 0.35em 0.95em; border-radius: 999px;
  font-family: var(--font-secondary); font-size: 0.85em; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(46, 51, 53, 0.12); color: var(--brand-black, #2E3335);
}
.mon-tag.red { background: var(--brand-primary, #B84D4C); color: var(--brand-white, #FBF3F3); }
.mon-num { font-family: var(--font-primary-dark); font-size: clamp(3.2rem, 6.4vw, 5.6rem); line-height: 0.9; font-variant-numeric: tabular-nums; transition: opacity 0.3s ease; }
.mon-num-old { color: rgba(46, 51, 53, 0.55); }
.mon-num-new { color: var(--brand-primary, #B84D4C); }
.mon:not(.is-on) .mon-num { opacity: 0.25; }
.mon-label { font-family: var(--font-secondary); font-size: 1em; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }

.site-hint { margin: 0; font-family: var(--font-secondary); font-size: 1em; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; text-align: center; }
.site-note { margin: 0; font-family: var(--font-secondary); font-size: 0.8em; opacity: 0.55; text-align: center; }

@media screen and (max-width: 991px) {
  .monitors { grid-template-columns: 1fr; row-gap: 1.2em; justify-items: stretch; }
  .mon { width: 100%; }
  .mon-arrow { justify-self: center; width: 3.2em; transform: rotate(90deg); }
  .crt, .lcd { max-width: 26em; }
}
@media screen and (max-width: 767px) {
  .section-site { padding: 5em 1.25em 2em; }
  .section-site-wrapper { gap: 1.8em; }
}
@media (prefers-reduced-motion: reduce) {
  .screen-view { transition: none; }
  .power.is-invite::before { animation: none; }
}



/* Home page shown inside the new monitor (index.html?embed=1): no intro loader,
   no chat button, and no monitors section (which would nest the page forever). */
.is-embed .loader,
.is-embed .section-site,
.is-embed #floo-chat { display: none !important; }


/* no-page projects: cards and list rows for projects without a case-study page are not links */
.project-card:not(a), .index-row:not(a) { cursor: default; }

/* Mobile: stack the About hero illustration and intro text instead of cramming them side by side */
@media screen and (max-width: 767px) {
  .about-hero-btm:has(.about-hero-para) {
    flex-direction: column;
    align-items: center;
    row-gap: 1.5em;
  }

  .about-hero-btm:has(.about-hero-para) .about-hero-svg-wrapper,
  .about-hero-btm:has(.about-hero-para) .abput-para-wrapper {
    width: 100%;
    padding-right: 0;
  }

  .about-hero-btm:has(.about-hero-para) .about-hero-para {
    max-width: 20em;
    text-align: center;
  }
}
