/* V50: Our Work editorial cleanup. Scoped entirely to the Work page.
   Keeps V49 project imagery, filters, links, case studies, nav and JS intact. */
body.fcw36-work-body { --fcw50-ink:#082039; --fcw50-blue:#0789ea; --fcw50-electric:#32b8ff; }

/* Replace redundant pill archive header with a simple editorial line. */
body.fcw36-work-body .fcw50-work-kicker {
  color:#a4e4ff; opacity:1; letter-spacing:.18em; font-weight:900;
  font-size:clamp(.69rem,.85vw,.82rem); margin:0 0 22px;
}
body.fcw36-work-body .fcw50-work-kicker::before {
  width:42px; background:#27b8ff; height:3px; box-shadow:0 0 15px rgba(52,178,255,.38);
}

/* The featured clients deserve a polished light editorial background. */
body.fcw36-work-body .v24-featured-clients {
  position:relative; isolation:isolate; overflow:hidden;
  padding:clamp(60px,6.7vw,105px) 0 clamp(68px,6vw,102px);
  background:linear-gradient(140deg,#e8f5ff 0%,#f5faff 48%,#e6f2fc 100%);
  border-top:1px solid #c6e1f6; border-bottom:1px solid #bedbee; color:var(--fcw50-ink);
}
body.fcw36-work-body .v24-featured-clients::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(circle at 97% 3%,rgba(15,137,235,.14),transparent 33%),
             linear-gradient(90deg,rgba(6,110,206,.035) 1px,transparent 1px),
             linear-gradient(rgba(6,110,206,.035) 1px,transparent 1px);
  background-size:auto,52px 52px,52px 52px;
}
body.fcw36-work-body .v24-featured-clients .wrap {position:relative;}
body.fcw36-work-body .v24-section-head { align-items:center; margin-bottom:34px; }
body.fcw36-work-body .v24-featured-clients .v24-overline {
  color:#0671c0; margin-bottom:14px; font-weight:900; font-size:11px; letter-spacing:.18em;
}
body.fcw36-work-body .v24-featured-clients .v24-section-head h2 {
  font-family:'Barlow Condensed',Impact,'Arial Narrow',sans-serif;
  font-size:clamp(3.5rem,6vw,6.8rem); line-height:.85; color:#0a2741;
  font-weight:900; letter-spacing:-.03em; text-transform:uppercase; text-wrap:balance;
}
body.fcw36-work-body .v24-featured-clients .v24-section-head h2 em {
  font-style:normal; color:#087fd4; -webkit-text-stroke:0;
}
body.fcw36-work-body .v24-featured-clients .v24-section-head>p {
  color:#395d79; max-width:405px; font-size:15px; line-height:1.65; font-weight:500;
}
body.fcw36-work-body .v24-clients-grid{gap:18px;align-items:stretch;}
body.fcw36-work-body .v24-client-card{
  display:flex; flex-direction:column; overflow:hidden; border-radius:19px;
  background:#fff; border:1px solid #c5dff1; color:#0b2945;
  box-shadow:0 15px 35px rgba(20,74,115,.11);
  transition:transform .23s ease,box-shadow .23s ease,border-color .23s ease;
}
body.fcw36-work-body .v24-client-card:hover,
body.fcw36-work-body .v24-client-card:focus-visible {
  transform:translateY(-5px); border-color:#51b5f5; box-shadow:0 24px 40px rgba(13,82,147,.2);
}
body.fcw36-work-body .v24-client-image {height:210px; position:relative; background:#d4e6f3;}
body.fcw36-work-body .v24-client-image::after {
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,transparent 70%,rgba(4,35,62,.12));
}
body.fcw36-work-body .v24-client-image img {
  filter:saturate(1.11) contrast(1.055); object-fit:cover;
}
body.fcw36-work-body .v24-client-body {
  display:flex; flex-direction:column; flex:1; gap:0; padding:22px 21px 24px;
}
body.fcw36-work-body .v24-client-body>span{
  color:#007cce;font-size:10px;font-weight:900;letter-spacing:.1em;line-height:1.5;
  margin-bottom:12px;
}
body.fcw36-work-body .v24-client-body h3 {
  font-size:clamp(19px,1.65vw,25px); line-height:1.14; letter-spacing:-.03em;
  color:#0a263e; font-weight:900; margin:0 0 12px;
}
body.fcw36-work-body .v24-client-body p {
  font-size:13px;line-height:1.65;color:#4d6579;min-height:0; margin:0;
}
body.fcw36-work-body .v24-client-body b {
  display:inline-flex;align-items:center;align-self:flex-start;
  margin-top:auto; padding-top:24px; font-size:11px; font-weight:900;
  letter-spacing:.035em; color:#027ccc;
}

/* The library has its own clear dark/bright identity, not a low-contrast half-light section. */
body.fcw36-work-body .fcw29-gallery-section.fcw34-gallery-shell {
  position:relative; isolation:isolate; overflow:hidden;
  background:linear-gradient(150deg,#061626 0%,#08253c 53%,#071928 100%);
  color:#ecf7ff; border-top:1px solid rgba(102,206,255,.25);
  padding:clamp(68px,7vw,106px) 0 105px;
}
body.fcw36-work-body .fcw29-gallery-section.fcw34-gallery-shell::before {
  content:"";inset:0;position:absolute;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse at 90% 7%,rgba(24,167,239,.22),transparent 42%),
    linear-gradient(90deg,rgba(93,177,242,.045) 1px,transparent 1px),
    linear-gradient(rgba(93,177,242,.045) 1px,transparent 1px);
  background-size:auto,58px 58px,58px 58px;
}
body.fcw36-work-body #portfolio-gallery {scroll-margin-top:35px;}
body.fcw36-work-body .v24-gallery-heading{
  display:flex; align-items:end; justify-content:space-between; gap:28px;
  margin:0 0 26px; color:#f3faff;
}
body.fcw36-work-body .v24-gallery-heading .v24-overline {
  color:#73d3ff; font-size:11px; letter-spacing:.19em; margin-bottom:13px;
}
body.fcw36-work-body .v24-gallery-heading h2 {
  font-family:'Barlow Condensed',Impact,'Arial Narrow',sans-serif;
  font-size:clamp(3.25rem,5.7vw,6.15rem); line-height:.94;
  font-weight:900; text-transform:uppercase; letter-spacing:-.035em;
  color:#fff; text-wrap:balance; margin:0 0 13px;
}
body.fcw36-work-body .v24-gallery-heading h2 em{font-style:normal;color:#3dbbff;}
body.fcw36-work-body .v24-gallery-heading p {
  color:#c7e4f4; max-width:660px; font-size:15px; font-weight:500; line-height:1.65; margin:0;
}
body.fcw36-work-body .v24-gallery-count {
  color:#e0f6ff; background:#0a3551; border:1px solid #4389b4;
  border-radius:12px; letter-spacing:.035em; font-weight:800;
  font-size:12px; white-space:normal; padding:12px 16px; text-align:center;
}
body.fcw36-work-body .v24-controls{
  display:grid;grid-template-columns:1fr 1fr;gap:17px;
  position:relative; z-index:1; padding:22px;
  background:linear-gradient(145deg,rgba(18,64,93,.94),rgba(7,37,60,.95));
  border:1px solid #2e6687;border-radius:19px;box-shadow:0 18px 32px rgba(0,0,0,.16);
  margin:22px 0 19px;
}
body.fcw36-work-body .v24-controls label{margin:0; min-width:0;}
body.fcw36-work-body .v24-controls label span {
  color:#b7e8ff;font-size:11px;letter-spacing:.09em;font-weight:900;margin-bottom:11px;
}
body.fcw36-work-body .v24-controls input,
body.fcw36-work-body .v24-controls select {
  border:1px solid #5688a8; background:#071d2f; color:#f5fbff;
  height:55px;border-radius:10px;padding:0 17px;font-size:15px;outline-offset:3px;
}
body.fcw36-work-body .v24-controls input::placeholder{color:#a8cadd;opacity:1;}
body.fcw36-work-body .v24-controls input:focus-visible,
body.fcw36-work-body .v24-controls select:focus-visible{outline:3px solid #58d0ff;border-color:#b3eaff;}
body.fcw36-work-body .v24-filters.v25-filter-grid{gap:12px;margin:0 0 22px!important;}
body.v15-body.fcw36-work-body .v24-filters.v25-filter-grid button{
  color:#edf9ff;background:#0d3049;border:1px solid #497695;
  border-radius:12px; min-height:57px; padding:12px 9px;
  font-size:13px;font-weight:850;transition:transform .22s ease,border-color .22s ease,background .22s ease;
}
body.v15-body.fcw36-work-body .v24-filters.v25-filter-grid button:hover {
  color:#fff; border-color:#8cd8ff; background:#155173;
}
body.v15-body.fcw36-work-body .v24-filters.v25-filter-grid button.active,
body.v15-body.fcw36-work-body .v24-filters.v25-filter-grid button[aria-pressed="true"] {
  color:#042338;background:#37baff;border-color:#37baff;box-shadow:0 8px 24px rgba(0,166,239,.22);
}
body.fcw36-work-body .v24-gallery-intro{
  display:block; width:fit-content; max-width:100%; margin:8px 0 22px; padding:9px 13px;
  color:#c4e4f5; background:rgba(73,156,212,.08); border:1px solid rgba(96,173,218,.23);
  border-radius:10px; font-size:12px;
}
body.fcw36-work-body .v24-gallery-intro:empty{display:none;}
body.fcw36-work-body .fcw29-gallery-section .v24-photo-info{background:#0e2d45;}
body.fcw36-work-body .fcw29-gallery-section .v24-photo-info strong{color:#fff;}

@media(max-width:1050px){
  body.fcw36-work-body .v24-client-image{height:205px;}
  body.fcw36-work-body .v24-client-body{padding:19px;}
}
@media(max-width:820px){
  body.fcw36-work-body .v24-section-head{display:block;margin-bottom:25px;}
  body.fcw36-work-body .v24-featured-clients .v24-section-head>p{margin:17px 0 0;max-width:580px;}
  body.fcw36-work-body .v24-gallery-heading{display:block;}
  body.fcw36-work-body .v24-gallery-count{display:inline-flex; margin-top:20px;}
}
@media(max-width:600px){
  body.fcw36-work-body .v24-featured-clients{padding:65px 0 70px;}
  body.fcw36-work-body .v24-featured-clients .v24-section-head h2{font-size:clamp(2.4rem,9.65vw,4.3rem);letter-spacing:-.043em;}
  body.fcw36-work-body .v24-clients-grid{grid-template-columns:1fr;gap:16px;}
  body.fcw36-work-body .v24-client-image{height:225px;}
  body.fcw36-work-body .v24-client-body{padding:20px;}
  body.fcw36-work-body .v24-client-body b{margin-top:2px;padding-top:16px;}
  body.fcw36-work-body .fcw29-gallery-section.fcw34-gallery-shell{padding:62px 0 75px;}
  body.fcw36-work-body .v24-gallery-heading h2{font-size:clamp(2.45rem,9.9vw,4rem);letter-spacing:-.05em;}
  body.fcw36-work-body .v24-gallery-heading h2 em{white-space:nowrap;}
  body.fcw36-work-body .v24-gallery-heading p{font-size:14px;}
  body.fcw36-work-body .v24-controls{grid-template-columns:1fr;padding:16px;gap:16px;}
  body.fcw36-work-body .v24-filters.v25-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
  body.v15-body.fcw36-work-body .v24-filters.v25-filter-grid button{min-height:54px;font-size:12px;}
  body.fcw36-work-body .v24-controls input,body.fcw36-work-body .v24-controls select{height:52px;}
}
@media(prefers-reduced-motion:reduce){
  body.fcw36-work-body .v24-client-card,
  body.v15-body.fcw36-work-body .v24-filters.v25-filter-grid button{transition:none;}
}
