/* ═══════════════════════════════════════════════
       THEME TOKENS
    ═══════════════════════════════════════════════ */
    :root {
        --bg: #0b0b0d;
        --bg-alt: #0e0e10;
        --card: #141416;
        --fg: #f0ede8;
        --muted: #a09d98;
        --accent: #c8922a;
        --accent-fg: #0b0b0d;
        --border: rgba(240, 237, 232, 0.08);
        --border-s: rgba(240, 237, 232, 0.15);
        --img-op: 0.72;
    }
    
    [data-theme="light"] {
        --bg: #f5f2ee;
        --bg-alt: #ede9e3;
        --card: #ffffff;
        --fg: #1a1714;
        --muted: #5a5652;
        --accent: #b07820;
        --accent-fg: #ffffff;
        --border: rgba(26, 23, 20, 0.1);
        --border-s: rgba(26, 23, 20, 0.18);
        --img-op: 0.85;
    }
    
    *,
    *::before,
    *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }
    
    html {
        scroll-behavior: smooth;
    }
    
    body {
        background: var(--bg);
        color: var(--fg);
        font-family: 'Barlow', sans-serif;
        transition: background 0.4s, color 0.4s;
    }
    
    /* ═══════════════════════════════════════════════
           INLINE SVG ICON HELPER
        ═══════════════════════════════════════════════ */
    .icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .icon svg {
        width: 1em;
        height: 1em;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    
    /* ═══════════════════════════════════════════════
           TYPOGRAPHY
        ═══════════════════════════════════════════════ */
    .eyebrow {
        font-family: 'DM Mono', monospace;
        font-size: 0.65rem;
        letter-spacing: 0.15em;
        color: var(--accent);
        text-transform: uppercase;
    }
    
    .section-title {
        font-family: 'Barlow Condensed', sans-serif;
        font-weight: 700;
        line-height: 1.0;
        color: var(--fg);
        text-transform: uppercase;
        font-size: clamp(2.5rem, 5vw, 4rem);
    }
    
    .body-text {
        font-family: 'Barlow', sans-serif;
        font-size: 1rem;
        font-weight: 300;
        color: var(--muted);
        line-height: 1.7;
    }
    
    /* ═══════════════════════════════════════════════
           NAV
        ═══════════════════════════════════════════════ */
    #nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        border-bottom: 1px solid transparent;
        transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
    }
    
    #nav.scrolled {
        background: color-mix(in srgb, var(--bg) 90%, transparent);
        backdrop-filter: blur(14px);
        border-color: var(--border);
    }
    
    .nav-inner {
        max-width: 80rem;
        margin: 0 auto;
        padding: 1.25rem 2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .nav-logo {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 1.1rem;
        font-weight: 700;
        letter-spacing: 0.25em;
        text-transform: uppercase;
        color: var(--fg);
        text-decoration: none;
        transition: color 0.3s;
    }
    
    .nav-links {
        display: flex;
        align-items: center;
        gap: 2.5rem;
    }
    
    .nav-link {
        font-family: 'Barlow', sans-serif;
        font-size: 0.7rem;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--fg);
        text-decoration: none;
        transition: color 0.2s;
    }
    
    .nav-link:hover {
        color: var(--muted);
    }
    
    .nav-right {
        display: flex;
        align-items: center;
        gap: 1.25rem;
    }
    
    .nav-meta {
        font-family: 'DM Mono', monospace;
        font-size: 0.65rem;
        letter-spacing: 0.1em;
        color: var(--accent);
    }
    
    .theme-btn {
        width: 36px;
        height: 36px;
        border: 1px solid var(--border);
        background: var(--card);
        color: var(--muted);
        border-radius: 2px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        transition: color 0.2s, border-color 0.2s, background 0.4s;
    }
    
    .theme-btn:hover {
        color: var(--accent);
        border-color: var(--accent);
    }
    
    @media(max-width:768px) {
    
        .nav-links,
        .nav-meta {
            display: none;
        }
    }
    
    /* ═══════════════════════════════════════════════
           HERO
        ═══════════════════════════════════════════════ */
    #hero {
        position: relative;
        min-height: 100vh;
        display: flex;
        /* align-items: flex-end; */
        padding-top: 30px;
        overflow: hidden;
        background: var(--bg);
    }
    
    #hero-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 60%;
        opacity: var(--img-op);
        transition: opacity 0.6s;
    }
    
    #hero-grad {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, var(--bg) 0%, rgba(0, 0, 0, 0.45) 50%, transparent 100%);
        transition: background 0.4s;
    }
    
    #hero-grad2 {
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, var(--bg) 0%, transparent 60%);
        transition: background 0.4s;
    }
    
    .hero-content {
        position: relative;
        max-width: 80rem;
        margin: 10rem auto 0;
        padding: 0 2rem 6rem;
        width: 100%;
    }
    
    .hero-content>div {
        max-width: 56rem;
    }
    
    .hero-h1 {
        font-family: 'Barlow Condensed', sans-serif;
        font-weight: 800;
        line-height: 0.9;
        text-transform: uppercase;
        color: var(--fg);
        font-size: clamp(3.5rem, 9vw, 8rem);
        margin: 1.5rem 0 2rem;
    }
    
    .hero-h1 .accent {
        color: var(--accent);
    }
    
    .hero-sub {
        font-family: 'Barlow', sans-serif;
        font-size: 1rem;
        font-weight: 300;
        color: var(--muted);
        line-height: 1.65;
        max-width: 32rem;
    }
    
    .hero-ctas {
        margin-top: 2.5rem;
        display: flex;
        align-items: center;
        gap: 2rem;
        flex-wrap: wrap;
    }
    
    .btn-primary {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 0.8rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--fg);
        border: 1px solid var(--accent);
        padding: 12px 32px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        transition: background 0.3s, color 0.3s;
    }
    
    .btn-primary:hover {
        background: var(--accent);
        color: var(--accent-fg);
    }
    
    .btn-ghost {
        font-family: 'Barlow', sans-serif;
        font-size: 0.85rem;
        color: var(--muted);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        transition: color 0.2s;
    }
    
    .btn-ghost:hover {
        color: var(--fg);
    }
    
    .scroll-hint {
        position: absolute;
        bottom: 2rem;
        right: 2rem;
        color: var(--muted);
        font-size: 16px;
    }
    
    @keyframes bounce {
    
        0%,
        100% {
            transform: translateY(0);
        }
    
        50% {
            transform: translateY(7px);
        }
    }
    
    .bounce {
        animation: bounce 1.5s ease-in-out infinite;
    }
    
    /* ═══════════════════════════════════════════════
           SECTIONS
        ═══════════════════════════════════════════════ */
    .section-wrap {
        max-width: 80rem;
        margin: 0 auto;
        padding: 8rem 2rem;
        padding-bottom: 0;
    }
    
    .section-head {
        margin-bottom: 5rem;
    }
    
    /* ── Company ── */
    #company {
        background: var(--bg);
    }
    
    .company-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5rem;
        align-items: center;
    }
    
    @media(min-width:1024px) {
        .company-grid {
            grid-template-columns: 1fr 1fr;
        }
    }
    
    .company-quote {
        border-left: 2px solid var(--accent);
        padding-left: 1.5rem;
        margin-top: 2.5rem;
    }
    
    .company-quote p {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 1.2rem;
        font-weight: 600;
        font-style: italic;
        line-height: 1.3;
        color: var(--fg);
    }
    
    .company-img-frame {
        position: relative;
        overflow: hidden;
        aspect-ratio: 6/4;
    }
    
    .company-img-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .company-img-frame::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, var(--bg) 0%, transparent 60%);
        transition: background 0.4s;
    }
    
    .company-badge {
        position: absolute;
        bottom: -24px;
        left: -24px;
        width: 200px;
        padding: 1.5rem;
        background: var(--card);
        border: 1px solid var(--border);
        transition: background 0.4s, border-color 0.4s;
    }
    
    .company-img-wrap {
        position: relative;
    }
    
    /* ── Timeline ── */
    #timeline {
        background: var(--bg-alt);
    }
    
    .tl-line {
        border-left: 1px solid var(--border);
        padding-left: 1px;
    }
    
    .tl-item {
        position: relative;
        padding-left: 3rem;
        padding-bottom: 3rem;
    }
    
    .tl-dot {
        position: absolute;
        top: 5px;
        left: -5px;
        width: 10px;
        height: 10px;
        border: 1px solid var(--accent);
        background: var(--bg-alt);
        cursor: default;
        transition: background 0.25s;
    }
    
    .tl-dot:hover {
        background: var(--accent);
    }
    
    .tl-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    @media(min-width:768px) {
        .tl-row {
            grid-template-columns: 120px 1fr;
            gap: 2.5rem;
        }
    }
    
    .tl-year {
        font-family: 'DM Mono', monospace;
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--accent);
    }
    
    .tl-event {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 1.1rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--fg);
        margin-bottom: 0.25rem;
    }
    
    .tl-detail {
        font-family: 'Barlow', sans-serif;
        font-size: 0.9rem;
        font-weight: 300;
        color: var(--muted);
    }
    
    /* ── Work ── */
    #work {
        background: var(--bg);
    }
    
    .work-grid {
        display: grid;
        gap: 1px;
        background: var(--border);
        grid-template-columns: 1fr;
    }
    
    @media(min-width:768px) {
        .work-grid {
            grid-template-columns: 1fr 1fr;
        }
    }
    
    @media(min-width:1024px) {
        .work-grid {
            grid-template-columns: 1fr 1fr 1fr;
        }
    }
    
    .work-card {
        background: var(--bg);
        overflow: hidden;
        transition: background 0.3s;
    }
    
    .work-card:hover {
        background: var(--card);
    }
    
    .work-img-wrap {
        position: relative;
        overflow: hidden;
        aspect-ratio: 16/10;
    }
    
    .work-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 1;
        transition: opacity 0.4s;
    }
    
    .work-img-overlay {
        position: absolute;
        inset: 0;
        transition: background 0.4s;
    }
    
    .work-icon-badge {
        position: absolute;
        top: 1rem;
        left: 1rem;
        background: var(--accent);
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: var(--accent-fg);
    }
    
    .work-year {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-family: 'DM Mono', monospace;
        font-size: 0.65rem;
        color: var(--muted);
    }
    
    .work-body {
        padding: 1.5rem;
    }
    
    .work-client {
        font-family: 'DM Mono', monospace;
        font-size: 0.6rem;
        letter-spacing: 0.12em;
        color: var(--accent);
        text-transform: uppercase;
        margin-bottom: 0.5rem;
    }
    
    .work-title {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 1.15rem;
        font-weight: 700;
        line-height: 1.1;
        text-transform: uppercase;
        color: var(--fg);
        margin-bottom: 0.75rem;
    }
    
    .work-desc {
        font-family: 'Barlow', sans-serif;
        font-size: 0.85rem;
        font-weight: 300;
        color: var(--muted);
        line-height: 1.6;
    }
    
    /* ── Clients ── */
    #clients {
        background: var(--bg-alt);
    }
    
    .clients-grid {
        display: grid;
        gap: 1px;
        background: var(--border);
        grid-template-columns: 1fr 1fr;
    }
    
    @media(min-width:768px) {
        .clients-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }
    
    .client-cell {
        background: var(--bg-alt);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        padding: 2.5rem 1.5rem;
        min-height: 140px;
        transition: background 0.3s;
    }
    
    .client-cell:hover {
        background: var(--card);
    }
    
    .logo-wrap {
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        padding: 10px;
        background: rgba(128, 128, 128, 0.08);
    }
    
    .logo-img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        opacity: 0;
        transition: opacity 0.4s;
    }
    
    /* [data-theme="dark"] .logo-img {
        filter: brightness(0) invert(1) opacity(0.8);
    } */
    
    .logo-img.loaded {
        opacity: 1;
    }
    
    .client-name {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--muted);
        text-align: center;
    }
    
    .clients-banner {
        margin-top: 5rem;
        position: relative;
        overflow: hidden;
    }
    
    .clients-banner img {
        width: 100%;
        object-fit: cover;
        height: 300px;
        opacity: var(--img-op);
        transition: opacity 0.4s;
    }
    
    .banner-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, var(--bg-alt) 0%, transparent 30%, transparent 70%, var(--bg-alt) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.4s;
    }
    
    .banner-tagline {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: clamp(1.5rem, 4vw, 3rem);
        font-weight: 700;
        text-transform: uppercase;
        color: var(--fg);
        text-align: center;
    }
    
    .banner-tagline .accent {
        color: var(--accent);
        display: block;
    }
    
    /* ── Footer ── */
    #footer {
        background: var(--bg);
        border-top: 1px solid var(--border);
        padding: 4rem 0;
        transition: background 0.4s, border-color 0.4s;
    }
    
    .footer-inner {
        max-width: 80rem;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    .footer-top {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    @media(min-width:768px) {
        .footer-top {
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
        }
    }
    
    .footer-logo {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 1.1rem;
        font-weight: 700;
        letter-spacing: 0.25em;
        text-transform: uppercase;
        color: var(--fg);
        margin-bottom: 0.5rem;
    }
    
    .footer-sub {
        font-family: 'Barlow', sans-serif;
        font-size: 0.85rem;
        font-weight: 300;
        color: var(--muted);
    }
    
    .footer-right {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    @media(min-width:768px) {
        .footer-right {
            align-items: flex-end;
        }
    }
    
    .footer-copy {
        font-family: 'DM Mono', monospace;
        font-size: 0.65rem;
        letter-spacing: 0.1em;
        color: var(--muted);
    }
    
    .footer-archive {
        font-family: 'DM Mono', monospace;
        font-size: 0.65rem;
        letter-spacing: 0.1em;
        color: var(--accent);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        transition: opacity 0.2s;
    }
    
    .footer-archive:hover {
        opacity: 0.75;
    }
    
    .footer-divider {
        margin-top: 3rem;
        padding-top: 2rem;
        border-top: 1px solid var(--border);
        transition: border-color 0.4s;
    }
    
    .footer-clients-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    @media(min-width:768px) {
        .footer-clients-row {
            grid-template-columns: repeat(4, 1fr);
        }
    }
    
    .footer-client-name {
        font-family: 'DM Mono', monospace;
        font-size: 0.6rem;
        letter-spacing: 0.1em;
        color: var(--muted);
        opacity: 0.5;
    }
    /* ═══════════════════════════════════════════════
       HERO GRAPHIC (replaces hero photo)
    ═══════════════════════════════════════════════ */
    .hero-graphic {
      position: absolute;
      inset: 0;
      overflow: hidden;
      color: var(--fg);
    }
    
    .hero-svg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }
    
    #hero-grad {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, var(--bg) 0%, transparent 60%);
      transition: background 0.4s;
    }
    
    #hero-grad2 {
      position: absolute;
      inset: 0;
      background: linear-gradient(to right, var(--bg) 0%, var(--bg) 30%, transparent 70%);
      transition: background 0.4s;
    }
    
    /* ═══════════════════════════════════════════════
       COMPANY GRAPHIC FRAME (replaces company photo)
    ═══════════════════════════════════════════════ */
    .company-graphic-frame {
      position: relative;
      overflow: hidden;
      aspect-ratio: 4/5;
      background: var(--card);
      border: 1px solid var(--border);
      transition: background 0.4s, border-color 0.4s;
    }
    
    .company-graphic-frame::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, var(--bg) 0%, transparent 50%);
      transition: background 0.4s;
      pointer-events: none;
    }
    
    .corel-svg {
      width: 100%;
      height: 100%;
      color: var(--fg);
    }
    
    /* ═══════════════════════════════════════════════
       WORK CARD GRAPHICS (replaces card photos)
    ═══════════════════════════════════════════════ */
    
    /* work-img-wrap no longer contains an <img>, repurpose it */
    .work-img-wrap {
      position: relative;
      overflow: hidden;
      aspect-ratio: 16/10;
      background: var(--card);
      transition: background 0.4s;
    }
    
    .card-graphic {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--fg);
    }
    
    .card-svg {
      width: 100%;
      height: 100%;
    }
    
    /* Subtle bottom fade on each card graphic */
    .card-graphic::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, var(--bg) 0%, transparent 55%);
      transition: background 0.4s;
      pointer-events: none;
    }
    
    /* Year badge inside the card graphic area */
    .card-graphic-label {
      position: absolute;
      top: 0.85rem;
      right: 0.85rem;
      z-index: 2;
    }
    
    .card-graphic-year {
      font-family: 'DM Mono', monospace;
      font-size: 0.65rem;
      color: var(--muted);
      letter-spacing: 0.08em;
    }
    
    /* Toyota card gets a slightly different bg tint */
    .toyota-graphic {
      background: var(--bg-alt);
    }
    
    /* Corel card */
    .corel-graphic {
      background: var(--card);
    }
    
    /* Generic cards rotate between bg and card */
    .generic-graphic {
      background: var(--bg);
    }
    
    /* ═══════════════════════════════════════════════
       CLIENTS BANNER — pure typographic panel
    ═══════════════════════════════════════════════ */
    .clients-banner {
      margin-top: 5rem;
      position: relative;
      overflow: hidden;
      /* Remove old img rule */
    }
    
    /* remove old img inside .clients-banner */
    .clients-banner > img { display: none; }
    
    .banner-text-panel {
      position: relative;
      width: 100%;
      height: 240px;
      background: var(--card);
      border: 1px solid var(--border);
      overflow: hidden;
      transition: background 0.4s, border-color 0.4s;
    }
    
    .banner-svg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      color: var(--fg);
    }
    
    .banner-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      /* Remove the old gradient — it was for photo blending */
      background: none;
    }
    
    /* ═══════════════════════════════════════════════
       WORK CARDS — text-only, no image/graphic area
    ═══════════════════════════════════════════════ */
    
    /* Override: work-img-wrap no longer used in work cards */
    #work .work-img-wrap { display: none; }
    
    /* Each card fills its grid cell fully with a border treatment */
    .work-card {
      border-top: 1px solid var(--border);
    }
    
    .work-body {
      padding: 2rem 1.75rem 2rem;
      display: flex;
      flex-direction: column;
      height: 100%;
    }
    
    /* Top row: icon + year side by side */
    .work-card-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1.25rem;
    }
    
    .work-icon-badge-inline {
      background: var(--accent);
      padding: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      color: var(--accent-fg);
    }
    
    .work-year-inline {
      font-family: 'DM Mono', monospace;
      font-size: 0.65rem;
      color: var(--muted);
      letter-spacing: 0.08em;
    }
    
    /* Add a subtle left accent bar on hover */
    .work-card {
      position: relative;
      transition: background 0.3s;
    }
    
    .work-card::before {
      content: '';
      position: absolute;
      left: 0; top: 0; bottom: 0;
      width: 2px;
      background: var(--accent);
      opacity: 0;
      transition: opacity 0.25s;
    }
    
    .work-card:hover::before {
      opacity: 1;
    }
    
    /* ═══════════════════════════════════════════════
       HERO PARTICLE CANVAS
    ═══════════════════════════════════════════════ */
    
    /* Remove old static SVG hero graphic rules */
    .hero-graphic { display: none; }
    .hero-svg     { display: none; }
    
    #hero-canvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: block;
      pointer-events: none;
      z-index: 1; /* above bg, below gradients */
    }
    
    /* Gradients sit above canvas but are semi-transparent — particles show through */
    #hero-grad {
      pointer-events: none;
      z-index: 2;
      background: linear-gradient(to top, var(--bg) 0%, rgba(0,0,0,0.15) 45%, transparent 100%);
    }
    
    #hero-grad2 {
      pointer-events: none;
      z-index: 2;
      background: linear-gradient(to right, var(--bg) 0%, transparent 55%);
    }
    
    /* Hero content sits above canvas + gradients */
    .hero-content {
      position: relative;
      z-index: 2;
    }
    
    .scroll-hint {
      z-index: 2;
    }
    
    /* ═══════════════════════════════════════════════
       COMPANY PHOTO — blended into background
    ═══════════════════════════════════════════════ */
    
    /* Override the old graphic frame styles */
    .company-img-frame {
      position: relative;
      overflow: hidden;
      aspect-ratio: 6/6;
      background: var(--bg);
    }
    
    .company-img-frame img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
      /* Desaturate + darken to blend with the dark palette */
      filter: grayscale(55%) brightness(0.72) contrast(1.05);
      display: block;
      transition: filter 0.5s;
    }
    
    [data-theme="light"] .company-img-frame img {
      filter: grayscale(35%) brightness(0.88) contrast(1.02);
    }
    
    /* Four directional blend overlays using the background colour */
    .company-img-blend-top,
    .company-img-blend-bottom,
    .company-img-blend-left,
    .company-img-blend-right {
      position: absolute;
      pointer-events: none;
      transition: background 0.4s;
    }
    
    .company-img-blend-top {
      inset: 0 0 auto 0;
      height: 38%;
      background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
    }
    
    .company-img-blend-bottom {
      inset: auto 0 0 0;
      height: 52%;
      background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
    }
    
    .company-img-blend-left {
      inset: 0 auto 0 0;
      width: 22%;
      background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
    }
    
    .company-img-blend-right {
      inset: 0 0 0 auto;
      width: 22%;
      background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
    }