/* =========================================================================
   About Us page (about-us.php only): scroll-scrubbed film banner + a few
   page helpers for the sections below it.
   -------------------------------------------------------------------------
   Page-scoped for now so the page works without a rebuild. When folding into
   the bundle, move this block into custom.css as its own section and drop the
   <link> from about-us.php.
   Type and colour follow the site: Archivo 600 headings with -.05em tracking,
   Inter body, brand red #D40B0E, dark #111. The red is written out (not
   var(--primary)) so the first paint does not flash Porto's default blue
   before site.min.css has swapped in.
   ========================================================================= */

/* Porto sets `html.safari .body { overflow-x: hidden }`, which makes .body a
   scroll container and stops position:sticky from pinning the banner on
   Safari / iOS. `clip` keeps the horizontal guard without that side effect.
   Same selector weight as Porto's rule; this file loads after it. */
html.safari:not(.no-safari-overflow-x-fix) .body { overflow-x: clip; }

.about-film {
  --film-accent: #D40B0E;
  --film-dark: #111111;
  --film-ink: #FFFFFF;
  --film-ink-2: rgba(255, 255, 255, .8);
  --film-rule: rgba(255, 255, 255, .25);
  position: relative;
  height: 100vh;
  height: 100svh;
  background: var(--film-dark);
}
.about-film.is-live { height: 620vh; }   /* scroll length of the whole sequence */

.about-film-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--film-dark);
}

.about-film-poster,
.about-film-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.about-film-poster { object-fit: cover; object-position: 50% 50%; }
.about-film-canvas { opacity: 0; transition: opacity .4s ease; }
.about-film.is-drawn .about-film-canvas { opacity: 1; }

/* Same darkening as the home hero, graded so the cut stays bright on the
   right while the copy column on the left stays readable. */
.about-film-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: #000; opacity: .47;              /* = the script's value at the top of the scroll */
}
.about-film-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .6) 34%, rgba(0, 0, 0, 0) 62%),
    linear-gradient(0deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, 0) 30%);
}

/* ---------- copy layers (each chapter sits on the site's .container) ---------- */
.about-film-copy { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
/* Every chapter is vertically centred in the part of the stage that is not
   under the fixed header (same idea as .hero's padding-top). Chapters 1-4 and
   the closing beat only show once the page has scrolled, when the header has
   shrunk to ~125px; the intro shows at the top, under the full 162px header. */
.about-film-chapter {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding-top: 125px;
  opacity: 0; visibility: hidden;
  will-change: opacity, transform;
}
.about-film-chapter > .container { width: 100%; }
.about-film-chapter a { pointer-events: auto; }
.about-film-col { max-width: 36rem; }

/* Intro = the home hero layout */
.about-film-chapter.is-intro {
  padding-top: 170px;                 /* same compensation as .hero */
  opacity: 1; visibility: visible;
}
.about-film-chapter.is-intro .about-film-col { max-width: 48rem; }
.about-film .breadcrumb { margin: 0 0 20px; padding: 0; background: none; }
.about-film .breadcrumb a { pointer-events: auto; }
.about-film-eyebrow { font-family: 'Archivo', sans-serif; letter-spacing: -.05em; line-height: 1.1; }
.about-film-eyebrow .fa { color: var(--film-accent); }

.about-film .about-film-title,
.about-film .about-film-statement {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  color: var(--film-ink);
  letter-spacing: -.05em;
  margin: 0;
  text-wrap: balance;
}
.about-film .about-film-title { font-size: clamp(1.9rem, 2.7vw, 2.75rem); line-height: 1.12; }
.about-film .about-film-statement { font-size: clamp(1.3rem, 1.75vw, 1.75rem); line-height: 1.3; }
.about-film-body {
  font-family: 'Inter', sans-serif;
  font-size: 1.2em; line-height: 1.6;           /* = .text-4 */
  color: var(--film-ink-2); margin: 16px 0 0;
}
.about-film-num { color: var(--film-accent); font-weight: 700; margin-right: .6em; }
/* centred copy crosses the bright shaft highlights: a soft shadow keeps it legible */
.about-film-chapter .about-film-title,
.about-film-chapter .about-film-body,
.about-film-chapter .about-film-statement { text-shadow: 0 1px 14px rgba(0, 0, 0, .6); }

/* Closing beat: client logos in white + the site's white pill CTA */
.about-film-col.is-wide { max-width: 50rem; }
/* Logos keep their own colours on white tiles, like the carousel below
   (several of the SVGs have filled backgrounds, so a white filter fails). */
.about-film-clients {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 4px 0 24px; padding: 0; list-style: none;
}
.about-film-clients li {
  height: 50px; padding: 0 14px; border-radius: 8px; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.about-film-clients img { height: 28px; width: auto; max-width: 92px; object-fit: contain; }
.about-film-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }
.about-film-wa {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--film-ink); font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.05rem;
  text-decoration: none;
}
.about-film-wa:hover, .about-film-wa:focus { color: var(--film-ink); text-decoration: underline; }
.about-film-wa .fa { color: #25D366; font-size: 1.35em; }

/* ---------- step rail (bottom centre, same numbered circles as "How We Work") ---------- */
.about-film-steps {
  position: absolute; z-index: 4; left: 50%; transform: translateX(-50%);
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 26px;
  margin: 0; padding: 0; list-style: none;
  opacity: 0; pointer-events: none;
}
.about-film-steps li {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif; font-size: .78rem; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase; white-space: nowrap;
  color: rgba(255, 255, 255, .55);
  transition: color .3s ease;
}
.about-film-steps li b {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255, 255, 255, .35);
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: .85rem; letter-spacing: 0;
  color: rgba(255, 255, 255, .75);
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.about-film-steps li.is-done b { border-color: var(--film-accent); color: var(--film-ink); }
.about-film-steps li.is-on { color: var(--film-ink); }
.about-film-steps li.is-on b { background: var(--film-accent); border-color: var(--film-accent); color: #fff; }

.about-film-cue {
  position: absolute; z-index: 3; left: 50%; transform: translateX(-50%);
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif; font-size: .75rem; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--film-ink-2); pointer-events: none;
}
.about-film-cue i { width: 1px; height: 38px; background: var(--film-rule); position: relative; overflow: hidden; display: block; }
.about-film-cue i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--film-accent); animation: aboutFilmCue 1.8s cubic-bezier(.6, 0, .3, 1) infinite;
}
@keyframes aboutFilmCue { to { top: 100%; } }
.about-film:not(.is-live) .about-film-cue,
.about-film:not(.is-live) .about-film-steps { display: none; }

.about-film-load { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 5; pointer-events: none; }
.about-film-load i { display: block; height: 100%; background: var(--film-accent); transform-origin: left; transform: scaleX(0); transition: transform .3s ease, opacity .6s ease; }
.about-film-load.is-done i { opacity: 0; }

/* ---------- phones and portrait tablets: copy at the bottom, footage above ---------- */
@media (max-width: 991px), (max-aspect-ratio: 9/10) {
  /* Phones and portrait tablets keep the copy at the bottom: centred copy
     would sit on top of the cutting tool, which is mid-frame in the m/ crop. */
  .about-film-chapter,
  .about-film-chapter.is-intro {
    top: auto; padding-top: 0; display: block;
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));   /* clears the rail and the chat bubble */
  }
  .about-film-scrim {
    background: linear-gradient(0deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .78) 34%, rgba(0, 0, 0, .15) 58%, rgba(0, 0, 0, 0) 66%);
  }
  .about-film-cue { display: none; }             /* the copy sits where the cue would be; the rail takes over */
  .about-film-steps { gap: 14px; }
  .about-film-steps li span { display: none; }
  .about-film-steps li b { width: 26px; height: 26px; font-size: .78rem; }
  .about-film-clients { gap: 8px; margin-bottom: 16px; }
  .about-film-clients li { height: 38px; padding: 0 10px; border-radius: 6px; }
  .about-film-clients img { height: 20px; max-width: 64px; }
  .about-film-actions { margin-top: 20px; }
}
/* portrait frames (m/): same zoom and focus the script uses, so the canvas
   lands exactly on top of the poster. Keep in sync with SETS.m in about-film.js. */
@media (max-aspect-ratio: 9/10) {
  .about-film-poster { transform: scale(1.12); transform-origin: 56% 22%; }
}
@media (max-width: 767px) {
  /* side icons sit bottom-right on phones */
  .about-film-col { padding-right: 40px; }
  .about-film-body { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .about-film-cue i::after { animation: none; }
  .about-film-canvas { transition: none; }
}

/* ========================= sections below the film ========================= */
.about-since-badge .years-badge-number { font-size: 46px; letter-spacing: -.02em; }

.about-monogram {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary, #D40B0E); color: #fff;
  font: 700 1.3rem/1 'Archivo', sans-serif; letter-spacing: .02em;
}
.about-value-icon { font-size: 2rem; color: var(--primary, #D40B0E); display: inline-block; margin-bottom: 18px; }

.about-visit-card { border-radius: 8px; }
.about-visit-card hr { margin: 24px 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .2); opacity: 1; }
.about-visit-card .fa, #visit .d-flex > .fa { width: 1.2em; margin-top: .15em; flex: none; }

.about-gap { gap: 1rem; }
#visit > .container > .row { --bs-gutter-x: 3rem; }
.about-faq { background: #FAF7F2; }   /* same warm tint as .intro-panel */
