/* =============================================================================
   Nexlla 2026 — Design System v1
   -----------------------------------------------------------------------------
   Load order: plugins.css  →  style.css  →  nexlla-2026.css (this file)
   This is an OVERRIDE / additive layer on top of the DSN Inout template.
   The goal is to neutralize template-isms (Poppins, generic shadows, default
   button styles) while letting unmigrated pages continue to render.
   Page-level "nx-*" components are the target for future markup.
   ========================================================================== */

/* ─────────────────────────── 0.  Root reset ─────────────────────────────────
   Native browser scroll + native pointer + a hairline `cursor: auto` fallback
   for any element whose own CSS doesn't set a cursor. The custom Nexlla
   cursor (menu.php) lays a decorative ring + dot OVER the native cursor on
   fine-pointer devices; this rule keeps the native cursor visible underneath
   it. The remaining defensive rules on legacy DSN container IDs let any
   not-yet-migrated page template render without odd transforms or overflow.
   ───────────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
html, body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
}
body {
    position: static;
    width: 100%;
}
#main_root,
.main-root,
#dsn-scrollbar {
    position: static !important;
    transform: none !important;
    overflow: visible !important;
    height: auto !important;
    width: auto !important;
    max-height: none !important;
    will-change: auto !important;
    top: auto !important;
    left: auto !important;
}

/* ────────────────────────── 1.  DESIGN TOKENS ──────────────────────────── */
:root {
    /* Color — TRUE-BLACK base, cool metallic SILVER primary, ember demoted
       to a secondary pop. Premium / enterprise identity. */
    --nx-color-bg:          #000000;     /* true black base               */
    --nx-color-bg-light:    #EEF1F4;     /* cool light-section bg         */
    --nx-color-surface:     #0B0C0E;     /* card / panel (slightly lifted)*/
    --nx-color-surface-2:   #14161A;     /* hover / elevated surface      */
    --nx-color-line:        rgba(229, 233, 238, 0.10);
    --nx-color-line-strong: rgba(229, 233, 238, 0.22);

    --nx-color-text:        #EEF1F4;     /* cool near-white               */
    --nx-color-text-muted:  rgba(229, 233, 238, 0.60);
    --nx-color-text-dim:    rgba(229, 233, 238, 0.38);
    --nx-color-text-invert: #000000;     /* on silver / light surfaces    */

    /* SILVER — primary accent (cool metallic) */
    --nx-color-accent:      #FFFFFF;     /* cool silver                   */
    --nx-color-accent-soft: #FFFFFF;     /* near-white sheen              */
    --nx-color-accent-glow: rgba(255, 255, 255, 0.22);
    --nx-silver-grad:       linear-gradient(180deg, #FFFFFF 0%, #F1F4F7 100%);

    /* EMBER — secondary accent (kept from the prior brand) */
    --nx-color-ember:       #E25A1C;
    --nx-color-ember-soft:  #FFB37A;
    --nx-color-ember-glow:  rgba(226, 90, 28, 0.40);

    /* Per-solution tint — overridden by .sol-theme--*; defaults to the ember pop */
    --sol-tint:             #E25A1C;

    /* GLASS — frosted surfaces */
    --nx-glass-bg:          rgba(255, 255, 255, 0.045);
    --nx-glass-bg-strong:   rgba(255, 255, 255, 0.075);
    --nx-glass-border:      rgba(255, 255, 255, 0.12);
    --nx-glass-blur:        saturate(140%) blur(14px);

    --nx-color-success:     #6B8E5A;
    --nx-color-warning:     #C58A2D;
    --nx-color-danger:      #B33A2C;

    /* Typography — IBM Plex single-family system
       --------------------------------------------------------------------
       IBM Plex is IBM's open-source corporate typeface (Mike Abbink, Bold
       Monday). Same family covers sans, serif, mono, and Arabic — perfect
       for a disciplined "one system" feel without sacrificing range.
           • Body / UI         → Plex Sans 400, 500 for emphasis
           • Headings          → Plex Sans 600 with tight tracking
           • Display / hero    → Plex Sans 600/700 with negative tracking
           • Editorial accent  → Plex Serif italic (quotes, brand voice)
           • Eyebrow / labels  → Plex Sans 500 uppercase, wide tracking
           • Code / numerics   → Plex Mono
           • Arabic            → Plex Sans Arabic (matches Latin metrics)
       Plex's slab-influenced terminals + open apertures read confident and
       slightly technical — the engineering side of a creative studio.
       -------------------------------------------------------------------- */
    --nx-font-display: "IBM Plex Sans", -apple-system, BlinkMacSystemFont,
                        "Segoe UI", system-ui, sans-serif;
    --nx-font-sans:    "IBM Plex Sans", "IBM Plex Sans Arabic", -apple-system,
                        BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --nx-font-serif:   "IBM Plex Serif", "Times New Roman", Georgia, serif;
    --nx-font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Feature settings — Plex has zero / one alts, just standard kerning */
    --nx-display-features: "kern" 1, "liga" 1, "calt" 1, "ss03" 1;  /* ss03: slashed zero */
    --nx-sans-features:    "kern" 1, "liga" 1, "calt" 1;
    --nx-display-variation: normal;
    --nx-sans-variation:    normal;

    /* Fluid type scale (clamps min,vw,max) — tuned for IBM Plex's wider
       letterforms so display sizes stay inside section containers without
       overflow. Plex is ~10% wider than narrow display faces like Antonio,
       so the 5xl–7xl upper bounds were dialed back from the old values. */
    --nx-text-xs:  clamp(0.75rem,  0.72rem + 0.15vw, 0.82rem);
    --nx-text-sm:  clamp(0.875rem, 0.84rem + 0.18vw, 0.96rem);
    --nx-text-base:clamp(1rem,     0.96rem + 0.22vw, 1.10rem);
    --nx-text-lg:  clamp(1.125rem, 1.07rem + 0.30vw, 1.30rem);
    --nx-text-xl:  clamp(1.25rem,  1.18rem + 0.40vw, 1.55rem);
    --nx-text-2xl: clamp(1.50rem,  1.36rem + 0.70vw, 2.00rem);
    --nx-text-3xl: clamp(1.75rem,  1.55rem + 1.00vw, 2.40rem);
    --nx-text-4xl: clamp(2.00rem,  1.65rem + 1.70vw, 3.20rem);
    --nx-text-5xl: clamp(2.50rem,  1.95rem + 2.80vw, 4.25rem);
    --nx-text-6xl: clamp(3.00rem,  2.20rem + 4.00vw, 5.50rem);
    --nx-text-7xl: clamp(3.75rem,  2.60rem + 5.50vw, 7.00rem);

    /* Spacing — 4px base, geometric */
    --nx-space-1:  4px;
    --nx-space-2:  8px;
    --nx-space-3:  12px;
    --nx-space-4:  16px;
    --nx-space-5:  24px;
    --nx-space-6:  32px;
    --nx-space-7:  48px;
    --nx-space-8:  64px;
    --nx-space-9:  96px;
    --nx-space-10: 128px;
    --nx-space-11: 160px;

    /* Radius */
    --nx-radius-sm:   4px;
    --nx-radius-md:   8px;
    --nx-radius-lg:   16px;
    --nx-radius-xl:   24px;
    --nx-radius-full: 999px;

    /* Motion */
    --nx-ease-out:    cubic-bezier(.18, .72, .18, 1);
    --nx-ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --nx-ease-in-out: cubic-bezier(.65, .05, .35, 1);
    --nx-dur-instant: 90ms;
    --nx-dur-fast:    180ms;
    --nx-dur:         320ms;
    --nx-dur-slow:    640ms;
    --nx-dur-xslow:   1100ms;

    /* Elevation — composed from outer + inner + glow for depth */
    --nx-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
    --nx-shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.45);
    --nx-shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.55);
    --nx-shadow-glow: 0 0 0 1px rgba(226, 90, 28, 0.20),
                      0 8px 32px -4px var(--nx-color-accent-glow);

    /* Container widths */
    --nx-w-narrow: 720px;
    --nx-w-prose:  920px;
    --nx-w:        1280px;
    --nx-w-wide:   1440px;

    /* Z layer scale */
    --nx-z-base:    1;
    --nx-z-overlay: 10;
    --nx-z-nav:     100;
    --nx-z-modal:   1000;
    --nx-z-toast:   1100;
}

/* ──────────────────── 2.  TYPOGRAPHY OVERRIDE LAYER ────────────────────── */
/* Apply the new type system without breaking existing markup. The DSN
   template uses Poppins via body { font-family }, which we override here. */
html { -webkit-text-size-adjust: 100%; }

body,
.dsn-text-block,
.nello-page {
    font-family: var(--nx-font-sans);
    font-feature-settings: var(--nx-sans-features);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings — Plex Sans semibold (600) with restrained negative tracking */
h1, h2, h3, h4, h5, h6,
.title, .title-lg, .title-block,
.big-text {
    font-family: var(--nx-font-display);
    font-feature-settings: var(--nx-display-features);
    font-weight: 600;
    letter-spacing: -0.018em;
    line-height: 1.08;
}

/* Italic accents — use Plex Serif italic for editorial moments
   (quotes, brand voice). Plex Serif italic has gorgeous calligraphic
   touches and gives the agency a literary register. */
.nx-italic,
.nx-quote__text,
.nx-eyebrow em,
em.nx-display {
    font-family: var(--nx-font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.005em;
}

/* Display-class titles — capped at sensible sizes for IBM Plex's width.
   The DSN template's original .title-lg was sized for narrow display
   faces (Antonio); we explicitly override here so the heading fits
   the section container without overflow. */
.title-lg,
.big-text,
.nx-section-header__title {
    font-size: var(--nx-text-5xl);    /* clamp 40 → 68px */
    font-weight: 700;
    letter-spacing: -0.028em;
    line-height: 1.02;
}

/* The DSN `.title` class is even more common on the site than `.title-lg`
   — cap it too so cross-page rhythm is consistent. */
.title,
.title-block {
    font-size: var(--nx-text-4xl);    /* clamp 32 → 51px */
    line-height: 1.08;
}

/* Numeric stat blocks (.big-text used in "12", "53") should still be huge */
.big-text {
    font-size: var(--nx-text-6xl);    /* clamp 48 → 88px */
    line-height: 0.96;
}

/* When numbers appear in display text, use tabular + slashed-zero so
   stats align in case-study tiles and date columns. */
.nx-metric__value,
.nx-case-card__year {
    font-family: var(--nx-font-mono);
    font-feature-settings: "kern" 1, "tnum" 1, "lnum" 1, "zero" 1;
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* Sub-heading / eyebrow — kept sans-serif, mono-like spacing */
.sub-heading, .sm-title-block {
    font-family: var(--nx-font-sans);
    font-size: var(--nx-text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--nx-color-text-muted);
}

/* Code / monospaced */
code, kbd, pre, samp {
    font-family: var(--nx-font-mono);
}

/* ──────────────────── 3.  PRIMITIVE COMPONENTS  ────────────────────────── */

/* --- Container --- */
.nx-container {
    width: 100%;
    max-width: var(--nx-w);
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 48px);
}
.nx-container--narrow { max-width: var(--nx-w-narrow); }
.nx-container--prose  { max-width: var(--nx-w-prose); }
.nx-container--wide   { max-width: var(--nx-w-wide); }

/* --- Eyebrow / kicker --- */
.nx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--nx-space-3);
    font-family: var(--nx-font-sans);
    font-size: var(--nx-text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--nx-color-text-muted);
}
.nx-eyebrow::before {
    content: "";
    width: 28px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--nx-color-accent), transparent);
}
.nx-eyebrow--solo::before { display: none; }

/* --- Buttons --- */
.nx-btn {
    --_pad-x: 22px;
    --_pad-y: 10px;
    display: inline-flex;
    align-items: center;
    gap: var(--nx-space-2);
    padding: var(--_pad-y) var(--_pad-x);
    border-radius: var(--nx-radius-full);
    font-family: var(--nx-font-sans);
    font-size: var(--nx-text-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
    min-height: 40px;            /* tighter, site-wide */
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--nx-dur) var(--nx-ease-out),
                color      var(--nx-dur) var(--nx-ease-out),
                transform  var(--nx-dur) var(--nx-ease-out),
                box-shadow var(--nx-dur) var(--nx-ease-out),
                border-color var(--nx-dur) var(--nx-ease-out);
}
.nx-btn:hover  { transform: translateY(-1px); }
.nx-btn:active { transform: translateY(0); }

/* Primary = brushed-silver metallic */
.nx-btn--primary {
    background: var(--nx-silver-grad);
    color: var(--nx-color-text-invert);
    font-weight: 600;
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65),
                0 10px 30px -16px rgba(197, 205, 214, 0.55);
}
.nx-btn--primary:hover {
    background: linear-gradient(145deg, #FFFFFF 0%, #D7DCE3 44%, #A8B0BA 70%, #EEF2F6 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8),
                0 16px 38px -14px rgba(197, 205, 214, 0.7);
}

/* Ghost = frosted glass */
.nx-btn--ghost {
    background: var(--nx-glass-bg);
    -webkit-backdrop-filter: var(--nx-glass-blur);
    backdrop-filter: var(--nx-glass-blur);
    color: var(--nx-color-text);
    border-color: var(--nx-glass-border);
}
.nx-btn--ghost:hover {
    background: var(--nx-glass-bg-strong);
    border-color: var(--nx-color-text-muted);
}

.nx-btn--link {
    padding: 0;
    background: transparent;
    color: var(--nx-color-accent);
    min-height: auto;
    border-radius: 0;
}
.nx-btn--link::after {
    content: "→";
    transition: transform var(--nx-dur) var(--nx-ease-out);
}
.nx-btn--link:hover::after { transform: translateX(4px); }

/* --- Card --- */
.nx-card {
    background: var(--nx-color-surface);
    border: 1px solid var(--nx-color-line);
    border-radius: var(--nx-radius-lg);
    padding: var(--nx-space-6);
    transition: border-color var(--nx-dur) var(--nx-ease-out),
                transform     var(--nx-dur) var(--nx-ease-out),
                box-shadow    var(--nx-dur) var(--nx-ease-out);
}
.nx-card:hover {
    border-color: var(--nx-color-line-strong);
    transform: translateY(-2px);
    box-shadow: var(--nx-shadow-md);
}

/* --- Tag / chip --- */
.nx-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-family: var(--nx-font-sans);
    font-size: var(--nx-text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--nx-color-text-muted);
    background: rgba(241, 237, 228, 0.04);
    border: 1px solid var(--nx-color-line);
    border-radius: var(--nx-radius-full);
}
.nx-tag--accent {
    color: var(--nx-color-accent-soft);
    border-color: rgba(226, 90, 28, 0.30);
    background: rgba(226, 90, 28, 0.08);
}

/* --- Metric tile (case studies) --- */
.nx-metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: var(--nx-space-5) var(--nx-space-5);
    background: var(--nx-color-surface);
    border: 1px solid var(--nx-color-line);
    border-radius: var(--nx-radius-md);
}
.nx-metric__value {
    font-family: var(--nx-font-display);
    font-size: var(--nx-text-4xl);
    line-height: 1;
    color: var(--nx-color-text);
    letter-spacing: -0.02em;
}
.nx-metric__value--accent { color: var(--nx-color-accent); }
.nx-metric__label {
    font-size: var(--nx-text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--nx-color-text-muted);
}
.nx-metric--pending .nx-metric__value {
    color: var(--nx-color-text-dim);
    font-size: var(--nx-text-xl);
    font-family: var(--nx-font-sans);
    font-style: italic;
    letter-spacing: 0;
}

/* --- Quote --- */
.nx-quote {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-5);
    padding: var(--nx-space-7) var(--nx-space-6);
    border-left: 2px solid var(--nx-color-accent);
    background: linear-gradient(135deg,
        rgba(226, 90, 28, 0.04) 0%,
        transparent 60%);
}
.nx-quote__text {
    font-family: var(--nx-font-display);
    font-size: var(--nx-text-2xl);
    line-height: 1.30;
    color: var(--nx-color-text);
    letter-spacing: -0.01em;
}
.nx-quote__text::before { content: "“"; color: var(--nx-color-accent); margin-right: 4px; }
.nx-quote__text::after  { content: "”"; color: var(--nx-color-accent); margin-left: 4px; }
.nx-quote__cite {
    display: flex;
    flex-direction: column;
    font-size: var(--nx-text-sm);
    color: var(--nx-color-text-muted);
}
.nx-quote__cite strong {
    color: var(--nx-color-text);
    font-weight: 500;
}

/* --- Section --- */
.nx-section {
    padding-block: clamp(64px, 9vw, 144px);
    position: relative;
}
.nx-section--bleed { padding-inline: 0; }
.nx-section--dark  { background: var(--nx-color-bg); color: var(--nx-color-text); }
.nx-section--light { background: var(--nx-color-bg-light); color: var(--nx-color-text-invert); }

/* --- Section header --- */
.nx-section-header {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-4);
    margin-bottom: var(--nx-space-8);
    max-width: var(--nx-w-prose);
}
.nx-section-header__title {
    font-size: var(--nx-text-5xl);
    line-height: 0.96;
    letter-spacing: -0.022em;
    margin: 0;
}
.nx-section-header__lede {
    font-size: var(--nx-text-lg);
    line-height: 1.55;
    color: var(--nx-color-text-muted);
    max-width: 56ch;
}

/* ──────────────────── 3b. SECTION PRIMITIVES  ──────────────────────────── */
/* Shared section scaffolding. Originally defined inline on the Nello page,
   promoted here so About / Contact / future pages can reuse them. */
.nello-section {
    padding-block: clamp(80px, 11vw, 144px);
    padding-inline: clamp(20px, 5vw, 64px);
    position: relative;
}
.nello-section--narrow { padding-block: clamp(40px, 6vw, 80px); }
.nello-section__inner  { max-width: var(--nx-w); margin-inline: auto; }
.nello-section__head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: clamp(40px, 6vw, 80px);
    max-width: var(--nx-w-prose);
    transform: scale(var(--scale, 1));
    opacity: var(--scale-opacity, 1);
    transition: transform .25s linear, opacity .25s linear;
}
.nello-section__head--center {
    text-align: center;
    margin-inline: auto;
    align-items: center;
}
.nello-section__head h2 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    margin: 0;
    letter-spacing: -.025em;
}
.nello-section__head h2 em {
    font-family: var(--nx-font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--nx-color-accent);
}
.nello-section__head p {
    font-size: var(--nx-text-lg);
    line-height: 1.55;
    color: var(--nx-color-text-muted);
    max-width: 56ch;
    margin: 0;
}

/* Generic reveal helper — paired with the IntersectionObserver scripts that
   page-level templates ship. Pages add the observer; the design system
   supplies the visual states + reduced-motion fallback. */
.nx-reveal,
.nello-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--nx-ease-out), transform .8s var(--nx-ease-out);
}
.nx-reveal[data-delay="1"],
.nello-reveal[data-delay="1"] { transition-delay: .12s; }
.nx-reveal[data-delay="2"],
.nello-reveal[data-delay="2"] { transition-delay: .24s; }
.nx-reveal--left,
.nello-reveal--left  { transform: translateX(28px); }
.nx-reveal--right,
.nello-reveal--right { transform: translateX(-28px); }
.nx-reveal.is-in,
.nello-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .nx-reveal, .nello-reveal { opacity: 1; transform: none; transition: none; }
}

/* ──────────────────── 4.  CASE-STUDY GRID  ─────────────────────────────── */
.nx-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--nx-space-5);
}
.nx-case-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: var(--nx-space-5);
    padding: var(--nx-space-6);
    background: var(--nx-color-surface);
    border: 1px solid var(--nx-color-line);
    border-radius: var(--nx-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all var(--nx-dur) var(--nx-ease-out);
    position: relative;
}
.nx-case-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 0 var(--nx-color-accent-glow);
    transition: box-shadow var(--nx-dur) var(--nx-ease-out);
}
.nx-case-card:hover {
    border-color: var(--nx-color-line-strong);
    transform: translateY(-4px);
    box-shadow: var(--nx-shadow-lg);
}
.nx-case-card:hover::after {
    box-shadow: inset 0 -2px 0 0 var(--nx-color-accent);
}
.nx-case-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--nx-radius-md);
    background: var(--nx-color-surface-2);
    margin: calc(var(--nx-space-6) * -1) calc(var(--nx-space-6) * -1) 0;
}
.nx-case-card__media img,
.nx-case-card__media picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--nx-dur-xslow) var(--nx-ease-out);
}
.nx-case-card:hover .nx-case-card__media img,
.nx-case-card:hover .nx-case-card__media picture { transform: scale(1.04); }

.nx-case-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--nx-space-3);
    margin-top: var(--nx-space-5);
}
.nx-case-card__title {
    font-size: var(--nx-text-2xl);
    line-height: 1.1;
    margin: 0;
}
.nx-case-card__year {
    font-family: var(--nx-font-mono);
    font-size: var(--nx-text-xs);
    color: var(--nx-color-text-muted);
    padding-top: 6px;
}
.nx-case-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nx-space-2);
    font-size: var(--nx-text-xs);
    color: var(--nx-color-text-muted);
}
.nx-case-card__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--nx-space-3);
    margin-top: auto;
    padding-top: var(--nx-space-4);
    border-top: 1px solid var(--nx-color-line);
}
.nx-case-card__metrics .nx-metric {
    padding: var(--nx-space-3) 0;
    background: transparent;
    border: 0;
}
.nx-case-card__metrics .nx-metric__value { font-size: var(--nx-text-2xl); }
.nx-case-card__metrics .nx-metric__label { font-size: 10px; letter-spacing: 0.14em; }

/* ──────────────────── 5.  HERO CANVAS  ─────────────────────────────────── */
.nx-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--nx-color-bg);
    color: var(--nx-color-text);
    isolation: isolate;
}
.nx-hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}
.nx-hero__video-fallback {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    display: none;          /* shown only if WebGL fails */
}
.nx-hero[data-hero-mode="video"] .nx-hero__canvas { display: none; }
.nx-hero[data-hero-mode="video"] .nx-hero__video-fallback { display: block; }
.nx-hero__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 30% 20%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 70%),
        linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
}
.nx-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(80px, 12vh, 160px) clamp(20px, 5vw, 80px);
    max-width: var(--nx-w);
    margin-inline: auto;
}

/* ──────────────────── 6.  PROGRESSIVE OVERRIDES  ───────────────────────── */
/* Gently nudge DSN template classes toward the new system. Anything that
   needs a hard rewrite gets the nx-* twin above. */
.button.background-theme,
.button.background-main {
    border-radius: var(--nx-radius-full) !important;
    font-family: var(--nx-font-sans) !important;
    letter-spacing: 0.04em;
}
.theme-color { color: var(--nx-color-accent) !important; }
.background-theme { background-color: var(--nx-color-accent) !important; }

/* Selection */
::selection { background: var(--nx-color-accent); color: var(--nx-color-text-invert); }

/* ──────────────────── 7.  ACCESSIBILITY & MOTION  ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
.nx-skip-link {
    position: absolute;
    top: 0; left: 0;
    background: var(--nx-color-accent);
    color: var(--nx-color-text-invert);
    padding: 12px 18px;
    font-weight: 500;
    transform: translateY(-110%);
    transition: transform var(--nx-dur) var(--nx-ease-out);
    z-index: var(--nx-z-toast);
}
.nx-skip-link:focus-visible { transform: translateY(0); }

/* ──────────────────── 8.  LIGHT-SECTION INVERSION  ─────────────────────── */
.nx-section--light {
    --nx-color-bg:          #F4F1EA;
    --nx-color-surface:     #FFFFFF;
    --nx-color-surface-2:   #F9F6F0;
    --nx-color-line:        rgba(10, 9, 8, 0.10);
    --nx-color-line-strong: rgba(10, 9, 8, 0.20);
    --nx-color-text:        #0A0908;
    --nx-color-text-muted:  rgba(10, 9, 8, 0.60);
    --nx-color-text-dim:    rgba(10, 9, 8, 0.36);
}

/* ───────────────────────── IMAGE PLACEHOLDER ─────────────────────────────
   Reusable hatched-pattern slot used on the service detail pages to mark
   spots where editorial photography / project imagery should be dropped in.
   Render with: <figure class="nx-img-ph" style="--ratio:16/9">
                  <span class="nx-img-ph__tag">IMAGE</span>
                  <span class="nx-img-ph__hint">16 : 9 · what goes here · /assets/img/...</span>
                </figure>
   The hatching, accent corner brackets, and uppercase mono label make it
   unmistakably a placeholder — easy to grep the codebase for `nx-img-ph`. */
.nx-img-ph {
    position: relative;
    width: 100%;
    aspect-ratio: var(--ratio, 16 / 9);
    margin: 0;
    border-radius: var(--nx-radius-lg);
    overflow: hidden;
    isolation: isolate;
    background-color: var(--nx-color-surface);
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(241, 237, 228, .025) 0px,
            rgba(241, 237, 228, .025) 12px,
            transparent 12px,
            transparent 26px
        );
    border: 1.5px dashed var(--nx-color-line-strong);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px; padding: clamp(20px, 4vw, 40px);
    text-align: center;
}
.nx-img-ph::before,
.nx-img-ph::after {
    content: "";
    position: absolute;
    width: 22px; height: 22px;
    border: 1.5px solid var(--nx-color-accent);
    opacity: .55;
    pointer-events: none;
}
.nx-img-ph::before { top: 14px;    left: 14px;    border-right: 0; border-bottom: 0; }
.nx-img-ph::after  { bottom: 14px; right: 14px;   border-left: 0;  border-top: 0;    }
.nx-img-ph__tag {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--nx-font-mono);
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--nx-color-accent);
}
.nx-img-ph__tag::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--nx-color-accent);
    box-shadow: 0 0 12px var(--nx-color-accent-glow);
    animation: nxPhPulse 2s var(--nx-ease-in-out) infinite;
}
@keyframes nxPhPulse {
    0%, 100% { opacity: .5; transform: scale(.85); }
    50%      { opacity: 1;  transform: scale(1.15); }
}
.nx-img-ph__hint {
    font-family: var(--nx-font-mono);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--nx-color-text-muted);
    line-height: 1.7;
    max-width: 42ch;
}
.nx-img-ph__hint strong {
    color: var(--nx-color-text);
    font-weight: 500;
}
/* Dense mini variant — fits inside cards / tile mockups */
.nx-img-ph--mini {
    gap: 6px;
    padding: 14px;
    border-width: 1px;
    border-radius: var(--nx-radius-md);
}
.nx-img-ph--mini::before,
.nx-img-ph--mini::after { width: 14px; height: 14px; }
.nx-img-ph--mini::before { top: 8px; left: 8px; }
.nx-img-ph--mini::after  { bottom: 8px; right: 8px; }
.nx-img-ph--mini .nx-img-ph__tag  { font-size: 9px; letter-spacing: .18em; gap: 6px; }
.nx-img-ph--mini .nx-img-ph__tag::before { width: 4px; height: 4px; }
.nx-img-ph--mini .nx-img-ph__hint { font-size: 9px; letter-spacing: .12em; }

@media (prefers-reduced-motion: reduce) {
    .nx-img-ph__tag::before { animation: none; opacity: 1; transform: none; }
}


/* ──────────────────── 9.  LATEST ARTICLES STRIP  ───────────────────────────
   The "Keep reading" / "From the journal" strip used at the bottom of the
   article detail page, the business-model page, and anywhere else that
   includes /includes/sliders/blog-slider.php. The HTML is emitted by
   api-loader.js → fetchFeaturedArticles() and follows the same visual
   language as the journal page's .nx-journal__card.

   Each card is a self-contained <a> that wraps a media block + body. When
   an article has no cover image (or the image 404s), the media block
   shows a small "Nexlla Journal" motif so every card in the row stays
   the same height — no skewed grid, no broken-image icons.
   ─────────────────────────────────────────────────────────────────────── */

/* ── Section wrapper (from blog-slider.php) ── */
.nx-latest {
    padding-block: clamp(60px, 8vw, 96px);
    padding-inline: clamp(20px, 5vw, 64px);
    border-top: 1px solid var(--nx-color-line);
    background: var(--nx-color-bg);
}
.nx-latest__inner {
    max-width: var(--nx-w-wide);
    margin-inline: auto;
}
.nx-latest__head {
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
    gap: 10px;
    margin-bottom: clamp(32px, 4vw, 56px);
}
.nx-latest__eyebrow {
    font-family: var(--nx-font-mono);
    font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
    color: var(--nx-color-accent);
    margin: 0;
}
.nx-latest__title {
    font-family: var(--nx-font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    letter-spacing: -.026em;
    line-height: 1.1;
    color: var(--nx-color-text);
    margin: 0;
}
.nx-latest__sub {
    font-family: var(--nx-font-sans);
    font-size: 13.5px;
    color: var(--nx-color-text-muted);
    margin: 0 0 6px 0;
}
.nx-latest__cta {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--nx-font-sans);
    font-size: 13px; font-weight: 500;
    color: var(--nx-color-accent);
    text-decoration: none;
    margin-top: 6px;
    transition: gap var(--nx-dur) var(--nx-ease-out);
}
.nx-latest__cta:hover { gap: 14px; }
.nx-latest__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1080px) { .nx-latest__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .nx-latest__grid { grid-template-columns: 1fr; } }


.nx-latest__card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--nx-color-surface);
    border: 1px solid var(--nx-color-line);
    border-radius: var(--nx-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    isolation: isolate;
    transition: border-color var(--nx-dur) var(--nx-ease-out),
                transform     var(--nx-dur) var(--nx-ease-out),
                background    var(--nx-dur) var(--nx-ease-out);
}
.nx-latest__card:hover {
    border-color: var(--nx-color-line-strong);
    transform: translateY(-3px);
    background: var(--nx-color-surface-2);
}
.nx-latest__card::after {
    content: ""; position: absolute; left: 0; top: 28px; bottom: 28px;
    width: 2px;
    background: linear-gradient(180deg, var(--nx-color-accent), transparent);
    transform: scaleY(0); transform-origin: top;
    transition: transform .45s var(--nx-ease-out);
    pointer-events: none;
}
.nx-latest__card:hover::after { transform: scaleY(1); }

/* Media block — image or empty-state motif */
.nx-latest__card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    margin: 0;
    overflow: hidden;
    background: var(--nx-color-surface-2);
}
.nx-latest__card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--nx-ease-out);
    display: block;
}
.nx-latest__card:hover .nx-latest__card-media img { transform: scale(1.04); }

/* Empty-state placeholder shown when there's no cover OR the image 404s.
   The img element is hidden by JS onerror; this overlay provides a tasteful
   centered "Nexlla Journal" mark so the card layout stays uniform. */
.nx-latest__card-media .nx-latest__card-empty {
    position: absolute; inset: 0;
    display: none;
    align-items: center; justify-content: center;
    gap: 10px;
    background:
        radial-gradient(ellipse 80% 70% at 30% 30%, rgba(226,90,28,.18), transparent 65%),
        var(--nx-color-surface-2);
}
.nx-latest__card-media.is-empty .nx-latest__card-empty { display: flex; }
.nx-latest__card-empty-mark {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--nx-color-accent);
    position: relative;
    flex-shrink: 0;
}
.nx-latest__card-empty-mark::after {
    content: "";
    position: absolute; top: 50%; left: 50%;
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--nx-color-accent);
    border-radius: 50%;
}
.nx-latest__card-empty-label {
    font-family: var(--nx-font-mono);
    font-size: 10px; letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--nx-color-accent);
}

/* Category chip overlaid on the media block */
.nx-latest__card-cat {
    position: absolute;
    top: 12px; left: 12px;
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--nx-font-mono);
    font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
    color: var(--nx-color-accent);
    background: rgba(10,9,8,.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--nx-color-line);
    padding: 5px 10px;
    border-radius: 999px;
    line-height: 1;
    z-index: 1;
}
.nx-latest__card-cat::before {
    content: ""; width: 5px; height: 5px; border-radius: 50%;
    background: var(--nx-color-accent);
}

/* Body — meta line, title (2-line clamp), excerpt (3-line clamp), CTA */
.nx-latest__card-body {
    padding: clamp(18px, 1.8vw, 24px);
    display: flex; flex-direction: column;
    gap: 9px;
    flex: 1 1 auto;
}
.nx-latest__card-meta {
    font-family: var(--nx-font-mono);
    font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
    color: var(--nx-color-text-dim);
    margin: 0;
    display: inline-flex; flex-wrap: wrap; gap: 7px;
}
.nx-latest__card-meta-sep { color: var(--nx-color-line-strong); }
.nx-latest__card-title {
    font-family: var(--nx-font-display);
    font-weight: 600;
    font-size: clamp(1.02rem, 1.3vw, 1.22rem);
    line-height: 1.22;
    letter-spacing: -.018em;
    color: var(--nx-color-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nx-latest__card-excerpt {
    font-family: var(--nx-font-sans);
    font-size: 13px;
    line-height: 1.55;
    color: var(--nx-color-text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nx-latest__card-cta {
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid var(--nx-color-line);
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--nx-font-sans);
    font-size: 12.5px; font-weight: 500;
    color: var(--nx-color-accent);
    transition: gap var(--nx-dur) var(--nx-ease-out);
}
.nx-latest__card-cta::after {
    content: "→";
    transition: transform var(--nx-dur) var(--nx-ease-out);
    color: inherit;
}
.nx-latest__card:hover .nx-latest__card-cta { gap: 14px; }
.nx-latest__card:hover .nx-latest__card-cta::after { transform: translateX(2px); }

/* ═══════════════════════════════════════════════════════════════════════
   SKELETON LOADERS — shared placeholders shown while api-loader.js fetches
   dashboard data (brands, testimonials, articles). Authored into the empty
   [data-api] / article containers in the page HTML so they paint instantly
   (no JS needed to show them); api-loader replaces them with real cards on
   success, or the section hides on empty/error. Mirrors the team page.
   ═══════════════════════════════════════════════════════════════════════ */
@keyframes nxSkelSweep { 100% { transform: translateX(100%); } }

.nx-skel,
.nx-skel-card { position: relative; overflow: hidden; }
.nx-skel { background: var(--nx-color-surface-2); border-radius: 8px; }

/* One moving sheen per box; child shapes sit beneath it. */
.nx-skel::after,
.nx-skel-card::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    transform: translateX(-100%);
    background: linear-gradient(90deg,
        transparent 0,
        rgba(241, 237, 228, .06) 45%,
        rgba(241, 237, 228, .11) 50%,
        rgba(241, 237, 228, .06) 55%,
        transparent 100%);
    animation: nxSkelSweep 1.5s ease-in-out infinite;
}

/* Card silhouette (articles, testimonials) */
.nx-skel-card {
    background: var(--nx-color-surface);
    border: 1px solid var(--nx-color-line);
    border-radius: var(--nx-radius-lg);
    display: flex; flex-direction: column;
}
.nx-skel-card__media { width: 100%; aspect-ratio: 16 / 10; background: var(--nx-color-surface-2); }
.nx-skel-card__body {
    padding: clamp(18px, 2vw, 24px);
    display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto;
}
.nx-skel-line { height: 11px; border-radius: 6px; background: var(--nx-color-surface-2); }
.nx-skel-line--meta  { height: 9px;  width: 38%; }
.nx-skel-line--title { height: 17px; width: 82%; margin-bottom: 4px; }
.nx-skel-line--short { width: 55%; }
.nx-skel-line--pad   { margin-top: auto; width: 32%; height: 12px; }

/* Logo placeholder (brand strip) */
.nx-skel-logo { width: clamp(78px, 9vw, 120px); height: 40px; border-radius: 8px; flex: 0 0 auto; }

/* Testimonial cite row (avatar + two short lines), under the card sheen */
.nx-skel-cite { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.nx-skel-cite__avatar { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; background: var(--nx-color-surface-2); }
.nx-skel-cite__lines { display: flex; flex-direction: column; gap: 7px; flex: 1 1 auto; }

@media (prefers-reduced-motion: reduce) {
    .nx-skel::after, .nx-skel-card::after { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SOLUTIONS — per-solution accent identity + uniform cross-nav
   -----------------------------------------------------------------------
   Each solution page carries a .sol-theme--<x> class on its #dsn-scrollbar
   content wrapper. That single class re-points the three site accent tokens,
   so every var(--nx-color-accent…) reference on the page (hero glow, eyebrow,
   links, CTAs, the bespoke centerpiece) picks up that solution's colour —
   one distinct identity per solution, zero per-element edits. The site nav
   sits outside #dsn-scrollbar and keeps the master ember.
   ═══════════════════════════════════════════════════════════════════════ */
/* Silver everywhere; each solution keeps only a faint colour TINT (used for
   thin accent lines, dots and a soft glow) — set via --sol-tint, while the
   page's primary accent stays cool silver. */
.sol-theme--branding { --sol-tint:#E25A1C; }
.sol-theme--graphics { --sol-tint:#E0407A; }
.sol-theme--uiux     { --sol-tint:#8B5CF6; }
.sol-theme--web      { --sol-tint:#2E8CF0; }
.sol-theme--mobile   { --sol-tint:#14B8A6; }
.sol-theme--ai       { --sol-tint:#34C759; }

/* ─── Uniform "Explore other solutions" cross-nav (shared partial) ─────── */
.nx-sol-explore { border-top: 1px solid var(--nx-color-line); background: var(--nx-color-bg); }
.nx-sol-explore__inner { max-width: var(--nx-w-wide, 1200px); margin-inline: auto; padding: clamp(56px,7vw,96px) clamp(20px,5vw,64px); }
.nx-sol-explore__head { display:flex; flex-direction:column; gap:10px; margin-bottom: clamp(28px,4vw,44px); }
.nx-sol-explore__eyebrow {
    font-family: var(--nx-font-mono); font-size:11px; letter-spacing:.26em; text-transform:uppercase;
    color: var(--nx-color-accent); display:inline-flex; align-items:center; gap:12px; margin:0;
}
.nx-sol-explore__eyebrow::before { content:""; width:26px; height:1px; background: var(--nx-color-accent); opacity:.6; }
.nx-sol-explore__title { font-family: var(--nx-font-display); font-weight:700; font-size: clamp(1.7rem,3.2vw,2.5rem); letter-spacing:-.03em; line-height:1.08; color: var(--nx-color-text); margin:0; }
.nx-sol-explore__title em { font-family: var(--nx-font-serif); font-style:italic; font-weight:400; color: var(--nx-color-accent); }
.nx-sol-explore__grid { display:grid; grid-template-columns: repeat(3,1fr); gap:14px; }
@media (max-width: 900px){ .nx-sol-explore__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .nx-sol-explore__grid { grid-template-columns: 1fr; } }

.nx-sol-card {
    display:flex; align-items:center; gap:14px;
    padding: 20px 22px; border:1px solid var(--nx-color-line); border-radius: var(--nx-radius-lg);
    background: var(--nx-color-surface); text-decoration:none; color: var(--nx-color-text);
    transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.nx-sol-card:hover { border-color: var(--sol-dot, var(--nx-color-accent)); transform: translateY(-3px); background: var(--nx-color-surface-2); }
.nx-sol-card__dot { width:11px; height:11px; border-radius:50%; flex:0 0 auto; background: var(--sol-dot,#E25A1C); box-shadow: 0 0 0 4px rgba(241,237,228,.04); }
.nx-sol-card__name { font-family: var(--nx-font-sans); font-weight:600; font-size: .98rem; letter-spacing:-.01em; }
.nx-sol-card__arrow { margin-left:auto; color: var(--nx-color-text-muted); transition: transform .25s ease, color .25s ease; }
.nx-sol-card:hover .nx-sol-card__arrow { color: var(--sol-dot, var(--nx-color-accent)); transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════════════════
   PREMIUM — black + silver + glass (global overrides, loaded last in base)
   ═══════════════════════════════════════════════════════════════════════ */
html, body { background-color: #000 !important; }

/* Frosted, glassy top navigation */
.nx-nav {
    background: rgba(8, 9, 11, 0.6) !important;
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid var(--nx-glass-border);
}
/* Customer-login pill → brushed silver */
.nx-nav__cta {
    background: var(--nx-silver-grad) !important;
    color: var(--nx-color-text-invert) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.nx-nav__cta-icon { color: var(--nx-color-text-invert); }

/* Frosted dropdown / drawer */
.nx-nav__drop, .nx-nav__drawer {
    background: rgba(8, 9, 11, 0.78) !important;
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    backdrop-filter: saturate(160%) blur(20px);
}

/* Generic glass surface helpers */
.nx-card, .nx-glass {
    background: var(--nx-glass-bg);
    -webkit-backdrop-filter: var(--nx-glass-blur);
    backdrop-filter: var(--nx-glass-blur);
    border: 1px solid var(--nx-glass-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Metallic silver text helper */
.nx-silver-text {
    background: var(--nx-silver-grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ════════════════ Selected-work card — SHARED (homepage + portfolio) ════════
   Single source of truth so both the homepage "Selected work" grid and the
   portfolio page use an identical card. ═════════════════════════════════════ */
.nx-work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1080px) { .nx-work__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .nx-work__grid { grid-template-columns: 1fr; } }
.nx-work__card {
    background: var(--nx-color-surface); border: 1px solid var(--nx-color-line);
    border-radius: var(--nx-radius-lg); overflow: hidden;
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    transition: border-color var(--nx-dur) var(--nx-ease-out), transform var(--nx-dur) var(--nx-ease-out), background var(--nx-dur) var(--nx-ease-out);
}
.nx-work__card:hover { border-color: var(--nx-color-accent-soft); transform: translateY(-4px); background: var(--nx-color-surface-2); }
.nx-work__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--nx-color-line); background: var(--nx-color-surface-2); }
.nx-work__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s var(--nx-ease-out); }
.nx-work__card:hover .nx-work__media img { transform: scale(1.05); }
.nx-work__body { padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.nx-work__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; font-family: var(--nx-font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--nx-color-text-muted); }
.nx-work__meta .cat { color: var(--nx-color-accent); }
.nx-work__title { font-family: var(--nx-font-display); font-weight: 600; font-size: var(--nx-text-xl); line-height: 1.15; letter-spacing: -.02em; color: var(--nx-color-text); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.3em; }
.nx-work__summary { color: var(--nx-color-text-muted); line-height: 1.55; font-size: var(--nx-text-sm); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
