:root {
  --ink: #08090b;
  --panel: #111317;
  --panel-2: #191c21;
  --paper: #f3f2ee;
  --muted: #969ba4;
  --line: rgba(255,255,255,.13);
  --accent: #d8ff3e;
  --display: "Barlow Condensed", Impact, sans-serif;
  --body: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--ink); }
.site-nav { background: rgba(8,9,11,.84); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
#contact { scroll-margin-top: 100px; }
.brand { font-family: var(--display); font-weight: 800; letter-spacing: .045em; font-size: 1.35rem; line-height: 1; }
.brand span { color: var(--accent); }
.nav-link-custom { color: #d1d2d4; font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; transition: color .2s; }
.nav-link-custom:hover { color: var(--accent); }
.nav-cta { border: 1px solid var(--accent); color: var(--accent); padding: .72rem 1rem; font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; transition: background .2s,color .2s; }
.nav-cta:hover { background: var(--accent); color: var(--ink); }
.hero { min-height: min(740px, 92svh); display: flex; align-items: end; position: relative; overflow: hidden; isolation: isolate; padding: 130px 0 42px; }
.hero-art { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(90deg, rgba(8,9,11,.98) 0%, rgba(8,9,11,.79) 43%, rgba(8,9,11,.15) 100%),
  linear-gradient(0deg, var(--ink) 0%, transparent 38%),
  radial-gradient(ellipse at 76% 38%, #46505b 0%, #1b2027 24%, #0c0e12 61%); }
/* Replace the abstract hero background with a still from your showreel when you choose the final visual direction. */
.hero-art::after { content: ""; position: absolute; inset: 0; opacity: .18; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E"); mix-blend-mode: screen; pointer-events: none; }
.eyebrow { display: flex; align-items: center; gap: .7rem; color: var(--accent); font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--accent); }
.hero h1 { max-width: 950px; margin: 1.15rem 0 1.3rem; font: 800 clamp(4.4rem, 11vw, 10.2rem)/.79 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 1.5px rgba(243,242,238,.75); }
.hero-copy { max-width: 470px; color: #c1c4ca; font-size: .98rem; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem; margin-top: 2rem; }
.button-primary { display: inline-flex; align-items: center; justify-content: center; gap: .9rem; padding: 1rem 1.2rem; background: var(--accent); color: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--accent); transition: transform .2s, background .2s; }
.button-primary:hover { transform: translateY(-2px); background: #e5ff80; color: var(--ink); }
.text-link { color: var(--paper); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.45); padding-bottom: .45rem; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.hero-index { position: absolute; right: 4vw; bottom: 92px; writing-mode: vertical-rl; color: #737983; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.hero-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3.4rem; padding-top: 1rem; border-top: 1px solid var(--line); color: #a5a9b0; font-size: .65rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.hero-bottom strong { color: var(--paper); font-weight: 700; }
.section { padding: 105px 0; }
.section-kicker { color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.section-title { margin: .7rem 0 0; font: 800 clamp(3.1rem, 7vw, 6.3rem)/.88 var(--display); letter-spacing: -.015em; text-transform: uppercase; }
.section-intro { max-width: 410px; color: var(--muted); font-size: .9rem; line-height: 1.8; }
.work-section { background: #0c0d10; padding-top: 58px; }
.work-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.6rem; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 2rem; }
.filter-btn { padding: .62rem .9rem; background: transparent; border: 1px solid #34373d; color: #a9adb4; font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transition: all .2s; }
.filter-btn:hover, .filter-btn.active { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.work-card { display: block; width: 100%; text-align: left; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.work-card[hidden] { display: none !important; }
.work-thumb { aspect-ratio: 3 / 4; position: relative; overflow: hidden; background: linear-gradient(135deg, #272d35, #111317 70%); border: 1px solid rgba(255,255,255,.08); }
.work-thumb::before { content: ""; position: absolute; inset: 0; background-image: var(--thumb, linear-gradient(135deg,#343d47,#14161a)); background-position: center; background-size: cover; background-repeat: no-repeat; transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .3s; }
.work-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 65%); }
.work-card:hover .work-thumb::before { transform: scale(1.055); filter: brightness(1.2); }
.thumb-mark { overflow-wrap: anywhere; max-width: calc(100% - 2rem); position: absolute; z-index: 1; left: 1rem; top: 1rem; font: 800 clamp(1.15rem, 2.4vw, 2.1rem)/.95 var(--display); letter-spacing: -.02em; text-transform: uppercase; color: rgba(255,255,255,.86); }
.thumb-tag { position: absolute; z-index: 1; left: 1rem; bottom: .9rem; font-size: .58rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.play-button { position: absolute; z-index: 2; top: 50%; left: 50%; width: 52px; height: 52px; display: grid; place-items: center; transform: translate(-50%,-50%) scale(.92); border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(8,9,11,.24); backdrop-filter: blur(5px); transition: all .25s; }
.play-button svg { margin-left: 3px; }
.work-card:hover .play-button { transform: translate(-50%,-50%) scale(1); background: var(--accent); color: var(--ink); border-color: var(--accent); }
.work-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: start; padding: 1rem 0 1.7rem; }
.work-title { font: 700 1.45rem/1 var(--display); text-transform: uppercase; letter-spacing: .015em; }
.work-type { color: var(--muted); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; margin-top: .5rem; }
.work-year { color: #7e838b; font-size: .68rem; }
.about-section { background: var(--paper); color: var(--ink); }
.about-section .section-kicker { color: #5b6d00; }
.about-section .section-intro { color: #555960; }
.about-big { font: 800 clamp(2.7rem, 6vw, 5.5rem)/.92 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.about-big span { color: #7d9200; }
.about-copy { max-width: 570px; color: #4e5258; line-height: 1.9; font-size: .94rem; }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 2.8rem; padding-top: 1.5rem; border-top: 1px solid rgba(8,9,11,.2); }
.stat-number { font: 800 clamp(2.4rem, 5vw, 4rem)/.9 var(--display); }
.stat-label { margin-top: .7rem; color: #656970; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.services-section { border-bottom: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 1.5rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.service-num { color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .12em; }
.service-name { font: 700 clamp(1.8rem, 4vw, 3.1rem)/1 var(--display); text-transform: uppercase; }
.service-note { color: var(--muted); font-size: .78rem; text-align: right; }
.contact-section { padding: 110px 0 70px; background: var(--accent); color: var(--ink); }
.contact-section .section-kicker { color: #455200; }
.contact-title { font: 900 clamp(4.5rem, 13vw, 12rem)/.76 var(--display); letter-spacing: -.03em; text-transform: uppercase; }
.contact-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; align-items: end; margin-top: 4rem; padding-top: 1.3rem; border-top: 1px solid rgba(8,9,11,.35); }
.contact-email { font-size: clamp(1rem, 2.2vw, 1.5rem); font-weight: 700; border-bottom: 1px solid rgba(8,9,11,.6); padding-bottom: .3rem; }
.footer { padding: 1.5rem 0; background: var(--ink); color: #777d86; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.modal-content { background: #08090b; border: 1px solid #2a2d33; border-radius: 0; color: var(--paper); }
.modal-header { border-bottom: 1px solid var(--line); }
.modal-title { font: 700 1.7rem var(--display); text-transform: uppercase; }
#videoModalCaption { color: #aeb3ba !important; font-size: .77rem; letter-spacing: .04em; }
.btn-close { filter: invert(1); opacity: .8; }
.video-frame { width: 100%; height: min(72vh, 740px); border: 0; display: block; background: #111317; }
.video-loading { min-height: min(72vh, 740px); display:flex; align-items:center; justify-content:center; color:#9ca3ad; font-size:.85rem; }
.vimeo-fallback { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.75rem 1.6rem; border-top:1px solid var(--line); color:#9ca3ad; font-size:.75rem; flex-wrap:wrap; }
.vimeo-fallback a { color:var(--accent); font-weight:700; text-decoration:none; }
.vimeo-fallback a:hover { text-decoration:underline; }
.project-details { padding: 1.4rem 1.6rem 1.1rem; border-top: 1px solid var(--line); }
.project-format-line { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.project-fact-label { display: block; margin-bottom: .5rem; color: #8e949c; font-size: .6rem; letter-spacing: .17em; text-transform: uppercase; font-weight: 800; }
.project-fact-value { color: var(--paper); font-size: .84rem; line-height: 1.5; }
.project-story { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.project-story summary { cursor: pointer; color: var(--accent); font-size: .75rem; text-transform: uppercase; font-weight: 800; letter-spacing: .12em; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; background: rgba(216,255,62,.08); border: 1px solid rgba(216,255,62,.55); transition: background .2s, box-shadow .2s; }
.project-story summary::-webkit-details-marker { display: none; }
.project-story summary:hover, .project-story summary:focus-visible { background: rgba(216,255,62,.16); box-shadow: 0 0 22px rgba(216,255,62,.12); }
.project-story[open] summary .story-arrow { transform: rotate(45deg); }
.project-story summary .story-arrow { transition: transform .2s; display: inline-block; flex: 0 0 auto; }
.project-story.story-spotlight summary { animation: story-arrival 1.6s ease-out .25s 1; }
@keyframes story-arrival { 0%,100% { box-shadow: 0 0 0 rgba(216,255,62,0); } 35% { box-shadow: 0 0 24px rgba(216,255,62,.38), inset 0 0 16px rgba(216,255,62,.08); } }
@media (prefers-reduced-motion: reduce) { .project-story.story-spotlight summary { animation: none; } }
.project-story p { margin: 1rem 0 0; max-width: 690px; color: #c2c6cc; line-height: 1.8; font-size: .9rem; }
@media (max-width: 575.98px) { .project-details { padding: 1.1rem; } }
.modal-caption { padding: .8rem 1rem 1rem; color: var(--muted); font-size: .78rem; }
@media (max-width: 767.98px) {
  .hero { min-height: 660px; padding: 115px 0 35px; }
  .hero-art { background: linear-gradient(90deg,rgba(8,9,11,.94),rgba(8,9,11,.5)),linear-gradient(0deg,var(--ink),transparent 60%),radial-gradient(ellipse at 75% 28%,#414a54,#101216 65%); }
  .hero h1 { font-size: clamp(4rem, 19vw, 7rem); }
  .hero-index { display: none; }
  .hero-bottom { margin-top: 2.5rem; }
  .section { padding: 75px 0; }
  .work-section { padding-top: 42px; }
  .work-head { display: block; }
  .work-head .section-intro { margin-top: 1.5rem; }
  .service-row { grid-template-columns: 35px 1fr; gap: .8rem; }
  .service-note { grid-column: 2; text-align: left; margin-top: -.3rem; }
  .contact-section { padding: 85px 0 55px; }
  .contact-title { font-size: clamp(4.2rem, 19vw, 8rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Version 17: sections 02–04 only. Hero and work section intentionally untouched. */
.about-section { background: #f3f2ee; }
.about-section .section-title { color: #08090b; }
.client-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: rgba(8,9,11,.17); border: 1px solid rgba(8,9,11,.17); }
.client-grid > div { display: flex; justify-content: center; align-items: center; min-height: 112px; padding: 1.25rem; text-align: center; background: #f3f2ee; font: 800 clamp(1.05rem,2.1vw,1.65rem)/1.05 var(--display); text-transform: uppercase; }
.reach-strip { display: flex; gap: 3.5rem; align-items: center; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid rgba(8,9,11,.2); }
.reach-number { flex: 0 0 auto; font: 800 clamp(3.2rem,7.4vw,7rem)/.85 var(--display); letter-spacing: -.03em; }
.reach-number span { color: #7d9200; }
.reach-copy { max-width: 410px; color: #4e5258; font-size: .9rem; line-height: 1.7; }
.reach-copy strong { display: block; color: #08090b; font-size: 1rem; }
.reach-copy p { margin: .6rem 0; }
.reach-copy small { color: #777b81; }
.services-section .service-row { grid-template-columns: 55px minmax(150px,1fr) minmax(220px,380px); padding: 2.2rem 0; }
.services-section .service-note { text-align: left; line-height: 1.65; font-size: .88rem; }
.story-contact-section { background: #111317; }
.story-accent { color: var(--accent); }
.story-copy { color: #d0d3d8; line-height: 1.9; font-size: 1rem; max-width: 540px; }
.story-footnote { color: #9fa5ae; font-size: .78rem; line-height: 1.7; margin-top: 1.7rem; }
.contact-panel { margin-top: 6rem; padding: 3rem; background: var(--accent); color: var(--ink); display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.contact-panel .section-kicker { color: #455200; }
.contact-panel .contact-title { margin: 1.5rem 0 1rem; font-size: clamp(3.5rem,8vw,8rem); }
.contact-panel p { margin-bottom: 0; max-width: 480px; }
.contact-action { border-top: 1px solid rgba(8,9,11,.4); padding-top: 1rem; min-width: 230px; }
.contact-action span { display: block; font-weight: 800; text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; }
.contact-action small { display: block; margin-top: .6rem; line-height: 1.5; opacity: .75; }
@media (max-width: 767.98px) {
  .client-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .client-grid > div { min-height: 85px; }
  .reach-strip { flex-direction: column; align-items: start; gap: 1.3rem; }
  .reach-number { font-size: clamp(2.5rem,11vw,5rem); }
  .services-section .service-row { grid-template-columns: 35px 1fr; }
  .services-section .service-note { grid-column: 2; }
  .contact-panel { margin-top: 3.5rem; padding: 2rem 1.4rem; flex-direction: column; align-items: start; }
}

/* Version 18 — richer dark treatment for Section 02 only */
.about-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 83% 5%, rgba(216,255,62,.10), transparent 38%),
              linear-gradient(155deg, #181d1b 0%, #0d1013 65%, #161a1b 100%);
  color: #f3f4ef;
}
.about-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(110deg, rgba(255,255,255,.014) 0 1px, transparent 1px 8px);
  opacity: .38;
}
.about-section .container { position: relative; z-index: 1; }
.about-section .section-kicker { color: var(--accent); }
.about-section .section-title { color: #f5f5f1; }
.about-section .about-copy { color: #b3b9b8; }
.about-section .client-grid {
  background: transparent; border: 0; gap: 12px;
}
.about-section .client-grid > div {
  position: relative;
  min-height: 132px; padding: 1.4rem;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.12);
  color: #ecefea;
  letter-spacing: .015em;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.about-section .client-grid > div::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 0;
  height: 2px; background: var(--accent); opacity: 0;
  transition: opacity .2s ease;
}
.about-section .client-grid > div:hover {
  background: rgba(216,255,62,.065);
  border-color: rgba(216,255,62,.5);
  transform: translateY(-2px);
}
.about-section .client-grid > div:hover::after { opacity: 1; }
.about-section .reach-strip {
  border-top: 1px solid rgba(216,255,62,.35);
  margin-top: 4rem; padding-top: 3rem;
}
.about-section .reach-number { color: var(--accent); }
.about-section .reach-number span { color: #f2f4ec; }
.about-section .reach-copy { color: #c2c8c6; }
.about-section .reach-copy strong { color: #f5f5f1; font: 800 clamp(1.8rem, 3.7vw, 3.6rem)/1.02 var(--display); letter-spacing: -.015em; text-transform: uppercase; }
.about-section .reach-copy { max-width: 520px; flex: 1 1 320px; }
.about-section .reach-strip { gap: clamp(2rem, 5vw, 5rem); padding-block: 3.6rem 1.5rem; }
.about-section .reach-copy small { color: #939b99; }
@media (max-width: 767.98px) {
  .about-section .client-grid > div { min-height: 96px; }
}

/* V20: smaller early-work gallery, independent of main gallery filters */
.early-gallery { margin-top: 5.5rem; padding-top: 2.6rem; border-top: 1px solid rgba(255,255,255,.17); }
.early-gallery-intro { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; }
.early-gallery-intro p { color: #aeb4bb; max-width: 450px; font-size: .86rem; line-height: 1.7; margin: 0; }
.early-group-title { margin: 2.8rem 0 1.2rem; color: #eef0ec; font: 800 clamp(1.6rem,3vw,2.4rem)/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.early-row .work-thumb { aspect-ratio: 4 / 3; }
.early-row .thumb-mark { font-size: clamp(1.1rem,2.5vw,2.1rem); }
.early-row .work-title { font-size: 1.35rem; }
.early-row .work-meta { padding-bottom: .4rem; }
.early-row .thumb-tag { font-size: .56rem; }
@media(max-width:767.98px) {
  .early-gallery { margin-top: 3.5rem; }
  .early-gallery-intro { display: block; }
  .early-gallery-intro p { margin-top: 1rem; }
  .early-row .work-thumb { aspect-ratio: 3 / 4; }
}
  
/* Rotating client marks in the hero, self-contained for local viewing */
.hero-logo-stage{position:absolute;right:15%;top:30%;width:min(30vw,400px);height:300px;display:grid;place-items:center;pointer-events:none;z-index:1;filter:drop-shadow(0 0 16px rgba(255,255,255,.07));}
.hero-logo-stage::before{content:"";position:absolute;width:95%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.055),transparent 65%);filter:blur(24px);}
.hero-logo{position:absolute;max-width:88%;max-height:85%;width:auto;height:auto;object-fit:contain;opacity:0;transform:scale(.985);transition:opacity .65s ease-in-out,transform .7s ease-in-out,filter .65s ease-in-out;filter:drop-shadow(0 0 0 transparent);}
.hero-logo.is-active{opacity:1;transform:scale(1);filter:drop-shadow(0 0 11px rgba(255,255,255,.14));}
@media(max-width:1050px){.hero-logo-stage{right:9%;top:25%;width:29vw;height:230px}.hero h1{max-width:72%;font-size:clamp(4.4rem,9vw,9rem)}}
/* On phones the logos share the headline's row: the headline shrinks to make room and the logos fill the space to its right. */
@media(max-width:767.98px){.hero-title-row{display:flex;align-items:stretch;gap:.75rem;margin:1.15rem 0 1.3rem}.hero-title-row h1{flex:0 0 auto;max-width:none;margin:0;font-size:clamp(3rem,15.5vw,5.6rem)}.hero-logo-stage{position:relative;right:auto;top:auto;flex:1 1 0;min-width:0;width:auto;height:auto;opacity:.9}.hero-logo{max-width:100%;max-height:100%}}
@media(prefers-reduced-motion:reduce){.hero-logo{transition:none;transform:none}.hero-logo.is-active{transform:none}}


/* Subtle contrast treatment for readable thumbnail labels. */
.work-thumb::after {
  z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.53) 0%, rgba(0,0,0,.24) 20%, transparent 43%, transparent 60%, rgba(0,0,0,.18) 80%, rgba(0,0,0,.50) 100%);
}
.work-thumb .thumb-mark { z-index: 2; color: rgba(255,255,255,.98); text-shadow: 0 2px 8px rgba(0,0,0,.7), 0 1px 2px rgba(0,0,0,.65); }
.work-thumb .thumb-tag { z-index: 2; text-shadow: 0 1px 5px rgba(0,0,0,.75); }

/* Two-row, multi-select work filters; matches existing portfolio button styling. */
.portfolio-filter-panel .filter-heading { display:block; color:#a9adb4; font-size:.65rem; font-weight:800; letter-spacing:.15em; text-transform:uppercase; margin-bottom:.75rem; }
.portfolio-filter-panel .filter-heading-row { display:flex; justify-content:flex-start; align-items:baseline; gap:1.5rem; }
.portfolio-filter-panel .filters { margin-bottom:1.5rem; }
.portfolio-filter-panel .filters:last-child { margin-bottom:2rem; }
.portfolio-filter-panel .filter-clear { border:0; padding:.3rem 0; background:transparent; color:var(--accent); font-size:.72rem; font-weight:700; cursor:pointer; }
.portfolio-filter-panel .filter-clear:hover { text-decoration:underline; }
.portfolio-filter-panel .filter-clear[hidden] { display:none; }

/* Render embedded thumbnail frames as real images, preserving the hover treatment. */
.work-thumb:has(> .work-thumb-image)::before { display:none !important; }
.work-thumb > .work-thumb-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; display:block; transform:scale(1); transition:transform .45s ease; }
.work-card:hover .work-thumb > .work-thumb-image, .work-card:focus-visible .work-thumb > .work-thumb-image { transform:scale(1.045); }
