/* Fileforce Malaysia — light theme (revision round 1).
   Class-based layout system replacing the dark "Nocturne" inline-style build.
   Brand rules: yellow #FCCB25 is a FILL only (dark text on it), never text/borders
   on white. Teal #2a9d9f carries kickers, icons and inline links. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-bg:        #ffffff;
  --color-bg-alt:    #f6f9fc;
  --color-surface:   #ffffff;
  --color-border:    #e3ebf2;
  --color-heading:   #12314f;
  --color-text:      #405a72;
  --color-muted:     #587188;
  --color-deep:      #12314f;
  --ff-teal:         #2a9d9f;
  --ff-teal-dark:    #1f7a7c;
  --ff-teal-soft:    #e8f4f5;
  --ff-yellow:       #FCCB25;
  --ff-yellow-hover: #e3b61f;
  --ff-on-yellow:    #14171a;

  --font-heading: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 3px rgba(18,49,79,.06), 0 8px 24px rgba(18,49,79,.05);
  --shadow-card-hover: 0 2px 6px rgba(18,49,79,.08), 0 22px 60px rgba(18,49,79,.14);
  --shadow-img: 0 2px 8px rgba(18,49,79,.08), 0 20px 48px rgba(18,49,79,.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: 600; color: var(--color-heading);
  line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 16px;
}
/* All page and section headers carry the hero teal (client, 11 Sept),
   sized just under the hero line */
h1 { font-size: clamp(36px, 5vw, 54px); color: var(--ff-teal); }
h2 { font-size: clamp(26px, 2.5vw, 34px); color: var(--ff-teal); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { margin: 0 0 12px; max-width: 640px; }
.card p, .float-card p, .site-footer p { max-width: none; }
strong, b { color: var(--color-heading); font-weight: 600; }
img { display: block; max-width: 100%; }
a { color: var(--ff-teal); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--ff-teal-dark); text-decoration: underline; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-heading); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--ff-teal-soft); color: var(--color-heading); }

/* ---- layout ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.section { padding: 72px 0; background: var(--color-bg); }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-deep); color: #ffffff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #ffffff; }
.section-dark p { color: #c8d6e2; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h1, .section-head h2, .section-head p { margin-left: auto; margin-right: auto; }
.section-head-left { margin-bottom: 44px; }
.section-head-left p { max-width: 1080px; }
.intro-720 { max-width: 1080px !important; }
.hr {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(to right, transparent, var(--color-border) 48px,
    var(--color-border) calc(100% - 48px), transparent);
}

.ff-justify {
  text-align: justify; text-align-last: left;
  hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty;
  hyphenate-limit-chars: 6 3 3;
  -webkit-hyphenate-limit-before: 3;
  -webkit-hyphenate-limit-after: 3;
}
@media (max-width: 820px) {
  .ff-justify { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split h1, .split h2 { max-width: 24ch; }
.split p { max-width: 640px; }
.split-even { grid-template-columns: 1fr 1fr; }
.split-stretch { align-items: stretch; }

/* ---- kicker / eyebrow ---- */
/* NOTE: #2a9d9f on white measures 3.27:1 — below 4.5:1 for small text.
   Kept per brand spec; flagged in the contrast report. */
.kicker {
  display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ff-teal); margin-bottom: 16px;
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border: 1px solid var(--color-border); border-radius: 999px;
  background: #ffffff; font-size: 13.5px; font-weight: 500; color: var(--color-heading);
  box-shadow: var(--shadow-card);
}
.eyebrow-pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ff-teal); flex: none;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-decoration: none; font-family: var(--font-heading);
  font-weight: 600; font-size: 15px; line-height: 1.2;
  padding: 13px 24px; border-radius: var(--radius-md); border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    transform 0.25s cubic-bezier(.22,1,.36,1), box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(252,203,37,.35); }
.btn:hover { text-decoration: none; }
.btn svg { display: block; }
/* Yellow: fill only, dark text. Used for header CTA, CTA bands, form/product actions. */
.btn-primary { background: var(--ff-yellow); border-color: var(--ff-yellow); color: var(--ff-on-yellow); }
.btn-primary:hover { background: var(--ff-yellow-hover); border-color: var(--ff-yellow-hover); color: var(--ff-on-yellow); }
.btn-dark { background: var(--color-deep); border-color: var(--color-deep); color: #ffffff; }
.btn-dark:hover { background: #1c4470; border-color: #1c4470; color: #ffffff; }
.btn-outline { background: #ffffff; border-color: #77909f; color: var(--color-heading); }
.btn-outline:hover { background: var(--color-bg-alt); color: var(--color-heading); }
.section-dark .btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: #ffffff; }
.section-dark .btn-outline:hover { background: rgba(255,255,255,.1); color: #ffffff; }
.btn-block { width: 100%; }
/* Digital hero: award + enquiry row above the media frame */
/* Digital hero: award badge rides the video frame's bottom-right corner */
.hero-video-wrap { position: relative; }
.hero-award-float {
  position: absolute; right: -16px; bottom: -22px; z-index: 2;
  height: 148px; width: auto;
  filter: drop-shadow(0 10px 24px rgba(18,49,79,.35));
}
@media (max-width: 640px) {
  .hero-award-float { height: 96px; right: 4px; bottom: -14px; }
}

/* Flow steps: icon chip + title on one line (numbers retired, 10 Sept) */
.flow-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.flow-icon {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  background: var(--ff-teal-soft); color: var(--ff-teal-dark);
  display: inline-flex; align-items: center; justify-content: center;
}
.flow-icon svg { stroke: var(--ff-teal-dark); }

/* Navy contrast cards (digital services trio) */
.card.card-navy { background: var(--color-deep); border-color: var(--color-deep); }
.card-navy .icon-chip { background: rgba(255,255,255,.1); }
.card-navy .icon-chip svg { stroke: #7fd4d6; }
.card-navy .card-title { color: #ffffff; }
.card-navy .card-body { color: #c8d6e2; }
.card-navy .arrow-link { color: #7fd4d6; }
.card-navy .arrow-link:hover { color: #a8e4e5; }

/* WhatsApp header CTA: brand-green box (client request, 10 Sept) */
.btn-wa { background: #25D366; border-color: #25D366; color: #ffffff; }
.btn-wa:hover { background: #1eb955; border-color: #1eb955; color: #ffffff; }
.site-header .btn-wa { padding: 11px 20px; font-size: 14.5px; white-space: nowrap; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: background .4s ease, box-shadow .4s ease;
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand img { height: 36px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: var(--color-heading); font-size: 15.5px; font-weight: 600; white-space: nowrap;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--ff-teal-dark); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--ff-teal-dark); border-bottom-color: var(--ff-teal); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--color-heading); font-size: 14.5px; font-weight: 600; white-space: nowrap;
}
.phone-link svg { stroke: var(--ff-teal); }
.phone-link:hover { color: var(--ff-teal-dark); text-decoration: none; }
.header-actions .btn { padding: 11px 20px; font-size: 14.5px; white-space: nowrap; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); padding: 8px; cursor: pointer; color: var(--color-heading);
}
.menu-toggle svg { display: block; }
.mobile-nav {
  display: none; background: #ffffff; border-bottom: 1px solid var(--color-border);
  padding: 8px 24px 20px;
}
.mobile-nav a {
  display: block; padding: 12px 4px; color: var(--color-heading);
  font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--color-border);
}
.mobile-nav a:hover { color: var(--ff-teal-dark); text-decoration: none; }
.mobile-nav a[aria-current="page"] { color: var(--ff-teal-dark); }
.mobile-nav .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; width: 100%; text-align: center; font-size: 15.5px;
}
.mobile-nav .btn-wa { color: #ffffff; }
.mobile-nav .btn-primary { color: var(--ff-on-yellow); }
.mobile-nav .btn + .btn { margin-top: 10px; }
.mobile-nav .phone-link { padding: 14px 4px 0; }
.mobile-open .mobile-nav { display: block; }

/* ---- centred CTA bands ---- */
.cta-center { text-align: center; }
.cta-center h2, .cta-center p { margin-left: auto; margin-right: auto; }
.cta-center .cta-row { justify-content: center; }

/* ---- CTA groups ---- */
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.narrow-col { max-width: 640px; }

/* ---- cards ---- */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 36px 32px;
  display: flex; flex-direction: column;
}
[class*="grid-"] { align-items: stretch; }
.card-hover { transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s ease, border-color 0.35s ease; }
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); border-color: rgba(42,157,159,.45); }
.card-title { font-size: 17px; font-weight: 600; color: var(--color-heading); margin: 0 0 6px; }
.card-body { font-size: 15px; line-height: 1.55; color: var(--color-text); margin: 0; }
a.card { color: inherit; }
a.card:hover { text-decoration: none; color: inherit; }

/* One chip style site-wide: soft teal. Navy fills reserved for dark bands only.
   NOTE: teal glyph on teal-soft measures 2.91:1 (below the 3:1 non-text bar) —
   kept per brand spec, flagged in the contrast report. */
.icon-tile, .icon-chip {
  width: 48px; height: 48px; border-radius: 11px; background: var(--ff-teal-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; flex: none;
}
.icon-tile svg, .icon-chip svg { stroke: var(--ff-teal); stroke-width: 1.8; }
.section-dark .icon-tile, .section-dark .icon-chip { background: var(--color-deep); }
.section-dark .icon-tile svg, .section-dark .icon-chip svg { stroke: #ffffff; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 20px;
  color: var(--ff-teal-dark); font-weight: 600; font-size: 14.5px;
}

/* ---- nested cards: outer card with inner icon+title card ---- */
.nest-card {
  background: #ffffff; border: 1px solid var(--color-border); border-radius: 14px;
  padding: 24px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; height: 100%;
}
.nest-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.nest-card-head .icon-chip { width: 40px; height: 40px; border-radius: 9px; flex: 0 0 40px; margin: 0; }
.nest-card-head h3 { font-size: 17px; font-weight: 600; color: var(--color-heading); line-height: 1.3; margin: 0; }
.nest-card > p { font-size: 15px; line-height: 1.55; color: var(--color-text); margin: 0; max-width: none; }

/* ---- product hero heading: name + subordinate descriptor ---- */
.product-h1 {
  font-size: clamp(42px, 5vw, 56px); font-weight: 600; color: var(--color-heading);
  letter-spacing: -0.02em; margin: 0 0 8px; white-space: nowrap; max-width: none;
}
.product-sub {
  font-family: var(--font-heading); font-size: clamp(26px, 3vw, 34px); font-weight: 500;
  color: var(--color-heading); line-height: 1.25; letter-spacing: -0.015em;
  max-width: 620px; margin: 0 0 18px; text-wrap: balance;
}

/* ---- card header: chip and title on one line ---- */
.card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.card-header .icon-tile, .card-header .icon-chip { margin-bottom: 0; flex: 0 0 48px; }
.card-header .card-title, .card-header h3 { font-size: 17px; line-height: 1.3; font-weight: 600; margin: 0; }
.card-header + .card-body, .card-header + p { margin-top: 0; }

/* ---- industries: icon tile stretches to the text block ---- */
.industry-header { display: flex; align-items: stretch; gap: 24px; }
.industry-icon {
  flex: 0 0 88px; min-height: 88px; align-self: stretch;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--ff-teal-soft);
}
.industry-icon svg { stroke: var(--ff-teal); stroke-width: 1.8; }
.industry-header h2 { font-size: 20px; margin: 0 0 10px; }
.card:has(.industry-header) .chip { font-size: 15px; }
.card:has(.industry-header) { padding: 32px; }
.industry-header .card-body { margin: 0; }
@media (max-width: 820px) { .industry-header { flex-direction: column; } .industry-icon { align-self: flex-start; width: 88px; min-height: 88px; } }

/* ---- tick lists ---- */
.tick-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.tick-list-2col { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.tick-item { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.tick-item::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--ff-teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.6L13 6.5' fill='none' stroke='%232a9d9f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.tick-item b { color: var(--color-heading); }

/* ---- credibility chips ---- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: #ffffff; border: 1px solid var(--color-border); border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--color-heading); box-shadow: var(--shadow-card);
}
.chip svg { stroke: var(--ff-teal-dark); flex: none; }

/* ---- solution pill switcher ---- */
.pill-switch {
  display: inline-flex; gap: 8px; padding: 6px; background: #ffffff;
  border: 1px solid var(--color-border); border-radius: 999px; box-shadow: var(--shadow-card);
}
.pill-switch a {
  padding: 9px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  color: var(--color-heading); white-space: nowrap;
}
.pill-switch a:hover { background: var(--color-bg-alt); text-decoration: none; color: var(--color-heading); }
.pill-switch a[aria-current="page"] { background: var(--ff-yellow); color: var(--ff-on-yellow); }
.pill-switch a[aria-current="page"]:hover { background: var(--ff-yellow-hover); }
.pill-switch-wrap { display: flex; justify-content: center; padding: 28px 0 0; }

/* ---- imagery ---- */
.img-hero { aspect-ratio: 3/2; min-height: 440px; width: 100%; height: auto; object-fit: cover; }
.img-content { aspect-ratio: 4/3; min-height: 380px; width: 100%; height: auto; object-fit: cover; }
.img-fill { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.img-stack { display: flex; flex-direction: column; gap: 20px; }

.framed-img { border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-img); }

/* ---- stats band (deliberate dark contrast break) ---- */
.stats-band { background: var(--color-deep); padding: 72px 0; }
.stats-band h2 { color: #ffffff; text-align: center; margin-left: auto; margin-right: auto; margin-bottom: 56px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num {
  font-family: var(--font-heading); font-size: 44px; font-weight: 600; color: #ffffff; line-height: 1;
}
.stat-suffix { color: #4fb8ba; }
.stat-label { font-size: 13px; color: #b6c8d8; margin-top: 10px; }

/* ---- ambient background orbs (retuned for light: barely-there colour washes) ---- */
@keyframes ff-orb { 0%,100% { transform: translate(0,0) scale(1) } 50% { transform: translate(30px,-20px) scale(1.08) } }
.orb { position: fixed; border-radius: 50%; filter: blur(100px); opacity: 0.5; pointer-events: none; z-index: 0; }
.orb-teal { top: -120px; right: -100px; width: 420px; height: 420px; background: rgba(42,157,159,.10); animation: ff-orb 14s ease-in-out infinite; }
.orb-navy { bottom: -160px; left: -120px; width: 480px; height: 480px; background: rgba(18,49,79,.07); animation: ff-orb 18s ease-in-out infinite reverse; }

/* ---- hero: animated background layer + floating cards ---- */
@keyframes ff-float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
@keyframes ff-tag-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(252,203,37,.5) } 50% { box-shadow: 0 0 0 6px rgba(252,203,37,0) } }
@keyframes ff-hero-drift { from { background-position: 0 0 } to { background-position: 560px 320px } }
.hero { position: relative; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(18,49,79,.05) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  animation: ff-hero-drift 60s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 45%, #000 40%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 45%, #000 40%, transparent 78%);
}
.hero > .container { position: relative; z-index: 1; }
.hero-visual { position: relative; height: 420px; }
.float-card {
  position: absolute; padding: 20px; background: #ffffff;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-img);
}
.float-card .bar { height: 8px; background: #e9eef4; border-radius: 4px; margin-top: 8px; }
.ff-featured-tag { animation: ff-tag-pulse 2.4s ease-in-out infinite; border-radius: 999px; }

/* ---- marquee ---- */
@keyframes ff-marquee { from { transform: translateX(0) } to { transform: translateX(-33.3333%) } }
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: ff-marquee 34s linear infinite; will-change: transform; }
.marquee-pill {
  flex: none; white-space: nowrap; padding: 11px 22px; border-radius: 999px;
  background: #ffffff; border: 1px solid var(--color-border); box-shadow: var(--shadow-card);
  font-size: 14.5px; font-weight: 500; color: var(--color-heading);
  transition: background 0.25s ease;
}
.marquee-pill:hover { background: var(--ff-teal-soft); color: var(--color-heading); text-decoration: none; }

/* ---- full-width logo strip ---- */
.logo-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: center; }
.logo-strip > div {
  background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 14px;
  min-height: 110px; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.logo-strip img { max-height: 42px; width: auto; }
@media (max-width: 760px) { .logo-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---- forms ---- */
.field > label {
  display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--color-heading);
}
.input {
  width: 100%; min-height: 42px; padding: 9px 12px; font: inherit; font-size: 14.5px;
  color: var(--color-heading); caret-color: var(--ff-teal-dark);
  background: #ffffff; border: 1px solid #77909f; border-radius: var(--radius-md);
}
.input::placeholder { color: var(--color-muted); }
.input:hover { border-color: var(--color-muted); }
.input:focus-visible { border-color: var(--ff-teal-dark); outline: 2px solid var(--ff-teal-dark); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }

/* ---- footer (navy, bookends the stats band) ---- */
.site-footer { background: var(--color-deep); color: #b6c8d8; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer p { font-size: 13.5px; color: #b6c8d8; }
.footer-col-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: #8fa6ba; margin-bottom: 14px; font-weight: 600;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a { color: #d7e2ec; }
.footer-links a:hover { color: #ffffff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 48px; padding: 20px 0 32px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: #8fa6ba;
}
.footer-logo-box { display: inline-block; background: #ffffff; border-radius: 8px; padding: 8px 12px; }
.footer-logo-box img { height: 26px; width: auto; }

.site-header.scrolled { background: rgba(255,255,255,.97); box-shadow: 0 8px 28px rgba(18,49,79,.08); }

/* hero load-in choreography: heading block children rise in sequence */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-reveal] > * { opacity: 0; transform: translateY(22px); animation: ff-rise .85s cubic-bezier(.22,1,.36,1) forwards; }
  .js .hero [data-reveal] > *:nth-child(1) { animation-delay: .05s; }
  .js .hero [data-reveal] > *:nth-child(2) { animation-delay: .15s; }
  .js .hero [data-reveal] > *:nth-child(3) { animation-delay: .25s; }
  .js .hero [data-reveal] > *:nth-child(4) { animation-delay: .35s; }
  .js .hero [data-reveal] > *:nth-child(5) { animation-delay: .45s; }
  .js .hero [data-reveal] > *:nth-child(6) { animation-delay: .55s; }
}
@keyframes ff-rise { to { opacity: 1; transform: none; } }

/* ---- reveal animations (JS adds .revealed / .in) ---- */
/* Hidden starting states exist ONLY when JS is running (html.js added by main.js).
   Without JS the site renders fully visible: printing, crawlers, capture tools. */
.js [data-reveal] {
  opacity: 0; transform: translateY(30px); filter: blur(7px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1), filter .9s ease;
}
.js [data-reveal].revealed { opacity: 1; transform: none; filter: blur(0); }
/* image frames wipe upward as they reveal */
.js [data-reveal] .framed-img, .js [data-reveal].framed-img {
  clip-path: inset(12% 0 0 0 round var(--radius-lg));
  transition: clip-path 1.1s cubic-bezier(.22,1,.36,1);
}
.js [data-reveal].revealed .framed-img, .js [data-reveal].revealed.framed-img { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.js .wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(0.65,0,0.35,1); }
.js .wipe.in { clip-path: inset(0 0 0 0); }
.js .stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16,1,0.3,1); }
.js .stagger.in > * { opacity: 1; transform: none; }

@media print {
  *, [data-reveal], [data-reveal-clip], .ff-img-reveal, .wipe, .stagger > * {
    opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
  .site-header, .mobile-nav { position: static; }
}
.js .stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.js .stagger.in > *:nth-child(2) { transition-delay: 110ms; }
.js .stagger.in > *:nth-child(3) { transition-delay: 220ms; }
.js .stagger.in > *:nth-child(4) { transition-delay: 330ms; }
.js .stagger.in > *:nth-child(5) { transition-delay: 440ms; }
.js .stagger.in > *:nth-child(6) { transition-delay: 550ms; }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal], .stagger > * { opacity: 1 !important; transform: none !important; }
  .wipe { clip-path: inset(0 0 0 0); }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .hero-bg { display: none; }
}

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .main-nav, .header-actions .phone-link, .header-actions .btn { display: none; }
  .menu-toggle { display: block; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .split, .split-stretch { grid-template-columns: 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
}
@media (max-width: 820px) {
  .section, .hero, .stats-band { padding: 56px 0; }
  .section-head { margin: 0 auto 36px; }
  .section-head-left { margin-bottom: 36px; }
}
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .header-inner { padding: 12px 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .tick-list-2col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 34px; }
  .pill-switch { width: 100%; overflow-x: auto; }
  .pill-switch a { padding: 9px 14px; font-size: 13.5px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ---- page-specific helpers ---- */
.hero { padding: 72px 0 80px; }
/* Hero flow: named areas so the phone reorders to heading, video, copy
   while desktop keeps head+copy stacked left of the media column */
.hero-flow { grid-template-columns: 1fr 1fr; grid-template-areas: "head media" "rest media"; row-gap: 0; column-gap: 64px; }
.hero-flow .hf-head { grid-area: head; }
.hero-flow .hf-media { grid-area: media; }
.hero-flow .hf-rest { grid-area: rest; }
@media (max-width: 900px) {
  .hero-flow { grid-template-columns: 1fr; grid-template-areas: "head" "media" "rest"; }
  .hero-flow .hf-media { margin: 4px 0 24px; }
}

/* hero media column: top of the frame sits level with the sub-paragraph
   (client request, 10 Sept); value measured per page, reset when stacked */
.hero-media-align { margin-top: var(--hero-media-offset, 0px); }
@media (max-width: 900px) { .hero-media-align { margin-top: 0; } }
.hero-sub { font-size: 16.5px; max-width: 640px; }
.h1-teal { color: var(--ff-teal); display: block; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: stretch; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row svg { flex: none; stroke: var(--ff-teal-dark); }
.contact-label { font-size: 13px; color: var(--color-muted); }
.video-facade { position: relative; padding-top: 56.25%; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; background: #0a1826; border: 1px solid var(--color-border); box-shadow: var(--shadow-img); }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 72px; height: 72px; border-radius: 50%; background: rgba(10,24,38,0.7);
  display: flex; align-items: center; justify-content: center;
}
.play-btn::after {
  content: ""; width: 0; height: 0; margin-left: 6px;
  border-top: 14px solid transparent; border-bottom: 14px solid transparent; border-left: 22px solid #ffffff;
}

/* Responsive overrides for helpers declared above — must stay last in the file
   so they win the source-order tie against the base declarations. */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---- form validation errors ---- */
.field-error { color: #b3261e; font-size: 13px; margin-top: 5px; }
.input.has-error, .input:user-invalid { border-color: #b3261e; }

/* ---- floating WhatsApp button ---- */
.wa-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  background: #ffffff; border: 1px solid var(--color-border); border-radius: 999px;
  padding: 12px 20px; min-height: 48px;
  box-shadow: 0 2px 6px rgba(18,49,79,.10), 0 12px 32px rgba(18,49,79,.16);
  color: var(--color-heading); font-weight: 600; font-size: 14.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-fab:hover { transform: translateY(-2px); text-decoration: none; color: var(--color-heading); box-shadow: 0 4px 10px rgba(18,49,79,.12), 0 18px 44px rgba(18,49,79,.2); }
.wa-fab svg { flex: none; }
@media (max-width: 760px) {
  .wa-fab { right: 16px; bottom: 16px; padding: 13px; border-radius: 50%; }
  .wa-fab-label { display: none; }
}
@media print { .wa-fab { display: none; } }

/* ---- footer social row ---- */
.social-row { display: flex; gap: 14px; margin-top: 40px; }
.social-row a {
  width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #4fb8ba; border: 1px solid rgba(255,255,255,.14);
}
.social-row a:hover { color: #ffffff; background: rgba(255,255,255,.14); text-decoration: none; }

/* ---- filter bars (clients, products) ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 32px; }
.filter-pill {
  padding: 10px 18px; min-height: 44px; border-radius: 999px; cursor: pointer;
  background: #ffffff; border: 1px solid var(--color-border); box-shadow: var(--shadow-card);
  font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--color-heading);
  transition: background 0.2s ease;
}
.filter-pill:hover { background: var(--ff-teal-soft); }
.filter-pill.is-active { background: var(--ff-yellow); border-color: var(--ff-yellow); color: var(--ff-on-yellow); }

/* ---- client logo wall ---- */
.logo-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.logo-wall-tile {
  background: #ffffff; border: 1px solid var(--color-border); border-radius: 14px;
  min-height: 110px; display: flex; align-items: center; justify-content: center; padding: 20px;
  box-shadow: var(--shadow-card);
}
.logo-wall-tile img { max-height: 44px; width: auto; max-width: 100%; filter: grayscale(1); opacity: 0.75; transition: filter 0.25s ease, opacity 0.25s ease; }
.logo-wall-tile:hover img { filter: none; opacity: 1; }
@media (max-width: 1080px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } }

/* ---- FAQ accordion ---- */
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; min-height: 44px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--color-heading);
}
.acc-chevron { flex: none; transition: transform 0.25s ease; }
.acc-item.is-open .acc-chevron { transform: rotate(180deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel-inner { overflow: hidden; padding: 0 24px; }
.acc-item.is-open .acc-panel-inner { padding-bottom: 20px; }

/* ---- milestones timeline ---- */
.timeline { position: relative; display: flex; flex-direction: column; gap: 32px; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: var(--color-border); transform: translateX(-50%);
}
.timeline-item { position: relative; width: calc(50% - 40px); }
.timeline-item-right { margin-left: auto; }
.timeline-dot {
  position: absolute; top: 28px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ff-teal); border: 3px solid #ffffff; box-shadow: 0 0 0 1px var(--color-border);
}
.timeline-item:not(.timeline-item-right) .timeline-dot { right: -47px; }
.timeline-item-right .timeline-dot { left: -47px; }
@media (max-width: 1024px) {
  .timeline::before { left: 8px; transform: none; }
  .timeline-item, .timeline-item-right { width: auto; margin-left: 32px; }
  .timeline-item .timeline-dot, .timeline-item-right .timeline-dot { left: -31px; right: auto; }
}

/* ---- product spec table ---- */
/* White-ground artwork (the client's montage) letterboxes instead of cropping */
.img-contain { object-fit: contain !important; background: #ffffff; }

/* Product catalogue montage: the client's spec sheets flow as a modest
   horizontal strip in place of the specification table */
.spec-montage {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px 4px 16px; margin: 0 -4px;
  scrollbar-width: thin;
}
.spec-montage img {
  height: 300px; width: auto; flex: none; scroll-snap-align: start;
  background: #ffffff; border: 1px solid var(--color-border); border-radius: 12px;
}
@media (max-width: 640px) { .spec-montage img { height: 220px; } }

.spec-table { border: 1px solid var(--color-border); border-radius: 14px; overflow: hidden; background: #ffffff; }
.spec-row { display: grid; grid-template-columns: 220px 1fr; }
.spec-row:nth-child(even) { background: var(--color-bg-alt); }
.spec-row + .spec-row { border-top: 1px solid var(--color-border); }
.spec-label { padding: 14px 20px; font-size: 13px; font-weight: 600; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.spec-value { padding: 14px 20px; font-size: 15px; color: var(--color-heading); }
@media (max-width: 600px) { .spec-row { grid-template-columns: 1fr; } .spec-label { padding-bottom: 0; } }

/* ---- product gallery thumbnails ---- */
.gallery-thumbs { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.gallery-thumb {
  width: 88px; height: 66px; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid var(--color-border); background: none;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.is-active { border-color: var(--ff-teal); }

/* ---- article body (720px reading measure) ---- */
.article-body { max-width: 720px; }
.article-body p { max-width: 720px; text-align: justify; text-align-last: left; hyphens: auto; -webkit-hyphens: auto; }
.article-body h2 { font-size: 24px; margin-top: 32px; }
.article-body h3 { font-size: 20px; margin-top: 24px; }
.article-body img { border-radius: 14px; border: 1px solid var(--color-border); }
@media (max-width: 820px) { .article-body p { text-align: left; hyphens: manual; -webkit-hyphens: manual; } }

/* [hidden] must always win, even over .card { display:flex } */
[hidden] { display: none !important; }

/* ---- Industries merged page: expandable industry boxes ---- */
.ind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.ind-box { padding: 32px; align-self: start; }
.ind-box .card-header h2 { font-size: 20px; }
.ind-summary {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: calc(2 * 1.55em); margin: 0 0 4px; max-width: none;
}
.ind-solutions-label {
  margin-top: 18px; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--color-muted); font-weight: 600;
}
.ind-box .chip-row { min-height: 36px; }
.ind-panel { height: 0; overflow: hidden; transition: height 400ms cubic-bezier(.4,0,.2,1); }
.ind-panel-inner { padding-bottom: 4px; }
.ind-quote {
  background: #f6f9fc; border-left: 3px solid var(--ff-teal); border-radius: 8px;
  padding: 20px; margin: 20px 0 0;
}
.ind-quote p { font-style: italic; font-size: 15px; color: var(--color-heading); margin: 0 0 12px; text-align: left; max-width: none; }
.ind-quote footer { font-size: 13px; color: var(--color-muted); }
.ind-quote footer b { color: var(--color-heading); font-size: 13.5px; display: inline; }
.ind-quote footer span { display: block; }
.placeholder-pill {
  display: inline-block; margin-top: 20px; padding: 3px 10px; border: 1px solid var(--ff-teal);
  border-radius: 999px; color: var(--ff-teal); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
}
.placeholder-pill + .ind-quote { margin-top: 8px; }
.ind-links { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 4px; }
.ind-more {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  align-self: center; margin-top: 20px; min-height: 44px;
  background: none; border: 0; padding: 0 16px; cursor: pointer;
  color: var(--ff-teal); font: inherit; font-size: 15px; font-weight: 600;
}
.ind-more:focus-visible { outline: 2px solid var(--ff-teal); outline-offset: 3px; border-radius: 4px; }
.ind-chevron { transition: transform 300ms cubic-bezier(.4,0,.2,1); }
.ind-more[aria-expanded="true"] .ind-chevron { transform: rotate(180deg); }
@media (max-width: 1024px) {
  .ind-grid { grid-template-columns: 1fr; }
  .ind-summary { -webkit-line-clamp: unset; min-height: 0; }
  .ind-box .chip-row { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ind-panel, .ind-chevron { transition: none; }
}

/* ---- Aug 2026 restructure ---- */
/* Header WhatsApp CTA */
.wa-header-link svg { flex: none; stroke: none; }

/* Client proof rows ("Built for the way your industry works") */
.proof-block { margin-top: 48px; }
.proof-heading { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--color-muted); margin-bottom: 18px; }
.proof-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.proof-row {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 14px; padding: 22px; box-shadow: var(--shadow-card);
}
.proof-logo {
  flex: 0 0 96px; height: 64px; display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 10px; padding: 10px;
}
.proof-logo img { max-height: 40px; max-width: 100%; width: auto; }
.proof-text { font-size: 14.5px; line-height: 1.55; margin: 8px 0 0; max-width: none; }
.proof-row .placeholder-pill { margin-top: 0; }
@media (max-width: 900px) { .proof-rows { grid-template-columns: 1fr; } }

/* Digital: four products in one row */
.product-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.product-row .card { display: flex; flex-direction: column; padding: 30px 20px; }
.product-logo-slot {
  height: 56px; display: flex; align-items: center; margin-bottom: 14px;
}
.product-logo-slot img { max-height: 40px; max-width: 150px; width: auto; }
.product-card-links { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 12px; }
/* Each CTA stays on one row; equal-height cards keep all four link blocks on the same baseline */
.product-card-links .arrow-link { font-size: 12px; white-space: nowrap; }
@media (max-width: 1180px) { .product-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .product-row { grid-template-columns: 1fr; } }

/* Digital: narrative flow steps */
.flow-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; align-items: stretch; }
.flow-step {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px;
  padding: 24px 22px; box-shadow: var(--shadow-card); position: relative;
}
.flow-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ff-teal-soft);
  color: var(--ff-teal-dark); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.flow-step .card-title { font-size: 16px; }
.flow-step .card-body { font-size: 14px; }
@media (max-width: 1180px) { .flow-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .flow-steps { grid-template-columns: 1fr; } }

/* Landing: rotating service buttons — a solid deck of cards.
   Four buttons cycle to the front every 3 seconds (12s loop). All fully
   opaque; the ones behind peek above the front button with a clear gap.
   Hovering the rotator pauses the cycle. */
.service-rotator { position: relative; height: 260px; margin-top: 48px; }
.rotator-btn {
  position: absolute; left: 50%; top: 62%; justify-content: center;
  min-width: 340px; font-size: 17px; padding: 17px 36px;
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 -8px 20px rgba(18,49,79,.35), 0 10px 26px rgba(18,49,79,.3);
  animation: ff-rotator 12s cubic-bezier(.4,0,.2,1) infinite;
  transform: translate(-50%, -50%);
}
.service-rotator:hover .rotator-btn { animation-play-state: paused; }
/* The yellow button is already tonally distinct; skip the brightness steps
   that separate the navy layers (they would turn the yellow neon). */
.rotator-btn.btn-primary { animation-name: ff-rotator-flat; }
.rotator-btn:nth-child(1) { animation-delay: 0s; }
.rotator-btn:nth-child(2) { animation-delay: -9s; }
.rotator-btn:nth-child(3) { animation-delay: -6s; }
.rotator-btn:nth-child(4) { animation-delay: -3s; }
@keyframes ff-rotator {
  /* front, holding */
  0%    { transform: translate(-50%, -50%) translateY(0) scale(1);         z-index: 4; filter: brightness(1); }
  21%   { transform: translate(-50%, -50%) translateY(0) scale(1);         z-index: 4; filter: brightness(1); }
  /* recede to the back of the deck (each layer a lighter shade for separation) */
  25%   { transform: translate(-50%, -50%) translateY(-138px) scale(0.78); z-index: 1; filter: brightness(1.55); }
  46%   { transform: translate(-50%, -50%) translateY(-138px) scale(0.78); z-index: 1; filter: brightness(1.55); }
  /* climb one step per cycle */
  50%   { transform: translate(-50%, -50%) translateY(-96px) scale(0.85);  z-index: 2; filter: brightness(1.35); }
  71%   { transform: translate(-50%, -50%) translateY(-96px) scale(0.85);  z-index: 2; filter: brightness(1.35); }
  75%   { transform: translate(-50%, -50%) translateY(-50px) scale(0.92);  z-index: 3; filter: brightness(1.16); }
  96%   { transform: translate(-50%, -50%) translateY(-50px) scale(0.92);  z-index: 3; filter: brightness(1.16); }
  100%  { transform: translate(-50%, -50%) translateY(0) scale(1);         z-index: 4; filter: brightness(1); }
}
/* Three-button rotator: same rhythm, three deck positions (9s loop) */
.service-rotator-3 { height: 230px; }
.service-rotator-3 .rotator-btn { animation-name: ff-rotator3; animation-duration: 9s; }
.service-rotator-3 .rotator-btn.btn-primary { animation-name: ff-rotator3-flat; animation-duration: 9s; }
.service-rotator-3 .rotator-btn:nth-child(1) { animation-delay: 0s; }
.service-rotator-3 .rotator-btn:nth-child(2) { animation-delay: -6s; }
.service-rotator-3 .rotator-btn:nth-child(3) { animation-delay: -3s; }
@keyframes ff-rotator3 {
  0%    { transform: translate(-50%, -50%) translateY(0) scale(1);        z-index: 3; filter: brightness(1); }
  28%   { transform: translate(-50%, -50%) translateY(0) scale(1);        z-index: 3; filter: brightness(1); }
  33%   { transform: translate(-50%, -50%) translateY(-96px) scale(0.82); z-index: 1; filter: brightness(1.45); }
  61%   { transform: translate(-50%, -50%) translateY(-96px) scale(0.82); z-index: 1; filter: brightness(1.45); }
  66%   { transform: translate(-50%, -50%) translateY(-50px) scale(0.91); z-index: 2; filter: brightness(1.2); }
  94%   { transform: translate(-50%, -50%) translateY(-50px) scale(0.91); z-index: 2; filter: brightness(1.2); }
  100%  { transform: translate(-50%, -50%) translateY(0) scale(1);        z-index: 3; filter: brightness(1); }
}
@keyframes ff-rotator3-flat {
  0%    { transform: translate(-50%, -50%) translateY(0) scale(1);        z-index: 3; }
  28%   { transform: translate(-50%, -50%) translateY(0) scale(1);        z-index: 3; }
  33%   { transform: translate(-50%, -50%) translateY(-96px) scale(0.82); z-index: 1; }
  61%   { transform: translate(-50%, -50%) translateY(-96px) scale(0.82); z-index: 1; }
  66%   { transform: translate(-50%, -50%) translateY(-50px) scale(0.91); z-index: 2; }
  94%   { transform: translate(-50%, -50%) translateY(-50px) scale(0.91); z-index: 2; }
  100%  { transform: translate(-50%, -50%) translateY(0) scale(1);        z-index: 3; }
}
@keyframes ff-rotator-flat {
  0%    { transform: translate(-50%, -50%) translateY(0) scale(1);         z-index: 4; }
  21%   { transform: translate(-50%, -50%) translateY(0) scale(1);         z-index: 4; }
  25%   { transform: translate(-50%, -50%) translateY(-138px) scale(0.78); z-index: 1; }
  46%   { transform: translate(-50%, -50%) translateY(-138px) scale(0.78); z-index: 1; }
  50%   { transform: translate(-50%, -50%) translateY(-96px) scale(0.85);  z-index: 2; }
  71%   { transform: translate(-50%, -50%) translateY(-96px) scale(0.85);  z-index: 2; }
  75%   { transform: translate(-50%, -50%) translateY(-50px) scale(0.92);  z-index: 3; }
  96%   { transform: translate(-50%, -50%) translateY(-50px) scale(0.92);  z-index: 3; }
  100%  { transform: translate(-50%, -50%) translateY(0) scale(1);         z-index: 4; }
}
@media (prefers-reduced-motion: reduce) {
  .service-rotator, .service-rotator-3 { height: auto; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
  .rotator-btn, .service-rotator-3 .rotator-btn, .service-rotator-3 .rotator-btn.btn-primary { position: static; animation: none; transform: none; opacity: 1; filter: none; }
}
@media (max-width: 640px) {
  .service-rotator, .service-rotator-3 { height: auto; display: flex; flex-direction: column; gap: 12px; align-items: center; }
  .rotator-btn, .service-rotator-3 .rotator-btn, .service-rotator-3 .rotator-btn.btn-primary { position: static; animation: none; transform: none; opacity: 1; filter: none; width: 100%; max-width: 320px; min-width: 0; }
}

/* Scroll-to-top control */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: #ffffff; border: 1px solid var(--color-border); color: var(--ff-teal-dark);
  box-shadow: var(--shadow-card-hover);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.to-top:hover { background: var(--color-bg-alt); }
.to-top[hidden] { display: none; }

/* Contact: map box */
.map-box { border-radius: 14px; overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-card); }
.map-box iframe { display: block; width: 100%; height: 300px; border: 0; }
.map-placeholder {
  height: 300px; background: var(--color-bg-alt);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px;
}
.map-placeholder .placeholder-pill { margin-top: 0; }

/* ---- Fileforce 360 stack (light-theme rebuild of the client graphic) ---- */
.stack-360 { display: flex; flex-direction: column; gap: 10px; }
.stack-group { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.stack-group-label {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ff-teal-dark); padding: 14px 0 0; position: sticky; top: 90px;
}
.stack-group-areas { display: flex; flex-direction: column; gap: 12px; }
.stack-area { flex-direction: row; align-items: center; gap: 18px; padding: 22px 26px; }
.stack-num {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px;
  background: var(--ff-teal-soft); color: var(--ff-teal-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 16px;
}
.stack-num svg { stroke: var(--ff-teal-dark); transition: transform .35s cubic-bezier(.22,1,.36,1); }
.stack-area:hover .stack-num svg { transform: scale(1.18) rotate(-6deg); }
.stack-area .card-title { margin-bottom: 2px; }
.stack-area-text { flex: 1; min-width: 0; }
.stack-arrow { flex: none; }
.stack-connector { display: flex; justify-content: center; padding: 2px 0; margin-left: 224px; }
@media (max-width: 900px) {
  .stack-group { grid-template-columns: 1fr; gap: 10px; }
  .stack-group-label { position: static; padding-top: 4px; }
  .stack-connector { margin-left: 0; }
}

/* Product/section logo slot used across solution pages */
.section-logo { height: 48px; display: flex; align-items: center; margin-bottom: 16px; }
.section-logo img { max-height: 40px; width: auto; max-width: 220px; }

/* Lazy video: poster + play overlay, video element only gets a src on click */
.video-poster { position: relative; cursor: pointer; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-img); }
.video-poster img { width: 100%; height: auto; display: block; }
.video-poster .video-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(18,49,79,.25); transition: background .2s ease;
}
.video-poster:hover .video-play { background: rgba(18,49,79,.4); }
.video-play-btn {
  width: 72px; height: 72px; border-radius: 50%; background: #ffffff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-card-hover);
}

/* ---- Landing: 7-area stack carousel (client request, 1 Sept) ---- */
.stack-carousel-wrap { position: relative; }
.stack-carousel {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 4px 4px 18px; margin: 0 -4px;
  scrollbar-width: none;
  /* snap rest position leaves a 28px edge of the previous card visible */
  scroll-padding-left: 52px;
}
.stack-carousel::-webkit-scrollbar { display: none; }
.stack-slide {
  /* five full cards plus a 28px peek of one more on each side */
  flex: 0 0 calc(20% - 40px); min-width: 0; scroll-snap-align: start;
  padding: 26px 22px;
}
.stack-slide .card-body { font-size: 14px; }
.stack-slide .card-header { align-items: flex-start; }
.stack-slide .arrow-link { margin-top: auto; padding-top: 12px; }
.stack-carousel-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.carousel-arrow {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: #ffffff; border: 1px solid var(--color-border); color: var(--ff-teal-dark);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card); transition: background .2s ease;
}
.carousel-arrow:hover { background: var(--ff-teal-soft); }
.carousel-arrow:disabled { opacity: .35; cursor: default; }
.carousel-arrow:focus-visible { outline: 2px solid var(--ff-teal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .stack-carousel { scroll-behavior: auto; } }

/* Homepage hero: muted autoplaying YouTube embed. Frame matches the video's own
   16:9 format with no cropping; control bar and fullscreen button are hidden but
   clicking the video still pauses/resumes it. */
.hero-video { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--color-deep); }
.hero-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Product logo used as the hero heading (home + digital) */
.hero-logo-img { height: 88px; width: auto; display: block; align-self: flex-start; }

/* Digital hero: IDC stat spanning the media frame width, award badge below right */
.hero-proof-row { display: flex; flex-direction: column; align-items: flex-start; margin-top: 24px; }
.hero-proof-row img { align-self: flex-end; }

/* Capability flip cards: the detail panel slides up over the card on hover/focus */
.flip-card { position: relative; cursor: default; overflow: hidden; }
.flip-back {
  position: absolute; inset: 0; padding: 36px 32px;
  background: var(--color-surface); border-radius: inherit;
  display: flex; flex-direction: column; justify-content: center;
  transform: translateY(103%);
  transition: transform 320ms cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.flip-card:hover .flip-back, .flip-card:focus-visible .flip-back { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .flip-back { transition: none; } }

/* Navy platform banner at the end of the ECM section */
.platform-banner {
  margin-top: 48px; background: var(--color-deep); border-radius: var(--radius-lg);
  padding: 40px 44px; display: flex; gap: 40px; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
@media (max-width: 820px) { .platform-banner { padding: 28px 24px; } }

/* ---- Mobile pass (iPhone 16 / 16 Pro Max: 393px and 430px) ----
   Tighter vertical rhythm, full-width stacked CTAs, one-card carousel
   view with a clean peek, centred proof badge. Structure only; the
   design system's colours, type and radii are untouched. */
@media (max-width: 640px) {
  /* rhythm: desktop bands read as dead air on a phone */
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 52px; }
  .section-head-left { margin-bottom: 28px; }
  .stats-band { padding: 52px 0; }
  .stats-band h2 { margin-bottom: 36px; }

  /* card stacks close ranks: desktop 24px gutters between stacked
     cards read as separate islands on a phone */
  [class*="grid-"], .ind-grid, .flow-steps { gap: 14px; }
  .product-row { gap: 14px; }

  /* stacked CTAs align as one neat column instead of ragged widths */
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .cta-row .arrow-link { align-self: flex-start; }

  /* stack carousel: one card at a time with a clean peek of the next */
  .stack-slide { flex: 0 0 82%; min-width: 0; }
  .stack-carousel { scroll-padding-left: 4px; }
  .stack-carousel-nav { justify-content: center; }

  /* proof badge centres rather than floating right */
  .hero-proof-row img { align-self: center; }

  /* solution pill switch: comfortable single-line scroll */
  .pill-switch { justify-content: flex-start; gap: 4px; }
  .pill-switch a { white-space: nowrap; }

  /* equal breathing room inside cards on narrow screens */
  .card { padding: 28px 24px; }
  .flip-back { padding: 28px 24px; }

  /* type scale: desktop clamp floors read as shouting at 393px */
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .hero-sub { font-size: 15.5px; }
  .card-title { font-size: 18px; }
  .hero-logo-img { height: 56px; }
  .product-h1 { font-size: 34px; white-space: normal; }
  .product-sub { font-size: 22px; }

  /* heroes keep one rhythm on the phone regardless of per-page inline
     desktop padding tweaks */
  .hero { padding: 40px 0 52px !important; }

  /* hero chips: tighter pills so the trio reads as one group */
  .hero .chip-row { margin: 14px 0 20px !important; gap: 8px; }
  .chip { padding: 7px 12px; font-size: 12.5px; }

  /* digital hero caption: text gets the full width, medallion tucks
     under it instead of squeezing the paragraph into a sliver */
  .hero-proof-row { flex-direction: column !important; align-items: flex-start !important; gap: 0 !important; }
  .hero-proof-row > img { height: 88px !important; align-self: flex-end; margin-top: 10px; }

  /* 360 stack rows: compact chips and padding */
  .stack-area { padding: 18px 16px; gap: 14px; }
  .stack-group { gap: 6px; }

  /* ---- touch ergonomics (mobile-first spec: 48px primary targets, ----
     ---- 44px minimum, 16px form text so iOS never zooms on focus) ---- */
  .btn { min-height: 48px; }
  .menu-toggle { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
  .carousel-arrow { width: 48px; height: 48px; }
  .ind-more { min-height: 48px; }
  .arrow-link, .product-card-links .arrow-link { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer a[href^="tel:"], .site-footer a[href^="mailto:"],
  main a[href^="tel:"], main a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 44px; }
  input, select, textarea { font-size: 16px; }
  .input { min-height: 48px; }
  .brand { display: inline-flex; align-items: center; min-height: 44px; }
  .flow-step .card-body a { display: inline-block; padding: 5px 0; }

  /* stretch-fit images: inline desktop min-heights (440/380/320px) force
     tower-tall crops once columns stack; cap them at a 4:3-ish frame */
  .img-fill { min-height: 240px !important; max-height: 340px; }

  /* industry boxes: smaller icon tile, tighter padding */
  .card:has(.industry-header) { padding: 24px 20px; }
  .industry-header { gap: 16px; }
  .industry-icon { flex: 0 0 64px; min-height: 64px; width: 64px; }

  /* navy ECM banner hugs its content */
  .platform-banner { padding: 26px 22px; gap: 22px; }
}

/* Small phones (iPhone SE tier): the one-line hero promise may wrap */
@media (max-width: 375px) {
  .h1-teal { white-space: normal !important; font-size: 24px !important; }
}

/* About case studies: three-across variant of the expandable industry grid.
   Cards stretch to equal heights: smaller type, a reserved two-line title
   slot and a bottom-pinned Read More keep all six boxes the same size. */
.ind-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.ind-grid-3 .ind-box { align-self: stretch; display: flex; flex-direction: column; padding: 28px; }
.ind-grid-3 .card-title { font-size: 16px; line-height: 1.4; min-height: calc(3 * 1.4em); margin-bottom: 8px; }
.ind-grid-3 .ind-summary { font-size: 14px; min-height: calc(2 * 1.55em); }
.ind-grid-3 .ind-panel-inner .card-body { font-size: 14px; }
.ind-grid-3 .ind-more { margin-top: auto; padding-top: 14px; }
/* labelled blocks inside the expanded case-study panel */
.case-label {
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ff-teal-dark); margin: 14px 0 6px;
}
.ind-panel-inner .case-label:first-child { margin-top: 6px; }
/* the summary is the opening of the verbatim copy, so it unclamps while open */
.ind-box:has(.ind-more[aria-expanded="true"]) .ind-summary { display: block; -webkit-line-clamp: unset; overflow: visible; }
@media (max-width: 1024px) { .ind-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .ind-grid-3 { grid-template-columns: 1fr; } }

/* Stack carousel card header: compact number tag beside the kicker,
   so the title gets the full card width */
.stack-slide-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.stack-num-sm {
  flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 7px;
  background: var(--ff-teal-soft); color: var(--ff-teal-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 12px;
}
.stack-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ff-teal-dark);
}
