/*
 * DGM event sites: polish layer for the event heroes (element event-hero).
 *
 * Additive, like event-polish.css: it refines type, spacing, buttons and info cards and adds a few fine
 * layers of detail per hero variant. The richer animations are separate scripts, one per variant, in
 * JavaScript/event-hero-fx/ (a site loads only the ones for the variants it uses). Every rule is written
 * against the variant's own root class or data-event-hero value, never against a site or a page: a variant
 * looks the same on every site that uses it. Take the stylesheet out and the heroes look as before.
 * Switched per site with Tools/EventPolish/switch.php (hero-on / hero-off).
 *
 * Shared contract of all variants:
 *   eyebrow 12 px, tracking at most 0.14em | h1 46 px at 1024, 58 at 1440, 68 at 1920, line height 1.06
 *   (liquid-metal 78, magnetic-field and morphogenesis 70 on one line: their character) |
 *   phones: h1 8.4vw, .is-compact 7.4vw, .is-dense 6.6vw, never below 24 px |
 *   lead 18 px (20 from 1536, 17 on phones), 22 px under the headline |
 *   buttons 50 px high, 16 px, weight 650, radius 10 px (hex-shield 2 px, magnetic-field and morphogenesis
 *   pills: their character) | info card labels 12 px, values 17 px | scroll label 12 px |
 *   phones: no backdrop-filter and no blend layer over the animation.
 *
 * Four parts, one per group of variants:
 *   A  liquid-bubbles, liquid-metal, silk, video-background
 *   B  grain-structure, martensite, composite-weave, hex-shield, magnetic-field
 *   C  artificial-intelligence, bio-materials, cell-structure, light-materials
 *   D  network-node (dark variant only), morphogenesis
 */


/* ==================== part A ==================== */

/*
 * Event heroes, polish round 2 (hero-a): liquid-bubbles, liquid-metal, silk, video-background.
 *
 * Additive overlay, loaded after the CDN bundle. Every rule is scoped to one variant's root class.
 * Shared base contract, implemented per variant:
 *   eyebrow 12 px, tracking <= 0.14em | h1 46 px @1024, 58 px @1440, 68 px @1920, tracking -0.035em, lh 1.06 |
 *   lead 18 px (20 from 1536), lh 1.6, max 30em (about 60 characters) | buttons 50 px high, 16 px weight 650,
 *   21 px side padding, 10 px icon gap, one radius, one hover (lift 2 px + deeper offset shadow), focus ring |
 *   info card labels 12 px, values 17 px, padding >= 16 px, 16 px radius |
 *   rhythm eyebrow > h1 18, h1 > lead 22, lead > buttons 30, buttons > info row 40 | scroll label 12 px, 28 px from the edge.
 * Phones (<= 640 px): one headline scale on all variants but Titanium: h1 8.4vw, .is-compact 7.4vw, .is-dense 6.6vw,
 *   never below 24 px, line height 1.1; no backdrop-filter over a canvas or video, no blend-mode layers.
 *
 * The shared long-headline guard ([data-event-hero] h1.is-compact / .is-dense in exhibitions.scss) sets the
 * size with !important, so the headline sizes below need !important too; `section[...]` lifts the specificity.
 */

/* Fine grain, drawn once: fractal noise, used at 3 to 4 % through each layer's opacity (defined on the hero roots only) */
html .dgm-feh--liquid,
html .dgm-silk-hero,
html .dgm-video-hero {
    --heroA-grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* =====================================================================================================
   1. LIQUID BUBBLES  (.dgm-feh--liquid, H2MSE 2027). The quality bar: light touch only.
   ===================================================================================================== */

/* -- depth 1: a soft vignette, added on top of the existing background stack (same layers below it) */
html .dgm-feh--liquid {
    background:
        radial-gradient(130% 100% at 50% 42%, transparent 58%, color-mix(in oklab, var(--feh-deeper) 55%, transparent) 100%),
        radial-gradient(ellipse at 20% 0%, color-mix(in oklab, var(--feh-bubble) 12%, transparent) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, color-mix(in oklab, var(--feh-primary) 22%, transparent) 0%, transparent 55%),
        linear-gradient(160deg, var(--feh-deep) 0%, var(--feh-deeper) 40%, var(--feh-deep) 100%);
}
/* -- depth 2: light shafts falling from the surface, fading with depth. ::before is the first child, so
      it paints under the hex pattern and the bubbles: the bubbles stay in front of the light. */
html .dgm-feh--liquid::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* soft-edged bands on two uneven periods (233 px and 371 px) at slightly different angles: no stripe pattern */
    background:
        repeating-linear-gradient(104deg,
            transparent 0,
            color-mix(in oklab, var(--feh-bubble) 6%, transparent) 46px,
            transparent 118px,
            transparent 233px),
        repeating-linear-gradient(100.5deg,
            transparent 0,
            color-mix(in oklab, var(--feh-bubble) 4%, transparent) 21px,
            transparent 49px,
            transparent 371px);
    -webkit-mask-image: radial-gradient(90% 75% at 34% 0%, #000 0%, rgb(0 0 0 / 0.55) 45%, transparent 82%);
    mask-image: radial-gradient(90% 75% at 34% 0%, #000 0%, rgb(0 0 0 / 0.55) 45%, transparent 82%);
}

/* -- texture: fine grain over water and bubbles, under the text */
html .dgm-feh--liquid::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: var(--heroA-grain);
    background-size: 220px 220px;
    opacity: 0.035;
    mix-blend-mode: overlay;
}

/* -- eyebrow: 12 px mono, tracking 0.30em -> 0.12em (two lines on desktop) */
html .dgm-feh--liquid [data-parallax="text"] > p.font-mono {
    margin-bottom: 1.125rem;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.12em;
    align-items: flex-start;
    gap: 0.6rem;
    /* a measure of about 70 characters: the long CRM eyebrow then breaks after the separator dot
       ("… Science and Engineering ·" / "Call for Poster Pitch …") instead of inside a phrase */
    max-width: 51em;
}
html .dgm-feh--liquid [data-parallax="text"] > p.font-mono > .dgm-feh__live-dot,
html .dgm-feh--liquid [data-parallax="text"] > p.font-mono > i {
    margin-top: 0.3rem;
    flex: none;
}
html .dgm-feh--liquid [data-parallax="text"] > p.font-mono > i { margin-top: 0.15rem; }

/* -- headline */
html section.dgm-feh--liquid h1,
html section.dgm-feh--liquid h1:is(.is-compact, .is-dense) {
    font-size: clamp(2.75rem, 1.15rem + 2.75vw, 4.25rem) !important; /* beats the !important guard */
    line-height: 1.06 !important;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
/* long slogans (the shared guard marks them is-compact) stop at 62 px, so they keep two lines at 1920 */
html section.dgm-feh--liquid h1.is-compact {
    font-size: clamp(2.75rem, 1.15rem + 2.75vw, 3.875rem) !important;
}
html section.dgm-feh--liquid h1.is-dense {
    font-size: clamp(2.5rem, 1rem + 2.4vw, 3.6rem) !important;
}

/* -- lead */
html .dgm-feh--liquid [data-parallax="text"] > h1 + div {
    max-width: 30em;
    margin-top: 1.375rem;
    font-size: 18px;
    line-height: 1.6;
    color: rgb(255 255 255 / 0.76);
}

/* -- buttons */
html .dgm-feh--liquid [data-parallax="text"] > div.flex:has(.dgm-feh__button) {
    margin-top: 1.875rem;
    gap: 0.75rem;
}
html .dgm-feh--liquid .dgm-feh__button {
    min-height: 3.125rem;
    padding: 0.75rem 1.3125rem;
    gap: 0.625rem;
    border-radius: 0.625rem;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.25;
}
html .dgm-feh--liquid .dgm-feh__button--primary {
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.25) inset, 0 10px 24px -12px color-mix(in oklab, var(--feh-primary) 70%, black);
}
/* one hover for both: lift and a deeper offset shadow (no zero-offset glow) */
html .dgm-feh--liquid .dgm-feh__button:hover {
    transform: translateY(-2px);
}
html .dgm-feh--liquid .dgm-feh__button--primary:hover {
    background: color-mix(in oklab, var(--feh-primary-bright) 86%, white);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.3) inset, 0 16px 30px -14px color-mix(in oklab, var(--feh-primary) 80%, black);
}
html .dgm-feh--liquid .dgm-feh__button--secondary:hover,
html .dgm-feh--liquid .dgm-feh__button--ghost:hover {
    box-shadow: 0 16px 30px -18px rgb(0 0 0 / 0.6);
}
html .dgm-feh--liquid .dgm-feh__button:focus-visible {
    outline: 2px solid var(--feh-bubble);
    outline-offset: 3px;
}

/* -- info card: one glass surface, hairline highlight on top, readable labels */
html .dgm-feh--liquid [data-parallax="logo"] > div.rounded-2xl {
    border-color: rgb(255 255 255 / 0.14);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 24px 48px -28px rgb(0 0 0 / 0.7);
}
html .dgm-feh--liquid [data-parallax="logo"] > div.rounded-2xl > div.border-b > p.font-mono {
    font-size: 12px;
    letter-spacing: 0.14em;
}
html .dgm-feh--liquid [data-parallax="logo"] > div.rounded-2xl .grid > div {
    gap: 0.75rem;
    padding: 1.125rem 1.25rem;
}
html .dgm-feh--liquid [data-parallax="logo"] > div.rounded-2xl .grid > div > i {
    flex: none;
    width: 1.1rem;
    text-align: center;
}
html .dgm-feh--liquid [data-parallax="logo"] > div.rounded-2xl p.font-mono.uppercase:not(.border-b *) {
    margin-bottom: 0.2rem;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: rgb(255 255 255 / 0.66);
}
html .dgm-feh--liquid [data-parallax="logo"] > div.rounded-2xl div.font-extrabold {
    font-size: 17px;
    line-height: 1.25;
}

/* small laptops: the card column is about 380 px, too narrow for two facts side by side (the date wrapped):
   they stack, with the same hairline between them */
@media (min-width: 1024px) and (max-width: 1279px) {
    html .dgm-feh--liquid [data-parallax="logo"] > div.rounded-2xl .grid { grid-template-columns: minmax(0, 1fr); }
    html .dgm-feh--liquid [data-parallax="logo"] > div.rounded-2xl .grid > div { padding: 0.875rem 1.25rem; }
    html .dgm-feh--liquid [data-parallax="logo"] > div.rounded-2xl .grid > div:not(:last-child) {
        border-inline-end-width: 0;
        border-bottom-width: 1px;
        border-bottom-style: solid;
    }
}

/* -- scroll cue: a little higher from the edge */
html .dgm-feh--liquid .dgm-feh__scroll {
    bottom: 1.75rem;
}

@media (min-width: 1536px) {
    html .dgm-feh--liquid [data-parallax="text"] > h1 + div { font-size: 20px; }
}

/* phones: the existing phone spec, with the 12 px floor and a real headline line height */
@media (max-width: 639px) {
    html .dgm-feh--liquid [data-parallax="text"] > p.font-mono {
        margin-bottom: 1rem;
        font-size: 12px;
        letter-spacing: 0.08em;
        line-height: 1.5;
    }
    html section.dgm-feh--liquid h1,
    html section.dgm-feh--liquid h1:is(.is-compact, .is-dense) {
        font-size: max(24px, 8.4vw) !important;
        line-height: 1.1 !important;
        letter-spacing: -0.03em;
    }
    html section.dgm-feh--liquid h1.is-compact { font-size: max(24px, 7.4vw) !important; }
    html section.dgm-feh--liquid h1.is-dense { font-size: max(24px, 6.6vw) !important; }
    /* phones stay cheap: plain grain (no blend mode), no blur over the animated canvas */
    html .dgm-feh--liquid::after { mix-blend-mode: normal; opacity: 0.02; }
    html .dgm-feh--liquid [data-parallax="logo"] > div.rounded-2xl,
    html .dgm-feh--liquid .dgm-feh__button--secondary {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    html .dgm-feh--liquid [data-parallax="logo"] > div.rounded-2xl { background-color: color-mix(in oklab, var(--feh-deep) 70%, transparent); }
    html .dgm-feh--liquid [data-parallax="text"] > h1 + div {
        margin-top: 1rem;
        font-size: 17px; /* phones: 17 px, aligned across all hero sets */
    }
    html .dgm-feh--liquid [data-parallax="text"] > div.flex:has(.dgm-feh__button) {
        margin-top: 1.5rem;
    }
    html .dgm-feh--liquid [data-parallax="logo"] > div.rounded-2xl .grid > div {
        padding: 1rem 1.125rem;
    }
}


/* =====================================================================================================
   2. LIQUID METAL  (.dgm-liquidmetal-hero, Titanium 2027). Bright studio, engineering grid, element tile.
   ===================================================================================================== */

/* -- depth: studio key light from the upper left and a soft falloff into the lower right corner; the floor
      runs out into the page colour (#f8fafc), so the grey studio does not end on a hard line.
      Above the wash and grain (z 1, 2), under the content (z 4). */
html .dgm-liquidmetal-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(to bottom, transparent calc(100% - 6rem), #f8fafc 100%),
        radial-gradient(60% 55% at 6% 0%, rgb(255 255 255 / 0.55), transparent 70%),
        radial-gradient(75% 70% at 100% 100%, color-mix(in oklab, var(--lm-p700) 9%, transparent), transparent 70%);
}
/* -- precise marks: registration corners on every fourth line of the 64 px engineering grid (both start
      at the hero's corner), only around the stage. Drawn inside the wash layer, so under the blob. */
html .dgm-liquidmetal-hero__wash::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cpath d='M.5 0V6.5M0 .5H6.5M256 .5H250.5M.5 256V250.5' stroke='%2334465a' stroke-width='1' fill='none'/%3E%3C/svg%3E") 0 0 / 256px 256px;
    opacity: 0.32;
    -webkit-mask-image: radial-gradient(36% 60% at 78% 50%, #000 0%, rgb(0 0 0 / 0.6) 60%, transparent 100%);
    mask-image: radial-gradient(36% 60% at 78% 50%, #000 0%, rgb(0 0 0 / 0.6) 60%, transparent 100%);
}
@media (max-width: 1023px) {
    html .dgm-liquidmetal-hero__wash::after { display: none; }
}

/* -- desktop: the content block keeps clear of the scroll cue (28 px from the edge, 54 px tall): the bottom
      padding reserves 120 px, the block stays vertically centred */
@media (min-width: 1024px) {
    html .dgm-liquidmetal-hero__content {
        padding-bottom: 7.5rem;
    }
}

/* -- eyebrow: keeps its rule and dot, 12 px, tracking 0.17em -> 0.12em */
html .dgm-liquidmetal-hero__eyebrow {
    margin-bottom: 1.125rem;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: 0.12em;
    text-wrap: balance;
}

/* -- headline: the oversized heavy headline is this variant's direction, so it keeps poster scale
      (62 px @1024, 72 @1280, 78 @1440, 92 @1920; outside the shared size scale on purpose).
      What was wrong before is fixed: letters no longer touch (-0.055em -> -0.045em) and the two lines
      no longer collide (line height 0.91 -> 1). */
html section.dgm-liquidmetal-hero h1.dgm-liquidmetal-hero__headline,
html section.dgm-liquidmetal-hero h1.dgm-liquidmetal-hero__headline:is(.is-compact, .is-dense) {
    max-width: 11em;
    font-size: clamp(3.875rem, 1.4125rem + 3.846vw, 5.75rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.045em;
}
/* (is-compact needs no rule of its own: the shared guard marks this short two-line headline is-compact at
   some widths, because the accent's descender padding pushes it over two lines, so it keeps the scale above.)
   is-dense, a really long slogan, steps down: */
html section.dgm-liquidmetal-hero h1.dgm-liquidmetal-hero__headline.is-dense {
    font-size: clamp(2.75rem, 1.1rem + 2.6vw, 3.9rem) !important;
}
html .dgm-liquidmetal-hero__accent {
    margin-top: 0.02em;
    padding-bottom: 0.08em;
}

/* -- lead */
html .dgm-liquidmetal-hero__lead {
    max-width: 30em;
    margin-top: 1.375rem;
    font-size: 18px;
    line-height: 1.6;
    color: color-mix(in oklab, var(--lm-ink) 78%, transparent);
}

/* -- buttons: semibold 16, one radius, one hover */
html .dgm-liquidmetal-hero__buttons {
    margin-top: 1.875rem;
}
html .dgm-liquidmetal-hero .dgm-feh__button {
    min-height: 3.125rem;
    padding: 0.75rem 1.3125rem;
    gap: 0.625rem;
    border-radius: 0.625rem;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: 0;
}
html .dgm-liquidmetal-hero .dgm-feh__button--primary {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 12px 26px -14px color-mix(in oklab, var(--lm-p900) 80%, transparent);
}
html .dgm-liquidmetal-hero .dgm-feh__button--secondary,
html .dgm-liquidmetal-hero .dgm-feh__button--ghost {
    background: rgb(255 255 255 / 0.78);
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
}
html .dgm-liquidmetal-hero .dgm-feh__button:hover,
html .dgm-liquidmetal-hero .dgm-feh__button:focus-visible {
    transform: translateY(-2px);
}
html .dgm-liquidmetal-hero .dgm-feh__button--primary:hover,
html .dgm-liquidmetal-hero .dgm-feh__button--primary:focus-visible {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 18px 32px -16px color-mix(in oklab, var(--lm-p900) 88%, transparent);
}
html .dgm-liquidmetal-hero .dgm-feh__button--secondary:hover,
html .dgm-liquidmetal-hero .dgm-feh__button--ghost:hover,
html .dgm-liquidmetal-hero .dgm-feh__button--secondary:focus-visible,
html .dgm-liquidmetal-hero .dgm-feh__button--ghost:focus-visible {
    box-shadow: 0 16px 30px -18px color-mix(in oklab, var(--lm-p900) 60%, transparent);
}
html .dgm-liquidmetal-hero .dgm-feh__button:focus-visible {
    outline: 2px solid var(--lm-p700);
    outline-offset: 3px;
}

/* -- event facts: the data rail becomes one light card (same hairline dividers, 16 px radius) */
html .dgm-liquidmetal-hero__specs {
    max-width: 40rem;
    margin-top: 2.5rem;
}
html .dgm-liquidmetal-hero__specs-label {
    margin-bottom: 0.625rem;
    font-size: 12px;
    letter-spacing: 0.12em;
}
html .dgm-liquidmetal-hero__chips {
    overflow: hidden;
    border: 1px solid color-mix(in oklab, var(--lm-p700) 16%, transparent);
    border-radius: 1rem;
    background: rgb(255 255 255 / 0.62);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 1px 2px rgb(15 23 42 / 0.04), 0 14px 32px -22px color-mix(in oklab, var(--lm-p900) 45%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
html .dgm-liquidmetal-hero__chip {
    flex: 1 1 15rem;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
}
html .dgm-liquidmetal-hero__chip + .dgm-liquidmetal-hero__chip {
    padding-left: 1.25rem;
}
html .dgm-liquidmetal-hero__chip > i {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--lm-p) 14%, transparent);
    font-size: 0.875rem;
}
html .dgm-liquidmetal-hero__chip-title {
    margin-bottom: 0.15rem;
    font-size: 12px;
    letter-spacing: 0.1em;
}
html .dgm-liquidmetal-hero__chip-body {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

/* -- element tile: the small type reaches the 12 px floor, a hairline inner frame like a printed table cell */
html .dgm-liquidmetal-hero__material-card {
    width: clamp(136px, 10.5vw + 12px, 164px);
    padding: 0.8rem;
    border-radius: 0.5rem;
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.95),
        inset 0 0 0 4px rgb(255 255 255 / 0.35),
        inset 0 0 0 5px color-mix(in oklab, var(--lm-p700) 10%, transparent),
        0 24px 50px -26px color-mix(in oklab, var(--lm-p900) 55%, transparent);
}
html .dgm-liquidmetal-hero__material-number {
    font-size: 12px;
    letter-spacing: 0.04em;
}
html .dgm-liquidmetal-hero__material-symbol {
    font-size: clamp(2.25rem, 3.2vw, 3.1rem);
}
html .dgm-liquidmetal-hero__material-name {
    font-size: 12px;
    line-height: 1.25;
    letter-spacing: 0.04em;
}

/* -- scroll cue */
html .dgm-liquidmetal-hero__scroll {
    bottom: 1.75rem;
}
html .dgm-liquidmetal-hero__scroll-label {
    font-size: 12px;
    letter-spacing: 0.14em;
}

@media (min-width: 1536px) {
    html .dgm-liquidmetal-hero__lead { font-size: 20px; }
}

/* phones */
@media (max-width: 640px) {
    html .dgm-liquidmetal-hero__eyebrow {
        margin-bottom: 1rem;
        font-size: 12px;
        letter-spacing: 0.08em;
    }
    html .dgm-liquidmetal-hero__pulse { margin-top: 0.2rem; }
    html section.dgm-liquidmetal-hero h1.dgm-liquidmetal-hero__headline,
    html section.dgm-liquidmetal-hero h1.dgm-liquidmetal-hero__headline:is(.is-compact, .is-dense) {
        font-size: clamp(2.65rem, 12.4vw, 3.25rem) !important; /* about the existing phone size; "Where titanium" keeps one line */
        line-height: 1.04 !important;
        letter-spacing: -0.04em;
    }
    html .dgm-liquidmetal-hero__lead { margin-top: 1rem; font-size: 17px; line-height: 1.6; }
    html .dgm-liquidmetal-hero__buttons { margin-top: 1.5rem; }
    html .dgm-liquidmetal-hero__specs { margin-top: 2rem; }
    html .dgm-liquidmetal-hero__chips { grid-template-columns: 1fr; }
    html .dgm-liquidmetal-hero__chip,
    html .dgm-liquidmetal-hero__chip + .dgm-liquidmetal-hero__chip { padding: 0.875rem 1rem; gap: 0.75rem; }
    html .dgm-liquidmetal-hero__chip + .dgm-liquidmetal-hero__chip {
        border-left: 0;
        border-top: 1px solid color-mix(in oklab, var(--lm-p700) 15%, transparent);
    }
    html .dgm-liquidmetal-hero__chip > i { width: 2rem; height: 2rem; font-size: 0.8rem; }
    html .dgm-liquidmetal-hero__chip-title { font-size: 12px; }
    html .dgm-liquidmetal-hero__chip-body { font-size: 16px; }
    html .dgm-liquidmetal-hero__material-card { width: 124px; }
    html .dgm-liquidmetal-hero__chips { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(255 255 255 / 0.86); }
    html .dgm-liquidmetal-hero__material-symbol { font-size: 2.25rem; }
}


/* =====================================================================================================
   3. SILK  (.dgm-silk-hero, SuMAT 2027). Bright, copy on white, silk on the right, glass info card.
   ===================================================================================================== */

/* -- depth and texture over the silk, under the copy: paper grain, a cool falloff in the lower left
      corner so the white side is not flat, and a soft hand-over into the page (#f8fafc) at the bottom */
html .dgm-silk-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to bottom, transparent calc(100% - 7rem), rgb(248 250 252 / 0.7) calc(100% - 2rem), #f8fafc 100%),
        radial-gradient(55% 60% at 0% 100%, color-mix(in srgb, var(--primary) 6%, transparent), transparent 70%),
        radial-gradient(45% 40% at 0% 0%, rgb(255 255 255 / 0.9), transparent 70%);
}
html .dgm-silk-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: var(--heroA-grain);
    background-size: 220px 220px;
    opacity: 0.04;
    mix-blend-mode: multiply;
}

/* -- eyebrow: 12 px, tracking 0.26em -> 0.12em, darker for 4.5:1 on white */
html .dgm-silk-hero__eyebrow {
    margin-bottom: 1.125rem;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: 0.12em;
    color: color-mix(in srgb, var(--primary) 62%, #0f172a);
    text-wrap: balance;
}

/* -- headline */
html section.dgm-silk-hero h1.dgm-silk-hero__headline,
html section.dgm-silk-hero h1.dgm-silk-hero__headline:is(.is-compact, .is-dense) {
    font-size: clamp(2.75rem, 1.15rem + 2.75vw, 4.25rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.035em;
    /* no balancing here: the accent clause is an inline-block, so with plain wrapping it starts its own
       line ("The materials behind a" / "climate-neutral industry."), as before */
    text-wrap: wrap;
}
/* long slogans (the shared guard marks them is-compact) stop at 62 px, so they keep two lines at 1920 */
html section.dgm-silk-hero h1.dgm-silk-hero__headline.is-compact {
    font-size: clamp(2.75rem, 1.15rem + 2.75vw, 3.875rem) !important;
}
html section.dgm-silk-hero h1.dgm-silk-hero__headline.is-dense {
    font-size: clamp(2.5rem, 1rem + 2.4vw, 3.6rem) !important;
}
html .dgm-silk-hero__accent {
    line-height: 1.06;
    padding-bottom: 0.06em;
}

/* -- lead */
html .dgm-silk-hero__lead {
    max-width: 30em;
    margin-top: 1.375rem;
    font-size: 18px;
    line-height: 1.6;
}

/* -- buttons */
html .dgm-silk-hero__buttons {
    gap: 0.75rem;
    margin-top: 1.875rem;
}
html .dgm-silk-hero__btn {
    min-height: 3.125rem;
    padding: 0.75rem 1.3125rem;
    gap: 0.625rem;
    border-radius: 0.625rem;
    font-size: 1rem;
    font-weight: 650; /* the white-on-teal label is only 2.8:1 in the brand colour: weight keeps it legible */
    line-height: 1.25;
}
html .dgm-silk-hero__btn--secondary {
    border-width: 1px;
}
html .dgm-silk-hero__btn--primary {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2), 0 12px 26px -14px color-mix(in srgb, var(--primary) 75%, #0f172a);
}
html .dgm-silk-hero__btn--primary:hover {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2), 0 18px 32px -16px color-mix(in srgb, var(--primary) 85%, #0f172a);
}
html .dgm-silk-hero__btn--secondary:hover,
html .dgm-silk-hero__btn--ghost:hover {
    box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--primary) 60%, #0f172a);
}
html .dgm-silk-hero__btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--primary) 70%, #0f172a);
    outline-offset: 3px;
    transform: translateY(-2px);
}

/* -- right column: logo and card share one right edge and one width */
@media (min-width: 1024px) {
    html .dgm-silk-hero__content {
        grid-template-columns: 1.2fr 0.8fr;
    }
    html .dgm-silk-hero__panel-wrap {
        gap: 1.5rem;
    }
    html .dgm-silk-hero__panel {
        margin-inline: auto 0;
    }
    html .dgm-silk-hero__logo img {
        margin-right: 0;
    }
}

/* -- info card: 16 px radius, one glass surface, hairline highlight on top */
html .dgm-silk-hero__panel {
    max-width: 31rem;
    border-radius: 1rem;
    border-color: rgb(255 255 255 / 0.9);
    background: rgb(255 255 255 / 0.8);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.95),
        0 1px 2px rgb(15 23 42 / 0.05),
        0 26px 50px -30px color-mix(in srgb, var(--primary) 70%, #0f172a);
}
html .dgm-silk-hero__panel-label {
    padding: 0.8rem 1.25rem;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: color-mix(in srgb, var(--primary) 62%, #0f172a);
}
html .dgm-silk-hero__card {
    gap: 0.75rem;
    padding: 1.125rem 1.25rem;
}
html .dgm-silk-hero__card-ico {
    width: 2rem;
    height: 2rem;
    border-radius: 0.625rem;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 16%, transparent);
    font-size: 0.9rem;
}
html .dgm-silk-hero__card-title {
    margin-bottom: 0.2rem;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: #526075;
}
html .dgm-silk-hero__card-body {
    font-size: 17px;
    line-height: 1.25;
}

/* small laptops: the right column is about 380 px, too narrow for two facts side by side (the date wrapped) */
@media (min-width: 1024px) and (max-width: 1279px) {
    html .dgm-silk-hero__cards { grid-template-columns: minmax(0, 1fr); }
    html .dgm-silk-hero__card,
    html .dgm-silk-hero__card:nth-child(odd) { border-right: 0; }
    html .dgm-silk-hero__card:nth-child(n + 2) { border-top: 1px solid color-mix(in srgb, var(--primary) 9%, #eef2f7); }
    html .dgm-silk-hero__card { padding: 0.875rem 1.25rem; }
}

/* -- scroll cue */
html .dgm-silk-hero__scroll {
    z-index: 3;
    bottom: 1.75rem;
}
html .dgm-silk-hero__scroll-label {
    font-size: 12px;
    letter-spacing: 0.14em;
}

@media (min-width: 1536px) {
    html .dgm-silk-hero__lead { font-size: 20px; }
}

/* tablets: stacked and centred, the card stays centred */
@media (max-width: 1023px) {
    html .dgm-silk-hero__lead { margin-inline: auto; }
}

/* phones */
@media (max-width: 640px) {
    html .dgm-silk-hero__eyebrow {
        margin-bottom: 1rem;
        font-size: 12px;
        letter-spacing: 0.08em;
    }
    html .dgm-silk-hero__pulse { margin-top: 0.22rem; flex: none; }
    /* centred on phones: balancing broke inside the event name and left the dot apart from the text; a measure of
       25em puts the break after the separator dot ("… Summit ·" / "Call for Papers Open") */
    html .dgm-silk-hero__eyebrow { max-width: 25em; margin-inline: auto; text-wrap: wrap; }
    html section.dgm-silk-hero h1.dgm-silk-hero__headline,
    html section.dgm-silk-hero h1.dgm-silk-hero__headline:is(.is-compact, .is-dense) {
        font-size: max(24px, 8.4vw) !important;
        line-height: 1.1 !important;
        letter-spacing: -0.03em;
    }
    html section.dgm-silk-hero h1.dgm-silk-hero__headline.is-compact { font-size: max(24px, 7.4vw) !important; }
    html section.dgm-silk-hero h1.dgm-silk-hero__headline.is-dense { font-size: max(24px, 6.6vw) !important; }
    /* phones stay cheap: plain grain, no blur over the animated silk */
    html .dgm-silk-hero::before { mix-blend-mode: normal; opacity: 0.025; }
    html .dgm-silk-hero__panel { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(255 255 255 / 0.92); }
    html .dgm-silk-hero__lead { margin-top: 1rem; font-size: 17px; line-height: 1.6; }
    html .dgm-silk-hero__buttons { margin-top: 1.5rem; }
    /* the two facts stack on phones too: side by side the date wrapped ("08 - 10 Sep / 2027") */
    html .dgm-silk-hero__cards { grid-template-columns: minmax(0, 1fr); }
    html .dgm-silk-hero__card,
    html .dgm-silk-hero__card:nth-child(odd) { border-right: 0; }
    html .dgm-silk-hero__card:nth-child(n + 2) { border-top: 1px solid color-mix(in srgb, var(--primary) 9%, #eef2f7); }
    html .dgm-silk-hero__card { justify-content: center; gap: 0.625rem; padding: 0.75rem 1rem; }
    html .dgm-silk-hero__card-ico { width: 2rem; height: 2rem; font-size: 0.8rem; }
    html .dgm-silk-hero__card-title { font-size: 12px; letter-spacing: 0.08em; }
    html .dgm-silk-hero__card-body { font-size: 15px; }
    html .dgm-silk-hero__panel-label { font-size: 12px; letter-spacing: 0.12em; }
}


/* =====================================================================================================
   4. VIDEO BACKGROUND  (.dgm-video-hero, ICAA 2026). Video behind a dark wash, logo and glass card right.
   ===================================================================================================== */

/* -- depth over the video, under the copy: a key light from the upper right in the site's colour, so the dark
      wash reads as light falling on metal, not as a grey film. (A film-grain layer with a blend mode was removed:
      nothing with a blend mode, a backdrop blur or a big blurred shadow sits over the playing video.) */
html .dgm-video-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        radial-gradient(55% 60% at 88% 0%, color-mix(in oklab, var(--vh-p300) 12%, transparent), transparent 70%),
        radial-gradient(120% 90% at 50% 120%, rgb(4 6 9 / 0.45), transparent 60%);
}

/* -- eyebrow pill: 12 px, tracking stays 0.12em */
html .dgm-video-hero__eyebrow {
    margin-bottom: 1.125rem;
    padding: 0.42rem 0.9rem 0.42rem 0.75rem;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.12em;
    background: color-mix(in oklab, var(--vh-deep) 78%, transparent);
    text-wrap: balance;
}

/* -- content starts on the header logo's line (as in the other heroes); the copy column gains 80 px,
      so the long slogan's first clause fits on one line */
@media (min-width: 1024px) {
    html .dgm-video-hero__content {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
    /* the right column ends on the header's right line */
    html .dgm-video-hero__panel-wrap {
        justify-self: end;
    }
}
/* small laptops: the right column is too narrow for two facts side by side (the date broke) */
@media (min-width: 1024px) and (max-width: 1279px) {
    html .dgm-video-hero__cards { grid-template-columns: 1fr; }
    html .dgm-video-hero__card:nth-child(2n) { border-left: 0; }
    html .dgm-video-hero__card:nth-child(2) { border-top: 1px solid color-mix(in oklab, var(--vh-p300) 13%, transparent); }
    html .dgm-video-hero__card { padding: 0.875rem 1.25rem; }
}
html .dgm-video-hero__headline {
    max-width: none;
}
html section.dgm-video-hero h1.dgm-video-hero__headline,
html section.dgm-video-hero h1.dgm-video-hero__headline:is(.is-compact, .is-dense) {
    font-size: clamp(2.75rem, 1.15rem + 2.75vw, 4.25rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.035em;
}
/* long slogans (this one has 75 characters) take the lower end of the scale */
html section.dgm-video-hero h1.dgm-video-hero__headline.is-compact {
    font-size: clamp(2.75rem, 1.2rem + 2.4vw, 3.375rem) !important;
}
html section.dgm-video-hero h1.dgm-video-hero__headline.is-dense {
    font-size: clamp(2.5rem, 1rem + 2.2vw, 3.4rem) !important;
}
html .dgm-video-hero__accent {
    margin-top: 0.04em;
    line-height: 1.06;
    padding-bottom: 0.08em;
}

/* -- lead */
html .dgm-video-hero__lead {
    max-width: 30em;
    margin-top: 1.375rem;
    font-size: 18px;
    line-height: 1.6;
}

/* -- buttons */
html .dgm-video-hero__buttons {
    margin-top: 1.875rem;
}
html .dgm-video-hero .dgm-feh__button {
    min-height: 3.125rem;
    padding: 0.75rem 1.3125rem;
    gap: 0.625rem;
    border-radius: 0.625rem;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: 0;
}
/* small, tight shadows only (the bundle's 38 px glow and the buttons' backdrop blur sat over the video) */
html .dgm-video-hero .dgm-feh__button--primary {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 6px 14px -8px color-mix(in oklab, var(--vh-p) 70%, black);
}
html .dgm-video-hero .dgm-feh__button--primary:hover,
html .dgm-video-hero .dgm-feh__button--primary:focus-visible {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), 0 9px 18px -10px color-mix(in oklab, var(--vh-p) 80%, black);
}
html .dgm-video-hero .dgm-feh__button--secondary,
html .dgm-video-hero .dgm-feh__button--ghost {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: color-mix(in oklab, var(--vh-deep) 72%, transparent);
}
html .dgm-video-hero .dgm-feh__button--secondary:hover,
html .dgm-video-hero .dgm-feh__button--ghost:hover,
html .dgm-video-hero .dgm-feh__button--secondary:focus-visible,
html .dgm-video-hero .dgm-feh__button--ghost:focus-visible {
    background: color-mix(in oklab, var(--vh-deep-2) 82%, transparent);
    box-shadow: 0 8px 16px -10px rgb(0 0 0 / 0.7);
}
html .dgm-video-hero .dgm-feh__button:focus-visible {
    outline: 2px solid var(--vh-p200);
    outline-offset: 3px;
}

/* -- right column: logo centred over the card, card at 16 px radius and without the empty lower half */
html .dgm-video-hero__logo {
    margin-bottom: 1.75rem;
}
html .dgm-video-hero__panel {
    border-radius: 1rem;
    border-color: color-mix(in oklab, var(--vh-p300) 22%, transparent);
    /* no backdrop blur and no 70 px shadow over the playing video: a denser surface and a tight shadow */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: color-mix(in oklab, var(--vh-deep) 86%, transparent);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.09), 0 10px 24px -14px rgb(0 0 0 / 0.7);
}
html .dgm-video-hero__panel-label {
    padding: 0.8rem 1.25rem;
    font-size: 12px;
    letter-spacing: 0.14em;
}
html .dgm-video-hero__card {
    align-items: center;
    gap: 0.875rem;
    min-height: 0;
    padding: 1.125rem 1.25rem;
}
html .dgm-video-hero__card > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-top: 0;
    border-radius: 0.625rem;
    background: color-mix(in oklab, var(--vh-p300) 12%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--vh-p300) 18%, transparent);
    font-size: 0.9rem;
}
html .dgm-video-hero__card-title {
    margin-bottom: 0.2rem;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: rgb(232 247 252 / 0.7);
}
html .dgm-video-hero__card-body {
    font-size: 17px;
    line-height: 1.25;
}

/* -- scroll cue */
html .dgm-video-hero__scroll {
    bottom: 1.75rem;
}
html .dgm-video-hero__scroll-label {
    font-size: 12px;
    letter-spacing: 0.14em;
}

@media (min-width: 1536px) {
    html .dgm-video-hero__lead { font-size: 20px; }
}

/* phones and small tablets: clear the menu bar (the eyebrow ran under the logo) */
@media (max-width: 767px) {
    html .dgm-video-hero__content { padding-top: 5.5rem; }
    html .dgm-video-hero__card,
    html .dgm-video-hero__card:nth-child(-n+2) { padding: 0.875rem 1.125rem; }
}
@media (max-width: 640px) {
    html .dgm-video-hero__eyebrow {
        margin-bottom: 1rem;
        padding: 0.32rem 0.75rem;
        font-size: 12px;
        letter-spacing: 0.06em;
    }
    html .dgm-video-hero__pulse { margin-top: 0.22rem; flex: none; }
    html section.dgm-video-hero h1.dgm-video-hero__headline,
    html section.dgm-video-hero h1.dgm-video-hero__headline:is(.is-compact, .is-dense) {
        font-size: max(24px, 8.4vw) !important;
        line-height: 1.1 !important;
        letter-spacing: -0.03em;
    }
    html section.dgm-video-hero h1.dgm-video-hero__headline.is-compact { font-size: max(24px, 7.4vw) !important; }
    html section.dgm-video-hero h1.dgm-video-hero__headline.is-dense { font-size: max(24px, 6.6vw) !important; }
    html .dgm-video-hero__lead { margin-top: 1rem; font-size: 17px; line-height: 1.6; }
    html .dgm-video-hero__buttons { margin-top: 1.5rem; }
    html .dgm-video-hero__card-title { font-size: 12px; }
    html .dgm-video-hero__card-body { font-size: 16px; }
}


/* =====================================================================================================
   Reduced motion: the overlay adds no animation; the button lift on hover goes too.
   ===================================================================================================== */
@media (prefers-reduced-motion: reduce) {
    html .dgm-feh--liquid .dgm-feh__button:hover,
    html .dgm-liquidmetal-hero .dgm-feh__button:is(:hover, :focus-visible),
    html .dgm-video-hero .dgm-feh__button:is(:hover, :focus-visible),
    html .dgm-silk-hero__btn:is(:hover, :focus-visible) {
        transform: none;
    }
}

/* Leads in all four: no single word left on the last line (on phones "Every / angle." broke that way) */
html .dgm-feh--liquid [data-parallax="text"] > h1 + div,
html .dgm-liquidmetal-hero__lead,
html .dgm-silk-hero__lead,
html .dgm-video-hero__lead {
    text-wrap: pretty;
}

/* =====================================================================================================
   Animation round (fx/*.js): canvases the scripts add
   ===================================================================================================== */

/* liquid-bubbles: the drawn bubbles replace the CSS discs; the canvas fills the bubble field */
html .dgm-feh--liquid .dgm-feh__fx-canvas {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
}


/* ==================== part B ==================== */

/*
 * Event hero polish, set B: grain-structure, martensite, composite-weave, hex-shield, magnetic-field.
 *
 * Additive overlay, loaded after the CDN bundle on the conference sites. Every rule is scoped to the
 * variant's own root or element class. Nothing here touches the canvases or the header.
 *
 * Shared type system (contract v2, same for every hero builder):
 *   eyebrow 12 px, tracking <= 0.14em, <= 2 lines
 *   h1 46 px @1024, 58 px @1440, 61 px @1536, cap 68 px @1920, tracking -0.035em, line height 1.06
 *      (magnetic-field keeps its approved large one-liner, 70 px @1440)
 *   h1 on phones (<= 640 px): 8.4vw, .is-compact 7.4vw, .is-dense 6.6vw, never below 24 px, line height 1.1
 *      (magnetic-field keeps its one step more, 36.8 px)
 *   lead 18 px (20 px from 1536), 22 px under the headline, line height 1.6, ~60 characters per line
 *   buttons 50 px high, 16 px, weight 650, radius 10 px (hex-shield keeps 2 px, magnetic-field its pill),
 *      21 px side padding, 10 px icon gap
 *   nothing set here is below 12 px (scroll label 12 px)
 *   info card labels 12 px, values 17 px bold, 16 px+ padding, hairline dividers, 16 px radius
 *   rhythm eyebrow > h1 18 px, h1 > lead 22 px, lead > buttons 30 px, buttons > info >= 32 px
 *
 * The length classes .is-compact / .is-dense on the h1 come from main.js and carry !important in
 * exhibitions.scss, so the size steps that replace them here need !important too.
 */

/* =====================================================================================
   0. The three split heroes share one layout (copy left, wordmark + panel right):
      grain-structure (.dgm-grain-hero), martensite (.dgm-martensite-hero),
      composite-weave (.dgm-weave-hero). Their common type and panel rules live here,
      the detail layers per variant follow in sections 1 to 3.
   ===================================================================================== */

html .dgm-grain-hero {
    --hb-p: var(--gs-p);
    --hb-p200: var(--gs-p200);
    --hb-p300: var(--gs-p300);
    --hb-deep: var(--gs-deep);
    --hb-ink: var(--gs-ink-soft);
}
html .dgm-martensite-hero {
    --hb-p: var(--mt-p);
    --hb-p200: var(--mt-p200);
    --hb-p300: var(--mt-p300);
    --hb-deep: var(--mt-deep);
    --hb-ink: var(--mt-ink-soft);
}
html .dgm-weave-hero {
    --hb-p: var(--cw-p);
    --hb-p200: var(--cw-p200);
    --hb-p300: var(--cw-p300);
    --hb-deep: var(--cw-deep);
    --hb-ink: var(--cw-ink-soft);
}

html :is(.dgm-grain-hero, .dgm-martensite-hero, .dgm-weave-hero) ::selection {
    background: color-mix(in oklab, var(--hb-p300) 42%, transparent);
    color: #fff;
}

/* eyebrow pill: 12 px, calmer tracking */
html :is(.dgm-grain-hero__eyebrow, .dgm-martensite-hero__eyebrow, .dgm-weave-hero__eyebrow) {
    gap: 0.6rem;
    margin-bottom: 1.125rem;
    padding: 0.42rem 0.9rem 0.42rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1.4;
    letter-spacing: 0.1em;
    align-items: flex-start;
    max-width: 100%;
}
html :is(.dgm-grain-hero__pulse, .dgm-martensite-hero__pulse, .dgm-weave-hero__pulse),
html :is(.dgm-grain-hero__eyebrow, .dgm-martensite-hero__eyebrow, .dgm-weave-hero__eyebrow) > i {
    flex: none;
    margin-top: 0.3em;
}

/* headline: tighter tracking, one line pitch, the accent line no longer adds its own gap */
html :is(.dgm-grain-hero__headline, .dgm-martensite-hero__headline, .dgm-weave-hero__headline) {
    max-width: 13.5em;
    letter-spacing: -0.035em;
    line-height: 1.06;
}
html :is(.dgm-grain-hero__accent, .dgm-martensite-hero__accent, .dgm-weave-hero__accent) {
    margin-top: 0;
    line-height: 1.1;
    /* the padding keeps descenders inside the clipped gradient */
    padding-bottom: 0.1em;
}
@media (min-width: 641px) {
    html :is(.dgm-grain-hero__headline, .dgm-martensite-hero__headline, .dgm-weave-hero__headline) {
        font-size: clamp(2.375rem, 1.03rem + 2.885vw, 4.25rem);
    }
    /* long slogans: one step down instead of the bundle's 49.6 px cap (overrides an !important rule) */
    html [data-event-hero] h1:is(.dgm-grain-hero__headline, .dgm-martensite-hero__headline, .dgm-weave-hero__headline).is-compact {
        font-size: clamp(2.25rem, 1.2125rem + 2.404vw, 3.875rem) !important;
        line-height: 1.06 !important;
    }
    html [data-event-hero] h1:is(.dgm-grain-hero__headline, .dgm-martensite-hero__headline, .dgm-weave-hero__headline).is-dense {
        font-size: clamp(2rem, 1.1rem + 1.9vw, 3.25rem) !important;
        line-height: 1.08 !important;
    }
}

/* lead: 18 px, about 60 characters per line */
html :is(.dgm-grain-hero__lead, .dgm-martensite-hero__lead, .dgm-weave-hero__lead) {
    max-width: 30em;
    margin-top: 1.375rem;
    font-size: 1.125rem;
    line-height: 1.6;
}
@media (min-width: 1536px) {
    html :is(.dgm-grain-hero__lead, .dgm-martensite-hero__lead, .dgm-weave-hero__lead) {
        font-size: 1.25rem;
    }
}

/* buttons: one height, one radius, one hover, a visible focus ring */
html :is(.dgm-grain-hero__buttons, .dgm-martensite-hero__buttons, .dgm-weave-hero__buttons) {
    gap: 0.75rem;
    margin-top: 1.875rem;
}
html :is(.dgm-grain-hero, .dgm-martensite-hero, .dgm-weave-hero) .dgm-feh__button {
    gap: 0.625rem;
    min-height: 3.125rem;
    padding: 0 1.3125rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: 0;
}
html :is(.dgm-grain-hero, .dgm-martensite-hero, .dgm-weave-hero) .dgm-feh__button > i {
    font-size: 0.9375rem;
}
html :is(.dgm-grain-hero, .dgm-martensite-hero, .dgm-weave-hero) .dgm-feh__button:focus-visible {
    outline: 2px solid var(--hb-p200);
    outline-offset: 3px;
}
html :is(.dgm-grain-hero, .dgm-martensite-hero, .dgm-weave-hero) .dgm-feh__button:active {
    transform: translateY(0);
}
/* the outline button gets the same 1 px edge light as the panel, so both read as one family */
html :is(.dgm-grain-hero, .dgm-martensite-hero, .dgm-weave-hero) :is(.dgm-feh__button--secondary, .dgm-feh__button--ghost) {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}

/* wordmark + panel: one lockup. From tablet width up the wordmark moves onto the panel's own
   surface as its header, so name, format and dates read as one event card. Without a panel the
   wordmark keeps floating as before. */
html :is(.dgm-grain-hero__panel-wrap, .dgm-martensite-hero__panel-wrap, .dgm-weave-hero__panel-wrap) {
    width: min(100%, 440px);
}
@media (min-width: 641px) {
    html :is(.dgm-grain-hero__panel-wrap, .dgm-martensite-hero__panel-wrap, .dgm-weave-hero__panel-wrap):has(> [class$="__panel"]) {
        overflow: hidden;
        border: 1px solid color-mix(in oklab, var(--hb-p300) 24%, transparent);
        border-radius: 16px;
        background:
            linear-gradient(180deg, color-mix(in oklab, var(--hb-p300) 7%, transparent), transparent 46%),
            color-mix(in oklab, var(--hb-deep) 62%, transparent);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        box-shadow: 0 30px 64px -26px rgb(0 0 0 / 0.6), 0 2px 6px rgb(0 0 0 / 0.18), inset 0 1px 0 rgb(255 255 255 / 0.07);
    }
    html :is(.dgm-grain-hero__panel-wrap, .dgm-martensite-hero__panel-wrap, .dgm-weave-hero__panel-wrap):has(> [class$="__panel"]) > :is(.dgm-grain-hero__logo, .dgm-martensite-hero__logo, .dgm-weave-hero__logo) {
        margin: 0;
        padding: 1.75rem 1.75rem 1.5rem;
    }
    html :is(.dgm-grain-hero__panel-wrap, .dgm-martensite-hero__panel-wrap, .dgm-weave-hero__panel-wrap):has(> [class$="__panel"]) > :is(.dgm-grain-hero__logo, .dgm-martensite-hero__logo, .dgm-weave-hero__logo)::before {
        inset: 0;
        opacity: 0.7;
    }
    html :is(.dgm-grain-hero__panel-wrap, .dgm-martensite-hero__panel-wrap, .dgm-weave-hero__panel-wrap):has(> [class$="__panel"]) > :is(.dgm-grain-hero__logo, .dgm-martensite-hero__logo, .dgm-weave-hero__logo) img {
        display: block;
        width: min(100%, 300px);
        max-height: 6rem;
        margin: 0 auto;
        object-fit: contain;
    }
    /* the panel inside the card drops its own surface: one card, hairlines inside */
    html :is(.dgm-grain-hero__panel-wrap, .dgm-martensite-hero__panel-wrap, .dgm-weave-hero__panel-wrap) > :is(.dgm-grain-hero__logo, .dgm-martensite-hero__logo, .dgm-weave-hero__logo) + :is(.dgm-grain-hero__panel, .dgm-martensite-hero__panel, .dgm-weave-hero__panel) {
        border: 0;
        border-top: 1px solid color-mix(in oklab, var(--hb-p300) 16%, transparent);
        border-radius: 0;
        background: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: none;
    }
}

/* info panel */
html :is(.dgm-grain-hero__panel, .dgm-martensite-hero__panel, .dgm-weave-hero__panel) {
    border-radius: 16px;
    box-shadow: 0 28px 60px -24px rgb(0 0 0 / 0.55), 0 2px 6px rgb(0 0 0 / 0.2), inset 0 1px 0 rgb(255 255 255 / 0.07);
}
html :is(.dgm-grain-hero__panel-label, .dgm-martensite-hero__panel-label, .dgm-weave-hero__panel-label) {
    padding: 0.8rem 1.125rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    line-height: 1.35;
}
html :is(.dgm-grain-hero__card, .dgm-martensite-hero__card, .dgm-weave-hero__card) {
    min-height: 0;
    gap: 0.75rem;
    padding: 1.125rem 1.125rem 1.25rem;
}
html :is(.dgm-grain-hero__card, .dgm-martensite-hero__card, .dgm-weave-hero__card) > i {
    width: 1rem;
    margin-top: 0.12rem;
    font-size: 0.9375rem;
    text-align: center;
}
html :is(.dgm-grain-hero__card-title, .dgm-martensite-hero__card-title, .dgm-weave-hero__card-title) {
    margin-bottom: 0.375rem;
    color: color-mix(in oklab, var(--hb-ink) 74%, transparent);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    line-height: 1.3;
}
html :is(.dgm-grain-hero__card-body, .dgm-martensite-hero__card-body, .dgm-weave-hero__card-body) {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.005em;
}

/* scroll cue: readable label, 28 px above the edge */
html :is(.dgm-grain-hero__scroll, .dgm-martensite-hero__scroll, .dgm-weave-hero__scroll) {
    bottom: 1.75rem;
}
html :is(.dgm-grain-hero__scroll-label, .dgm-martensite-hero__scroll-label, .dgm-weave-hero__scroll-label) {
    font-size: 12px;
    letter-spacing: 0.14em;
}

/* seam: a fine lit edge where the dark hero meets the light page */
html :is(.dgm-grain-hero, .dgm-martensite-hero, .dgm-weave-hero)::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 3;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--hb-p200) 30%, transparent) 30%, color-mix(in oklab, var(--hb-p200) 30%, transparent) 70%, transparent);
    pointer-events: none;
}

/* shared fine grain for the three split heroes (2.5 %, sits in the wash above the canvas) */
html :is(.dgm-grain-hero__wash, .dgm-martensite-hero__wash, .dgm-weave-hero__wash)::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* small desktops: two value columns would break the date onto two lines, so the entries stack */
@media (min-width: 1024px) and (max-width: 1279px) {
    html :is(.dgm-grain-hero__cards, .dgm-martensite-hero__cards, .dgm-weave-hero__cards) {
        grid-template-columns: 1fr;
    }
    html :is(.dgm-grain-hero__card, .dgm-martensite-hero__card, .dgm-weave-hero__card):nth-child(n) {
        border-left: 0;
        border-top: 1px solid color-mix(in oklab, var(--hb-p300) 12%, transparent);
        padding-block: 1rem;
    }
    html :is(.dgm-grain-hero__card, .dgm-martensite-hero__card, .dgm-weave-hero__card):first-child {
        border-top: 0;
    }
}

/* phones */
@media (max-width: 640px) {
    html :is(.dgm-grain-hero__content, .dgm-martensite-hero__content, .dgm-weave-hero__content) {
        padding-bottom: 2.5rem;
    }
    html :is(.dgm-grain-hero__eyebrow, .dgm-martensite-hero__eyebrow, .dgm-weave-hero__eyebrow) {
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding: 0.38rem 0.75rem 0.38rem 0.65rem;
        font-size: 0.75rem;
        letter-spacing: 0.06em;
        line-height: 1.4;
    }
    html :is(.dgm-grain-hero__lead, .dgm-martensite-hero__lead, .dgm-weave-hero__lead) {
        margin-top: 1.125rem;
        font-size: 1.0625rem;
        line-height: 1.6;
    }
    html :is(.dgm-grain-hero__buttons, .dgm-martensite-hero__buttons, .dgm-weave-hero__buttons) {
        gap: 0.625rem;
        margin-top: 1.75rem;
    }
    /* on one column the lockup follows the column: left-aligned, wordmark at its phone size */
    html :is(.dgm-grain-hero__logo, .dgm-martensite-hero__logo, .dgm-weave-hero__logo) {
        margin-bottom: 1rem;
        text-align: left;
    }
    html :is(.dgm-grain-hero__logo, .dgm-martensite-hero__logo, .dgm-weave-hero__logo) img {
        display: block;
        width: clamp(165px, 50vw, 220px);
    }
    html :is(.dgm-grain-hero__panel-label, .dgm-martensite-hero__panel-label, .dgm-weave-hero__panel-label) {
        padding: 0.7rem 1rem;
        font-size: 0.75rem;
    }
    html :is(.dgm-grain-hero__card, .dgm-martensite-hero__card, .dgm-weave-hero__card) {
        padding: 1rem;
        gap: 0.75rem;
    }
    html :is(.dgm-grain-hero__card-title, .dgm-martensite-hero__card-title, .dgm-weave-hero__card-title) {
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
    }
    html :is(.dgm-grain-hero__card-body, .dgm-martensite-hero__card-body, .dgm-weave-hero__card-body) {
        font-size: 1rem;
    }
}
@media (min-width: 641px) and (max-width: 1023px) {
    /* single column on tablets: the lockup aligns with the copy instead of floating in the middle */
    html :is(.dgm-grain-hero__panel-wrap, .dgm-martensite-hero__panel-wrap, .dgm-weave-hero__panel-wrap) {
        justify-self: start;
    }
    html :is(.dgm-grain-hero__logo, .dgm-martensite-hero__logo, .dgm-weave-hero__logo) img {
        width: min(100%, 340px);
    }
}

/* =====================================================================================
   1. grain-structure (.dgm-grain-hero): polarised-light micrograph.
      Adds an eyepiece light falloff and a fine graticule along the right edge.
   ===================================================================================== */

/* eyepiece falloff: the field is lit in the middle and drops off towards the corners */
html .dgm-grain-hero__wash::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 95% at 70% 46%, transparent 52%, rgb(6 7 10 / 0.42) 100%);
    pointer-events: none;
}
/* graticule: fine 10 µm ticks down the right edge, a longer tick every fifth, like an eyepiece scale */
html .dgm-grain-hero__canvas::after {
    content: "";
    position: absolute;
    top: 9.5rem;
    bottom: 6rem;
    right: 1.75rem;
    width: 12px;
    opacity: 0.32;
    background:
        repeating-linear-gradient(180deg, color-mix(in oklab, var(--gs-p200) 70%, white) 0 1px, transparent 1px 40px) right top / 12px 100% no-repeat,
        repeating-linear-gradient(180deg, color-mix(in oklab, var(--gs-p200) 70%, white) 0 1px, transparent 1px 8px) right top / 6px 100% no-repeat,
        linear-gradient(color-mix(in oklab, var(--gs-p200) 70%, white), color-mix(in oklab, var(--gs-p200) 70%, white)) right top / 1px 100% no-repeat;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
    pointer-events: none;
}
@media (max-width: 1023px) {
    html .dgm-grain-hero__canvas::after { display: none; }
}

/* =====================================================================================
   2. martensite (.dgm-martensite-hero): the sparse one.
      A light pool behind the lockup and a corner falloff; the animated plates come from
      fx/martensite.js.
   ===================================================================================== */

/* the martensite plates are drawn by fx/martensite.js now (they grow along the transformation front);
   the static plate mask of round 1 is gone so they do not double */
/* depth: a soft light pool behind the lockup, the corners fall off */
html .dgm-martensite-hero__wash::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(42% 46% at 74% 48%, color-mix(in oklab, var(--mt-p) 14%, transparent), transparent 70%),
        radial-gradient(125% 100% at 62% 45%, transparent 55%, rgb(7 8 11 / 0.5) 100%);
    pointer-events: none;
}

/* =====================================================================================
   3. composite-weave (.dgm-weave-hero): the flat carbon fabric.
      A corner falloff and the laminate build-up as the hero's bottom edge; the light
      travelling over the tows comes from fx/composite-weave.js.
   ===================================================================================== */

/* the light across the fibres is animated by fx/composite-weave.js now; the static overlay band of
   round 1 is gone so the two do not double */
html .dgm-weave-hero__wash::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(125% 100% at 64% 40%, transparent 50%, rgb(7 8 11 / 0.55) 100%);
    pointer-events: none;
}
/* laminate edge: five plies, 0/90 alternating (lines for fibre lengths, dots for fibre ends) */
html .dgm-weave-hero::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 3;
    height: 15px;
    opacity: 0.5;
    background:
        linear-gradient(color-mix(in oklab, var(--cw-p200) 50%, transparent), color-mix(in oklab, var(--cw-p200) 50%, transparent)) 0 2px / 100% 1px no-repeat,
        radial-gradient(circle, color-mix(in oklab, var(--cw-p200) 60%, transparent) 0.6px, transparent 1px) 0 4px / 4px 3px repeat-x,
        linear-gradient(color-mix(in oklab, var(--cw-p200) 38%, transparent), color-mix(in oklab, var(--cw-p200) 38%, transparent)) 0 8px / 100% 1px no-repeat,
        radial-gradient(circle, color-mix(in oklab, var(--cw-p200) 45%, transparent) 0.6px, transparent 1px) 2px 10px / 4px 3px repeat-x,
        linear-gradient(color-mix(in oklab, var(--cw-p200) 26%, transparent), color-mix(in oklab, var(--cw-p200) 26%, transparent)) 0 14px / 100% 1px no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    pointer-events: none;
}

/* =====================================================================================
   4. hex-shield (.dgm-hex-shield-hero): tactical green, corner marks, coordinates.
      The lower third gets a measurement rail: the info tiles, a ticked rule running to
      the right edge and the coordinate readout parked at its end. A fine ruler runs
      down the left frame between the corner marks.
   ===================================================================================== */

html .dgm-hex-shield-hero ::selection {
    background: color-mix(in srgb, var(--hs-mint) 40%, transparent);
    color: #fff;
}

/* eyebrow: 12 px, the square tag keeps its form */
html .dgm-hex-shield-hero__eyebrow {
    gap: 0.6rem;
    margin-bottom: 1.125rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    line-height: 1.4;
    align-items: flex-start;
    max-width: 100%;
}
html .dgm-hex-shield-hero__pulse,
html .dgm-hex-shield-hero__eyebrow > i {
    margin-top: 0.3em;
}
html .dgm-hex-shield-hero__logo {
    margin-bottom: 1.25rem;
}
html .dgm-hex-shield-hero__logo img {
    width: clamp(240px, 26vw, 400px);
}

html .dgm-hex-shield-hero__headline {
    letter-spacing: -0.035em;
    line-height: 1.06;
}
html .dgm-hex-shield-hero__accent {
    line-height: inherit;
}
@media (min-width: 641px) {
    html .dgm-hex-shield-hero__headline {
        font-size: clamp(2.375rem, 1.03rem + 2.885vw, 4.25rem);
    }
    html [data-event-hero] h1.dgm-hex-shield-hero__headline.is-compact {
        font-size: clamp(2.25rem, 1.2125rem + 2.404vw, 3.875rem) !important;
        line-height: 1.06 !important;
    }
    html [data-event-hero] h1.dgm-hex-shield-hero__headline.is-dense {
        font-size: clamp(2rem, 1.1rem + 1.9vw, 3.25rem) !important;
        line-height: 1.08 !important;
    }
}

html .dgm-hex-shield-hero__lead {
    max-width: 30em;
    margin-top: 1.375rem;
    color: rgb(255 255 255 / 0.8);
    font-size: 1.125rem;
    line-height: 1.6;
}
@media (min-width: 1536px) {
    html .dgm-hex-shield-hero__lead { font-size: 1.25rem; }
}

html .dgm-hex-shield-hero__ctas {
    gap: 0.75rem;
    margin-top: 1.875rem;
}
html .dgm-hex-shield-hero__button,
html .dgm-hex-shield-hero__button--ghost {
    gap: 0.625rem;
    min-height: 3.125rem;
    padding: 0 1.3125rem;
    border-radius: 2px;    /* the square tag is part of this hero's character (as the bundle) */
    font-size: 1rem;
    font-weight: 650;
}
html .dgm-hex-shield-hero__button > i {
    font-size: 0.9375rem;
}
/* one hover for both: lift 2 px; the white flood on primary stays, the glow halo becomes an offset shadow */
html .dgm-hex-shield-hero__button:hover {
    transform: translateY(-2px);
}
html .dgm-hex-shield-hero__button--primary:hover {
    box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--hs-mint) 55%, transparent);
}
html .dgm-hex-shield-hero__button:active {
    transform: translateY(0);
}

/* info tiles: 12 px labels, 17 px values, same chamfer */
html .dgm-hex-shield-hero__stats-label {
    margin-bottom: 0.75rem;
    color: color-mix(in srgb, var(--hs-tint) 72%, transparent);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}
html .dgm-hex-shield-hero__tile {
    min-height: 5.25rem;
    padding: 1rem 2.75rem 1rem 1.125rem;
    background: color-mix(in srgb, var(--hs-deep) 62%, transparent);
}
html .dgm-hex-shield-hero__tile-label {
    color: color-mix(in srgb, var(--hs-tint) 72%, transparent);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    line-height: 1.3;
}
html .dgm-hex-shield-hero__tile-value {
    margin-top: 0.375rem;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
}
html .dgm-hex-shield-hero__tile-icon {
    right: 1.125rem;
    bottom: 1.05rem;
    font-size: 0.9375rem;
}

/* the measurement rail: tiles keep their width, the rule fills the rest of the row */
@media (min-width: 1024px) {
    html .dgm-hex-shield-hero__stats {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    html .dgm-hex-shield-hero__tile {
        flex: 0 1 18.5rem;
    }
    html .dgm-hex-shield-hero__stats::after {
        content: "";
        flex: 1 1 4rem;
        align-self: center;
        height: 9px;
        margin: 0 15.5rem 0 0.75rem;
        opacity: 0.55;
        background:
            linear-gradient(color-mix(in srgb, var(--hs-mint) 40%, transparent), color-mix(in srgb, var(--hs-mint) 40%, transparent)) 0 50% / 100% 1px no-repeat,
            repeating-linear-gradient(90deg, color-mix(in srgb, var(--hs-mint) 55%, transparent) 0 1px, transparent 1px 64px) 0 0 / 100% 9px no-repeat,
            repeating-linear-gradient(90deg, color-mix(in srgb, var(--hs-mint) 35%, transparent) 0 1px, transparent 1px 8px) 0 2px / 100% 5px no-repeat;
        /* fades in from the tiles and arrives solid at the readout */
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
        mask-image: linear-gradient(90deg, transparent, #000 30%);
    }
    /* the readout sits at the end of the rail, on the tiles' centre line, flush with the content edge */
    html .dgm-hex-shield-hero__readout {
        top: auto;
        right: max(2.5rem, calc((100% - 1280px) / 2 + 2.5rem));
        bottom: calc(3rem + (5.25rem - 1.875rem) / 2);
        height: 1.875rem;
        padding: 0 0.75rem;
        font-size: 0.75rem;
        letter-spacing: 0.1em;
        white-space: nowrap;
        color: color-mix(in srgb, var(--hs-tint) 70%, transparent);
    }
}
/* tablets: the readout keeps its corner spot, just legible */
@media (min-width: 641px) and (max-width: 1023px) {
    html .dgm-hex-shield-hero__readout {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }
}

/* the shield's hits read through the stage at more strength; the renderer draws the resting mesh
   correspondingly fainter (fx/hex-shield.js), so the calm state looks as before */
@media (min-width: 641px) {
    html .dgm-hex-shield-hero__stage { opacity: 0.85; }
}

/* left frame ruler between the corner marks */
html .dgm-hex-shield-hero::before {
    content: "";
    position: absolute;
    top: 6.5rem;
    bottom: 6.5rem;
    left: 24px;
    z-index: 2;
    width: 9px;
    opacity: 0.4;
    background:
        repeating-linear-gradient(180deg, color-mix(in srgb, var(--hs-mint) 60%, transparent) 0 1px, transparent 1px 64px) 0 0 / 9px 100% no-repeat,
        repeating-linear-gradient(180deg, color-mix(in srgb, var(--hs-mint) 45%, transparent) 0 1px, transparent 1px 16px) 0 0 / 4px 100% no-repeat;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
    pointer-events: none;
}
/* depth: the light pools top right and falls off into the corners; seam hairline at the bottom */
html .dgm-hex-shield-hero__vignette::before {
    content: "";
    position: absolute;
    inset: -100% 0 0;
    background: radial-gradient(120% 90% at 60% 35%, transparent 55%, color-mix(in srgb, var(--hs-deep-2) 45%, transparent) 100%);
}
html .dgm-hex-shield-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 3;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--hs-mint) 28%, transparent) 25%, color-mix(in srgb, var(--hs-mint) 28%, transparent) 75%, transparent);
    pointer-events: none;
}

@media (max-width: 1023px) {
    html .dgm-hex-shield-hero::before { display: none; }
}
/* below 1280 the header row starts 24 px from the edge and its wordmark sat on the top corner marks:
   the top pair steps out there, the bottom pair keeps the frame */
@media (max-width: 1279px) {
    html .dgm-hex-shield-hero__corner--tl,
    html .dgm-hex-shield-hero__corner--tr { display: none; }
}
@media (max-width: 640px) {
    html .dgm-hex-shield-hero__content {
        padding-bottom: 2rem;
    }
    html .dgm-hex-shield-hero__eyebrow {
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding: 0.38rem 0.7rem;
        font-size: 0.75rem;
        letter-spacing: 0.06em;
    }
    html .dgm-hex-shield-hero__lead {
        margin-top: 1.125rem;
        font-size: 1.0625rem;
        line-height: 1.6;
    }
    html .dgm-hex-shield-hero__ctas {
        gap: 0.625rem;
        margin-top: 1.75rem;
    }
    /* the readout collided with the header on phones; it is decoration, so it steps out */
    html .dgm-hex-shield-hero__readout { display: none; }
    /* tiles align with the copy column; the corner marks move out to the frame so they no longer cut the tiles */
    html .dgm-hex-shield-hero__stats-wrap { padding: 0 1.25rem 3rem; }
    html .dgm-hex-shield-hero__corner { width: 32px; height: 32px; }
    html .dgm-hex-shield-hero__corner--bl { bottom: 10px; left: 10px; }
    html .dgm-hex-shield-hero__corner--br { bottom: 10px; right: 10px; }
    html .dgm-hex-shield-hero__tile {
        min-height: 0;
        padding: 1rem;
    }
    html .dgm-hex-shield-hero__tile-label { font-size: 0.75rem; letter-spacing: 0.06em; }
    html .dgm-hex-shield-hero__tile-value { font-size: 1rem; }
    html .dgm-hex-shield-hero__tile-icon { display: none; }
}

/* =====================================================================================
   5. magnetic-field (.dgm-magnet-hero): centred composition over dipole field lines.
      The two info cards become one bar with a hairline divider, the type follows the
      shared scale, and the field gets a fine grain and a softer falloff.
   ===================================================================================== */

html .dgm-magnet-hero ::selection {
    background: color-mix(in srgb, var(--mg-light) 40%, transparent);
    color: #fff;
}

html .dgm-magnet-hero__eyebrow {
    gap: 0.6rem;
    margin-bottom: 1.125rem;
    padding: 0.45rem 1rem 0.45rem 0.85rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    line-height: 1.4;
}

html .dgm-magnet-hero__headline {
    letter-spacing: -0.03em;
    line-height: 1.06;
}
/* The large one-line headline is this variant's gesture, so it stays above the shared scale:
   52 px @1024, 63 @1280, 70 @1440, 74 @1536, 80 @1920 (cap: 84 no longer fits the line in the content width). Phones keep their size. */
@media (min-width: 641px) {
    html .dgm-magnet-hero__headline {
        /* the bundle's 24ch cap is narrower than the line at 74 to 84 px; 17em keeps the one-liner on one line */
        max-width: 17em;
        font-size: clamp(2.5rem, 0.48rem + 4.327vw, 5rem);
    }
    html [data-event-hero] h1.dgm-magnet-hero__headline.is-compact {
        font-size: clamp(2.25rem, 0.45rem + 3.7vw, 4.5rem) !important;
        line-height: 1.06 !important;
    }
    html [data-event-hero] h1.dgm-magnet-hero__headline.is-dense {
        font-size: clamp(2rem, 1.1rem + 1.9vw, 3.25rem) !important;
        line-height: 1.08 !important;
    }
}
html .dgm-magnet-hero__lead {
    max-width: 31em;
    margin-top: 1.375rem;
    font-size: 1.125rem;
    line-height: 1.6;
    text-wrap: balance;
}
@media (min-width: 1536px) {
    html .dgm-magnet-hero__lead { font-size: 1.25rem; }
}

html .dgm-magnet-hero__ctas {
    gap: 0.75rem;
    margin-top: 1.875rem;
}
html .dgm-magnet-hero__button,
html .dgm-magnet-hero__button--ghost {
    gap: 0.625rem;
    min-height: 3.125rem;
    padding: 0 1.3125rem;
    border-radius: 25px;   /* pill of the one-line height (50 px); stays a pill, not a lozenge, when a label wraps */
    font-size: 1rem;
    font-weight: 650;
}
html .dgm-magnet-hero__button > i {
    font-size: 0.9375rem;
}
html .dgm-magnet-hero__button:hover {
    transform: translateY(-2px);
}
html .dgm-magnet-hero__button--primary:hover {
    box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--mg-light) 60%, transparent);
}
html .dgm-magnet-hero__button:active {
    transform: translateY(0);
}

/* a little more room for the button row, so four buttons (also the longer English labels) fit one line at 1440 */
@media (min-width: 1280px) {
    html .dgm-magnet-hero__content { max-width: 1240px; }
}

/* one composition: the centred block and the date bar sit together and are centred as a whole in the
   hero, instead of the block floating in the middle and the bar pinned to the bottom with an empty band
   between them. Phones keep their stacked flow. */
@media (min-width: 641px) {
    html .dgm-magnet-hero {
        justify-content: center;
    }
    html .dgm-magnet-hero__content {
        flex: 0 0 auto;
        padding-bottom: 0;
    }
    html .dgm-magnet-hero__cards-wrap {
        padding-top: 2.75rem;
        padding-bottom: 3rem;
    }
}
@media (min-width: 1024px) {
    /* the space under the bar matches the header clearance above the block, so the pair sits optically centred;
       the scroll cue lives in that space */
    html .dgm-magnet-hero__cards-wrap {
        padding-bottom: 5rem;
    }
}

/* info: one bar, hairline between the entries */
html .dgm-magnet-hero__cards-wrap {
    display: flex;
    justify-content: center;
}
html .dgm-magnet-hero__cards {
    gap: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--mg-light) 22%, transparent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--mg-deep-2) 55%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 22px 48px -24px rgb(0 0 0 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.06);
}
html .dgm-magnet-hero__card {
    gap: 0.875rem;
    min-width: 13.5rem;
    padding: 1rem 1.5rem 1rem 1.25rem;
    border: 0;
    border-radius: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
html .dgm-magnet-hero__card + .dgm-magnet-hero__card {
    border-left: 1px solid color-mix(in srgb, var(--mg-light) 16%, transparent);
}
html .dgm-magnet-hero__card:hover {
    transform: none;
}
html .dgm-magnet-hero__card-icon {
    width: 1.125rem;
    font-size: 1.0625rem;
    text-align: center;
}
html .dgm-magnet-hero__card-kind {
    color: color-mix(in srgb, var(--mg-tint) 72%, transparent);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    line-height: 1.3;
}
html .dgm-magnet-hero__card-value {
    margin-top: 0.25rem;
    font-size: 1.0625rem;
    line-height: 1.3;
}

/* scroll cue: 24 px clear of the edge */
html .dgm-magnet-hero__scroll {
    bottom: 1.5rem;
}

/* depth and material: fine grain over the field, a softer edge falloff, lit seam */
html .dgm-magnet-hero__vignette::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html .dgm-magnet-hero__vignette::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(90% 70% at 50% 44%, transparent 60%, color-mix(in srgb, var(--mg-deep-2) 40%, transparent) 100%);
}
html .dgm-magnet-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 3;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--mg-light) 30%, transparent) 30%, color-mix(in srgb, var(--mg-light) 30%, transparent) 70%, transparent);
    pointer-events: none;
}

@media (max-width: 640px) {
    html .dgm-magnet-hero__eyebrow {
        gap: 0.5rem;
        max-width: 100%;
        padding: 0.38rem 0.85rem 0.38rem 0.75rem;
        letter-spacing: 0.08em;
        align-items: flex-start;
        text-align: left;
    }
    html .dgm-magnet-hero__pulse,
    html .dgm-magnet-hero__eyebrow > i { margin-top: 0.3em; }
    html .dgm-magnet-hero__lead {
        font-size: 1.0625rem;
        margin-top: 1.125rem;
    }
    html .dgm-magnet-hero__ctas {
        gap: 0.625rem;
        margin-top: 1.75rem;
    }
    /* long English labels ("To the Expert Panel Permanent Magnets") wrap inside the button instead of touching its edges */
    html .dgm-magnet-hero__button {
        /* a block box (not flex) keeps the icon with the first line when the label wraps; before, the icon
           stood alone at the far left of a centred two-line label */
        display: block;
        align-content: center;
        padding: 0.9rem 1rem;
        white-space: normal;
        text-align: center;
        text-wrap: balance;
        line-height: 1.3;
    }
    html .dgm-magnet-hero__button > i { margin-right: 0.5rem; }
    html .dgm-magnet-hero__cards-wrap { display: block; }
    html .dgm-magnet-hero__cards { flex-direction: column; }
    html .dgm-magnet-hero__card {
        width: 100%;
        padding: 1rem;
    }
    html .dgm-magnet-hero__card + .dgm-magnet-hero__card {
        border-left: 0;
        border-top: 1px solid color-mix(in srgb, var(--mg-light) 16%, transparent);
    }
    html .dgm-magnet-hero__card-value { font-size: 1rem; }
}

/* =====================================================================================
   6. reduced motion: nothing here animates; the hover lifts stop.
   ===================================================================================== */
@media (prefers-reduced-motion: reduce) {
    html :is(.dgm-grain-hero, .dgm-martensite-hero, .dgm-weave-hero) .dgm-feh__button:hover {
        transform: none;
    }
}

/* =====================================================================================
   7. phones (contract v2): one headline scale on every variant, and nothing expensive over the
      animated canvas. The shared length classes carry !important in exhibitions.scss on phones
      too, hence !important and the extra class here.
   ===================================================================================== */
@media (max-width: 640px) {
    html [data-event-hero] h1:is(.dgm-grain-hero__headline, .dgm-martensite-hero__headline, .dgm-weave-hero__headline, .dgm-hex-shield-hero__headline) {
        font-size: max(24px, 8.4vw) !important;
        line-height: 1.1 !important;
    }
    html [data-event-hero] h1:is(.dgm-grain-hero__headline, .dgm-martensite-hero__headline, .dgm-weave-hero__headline, .dgm-hex-shield-hero__headline).is-compact {
        font-size: max(24px, 7.4vw) !important;
    }
    html [data-event-hero] h1:is(.dgm-grain-hero__headline, .dgm-martensite-hero__headline, .dgm-weave-hero__headline, .dgm-hex-shield-hero__headline).is-dense {
        font-size: max(24px, 6.6vw) !important;
    }
    /* no backdrop blur over the animated canvas; panels get a little more body instead */
    html :is(.dgm-grain-hero, .dgm-martensite-hero, .dgm-weave-hero, .dgm-hex-shield-hero, .dgm-magnet-hero) * {
        -webkit-backdrop-filter: none !important;   /* the variant scss sets blur with up to two classes; one rule for all of them needs !important */
        backdrop-filter: none !important;
    }
    html .dgm-magnet-hero__cards { background: color-mix(in srgb, var(--mg-deep-2) 82%, transparent); }
    html :is(.dgm-grain-hero__panel, .dgm-martensite-hero__panel, .dgm-weave-hero__panel) { background: color-mix(in oklab, var(--hb-deep) 82%, transparent); }
    html .dgm-hex-shield-hero__tile { background: color-mix(in srgb, var(--hs-deep) 80%, transparent); }
    /* no full-hero blend layers: the grain overlays step out, the shield stage blends normally */
    html :is(.dgm-grain-hero__wash, .dgm-martensite-hero__wash, .dgm-weave-hero__wash)::after,
    html .dgm-magnet-hero__vignette::after { display: none; }
    html .dgm-hex-shield-hero__stage { mix-blend-mode: normal; opacity: 0.62; }   /* the hits behind the copy must read; lead stays >= 4.5:1 (measured) */
}


/* ==================== part C ==================== */

/*
 * Event heroes, round 2 polish (agent heroC): four variants.
 *   1. artificial-intelligence  .dgm-ai-hero        (aimse/2027)
 *   2. bio-materials            .dgm-biohero        (biomat/2027)
 *   3. cell-structure           .dgm-cell-hero      (cellmat/2026)
 *   4. light-materials-2        .dgm-lightmat-hero--v2 (lightmat/2027)
 *
 * Additive overlay, loaded after the CDN styles. Every rule is scoped by the
 * variant's root class; nothing here touches the header or the sections below.
 *
 * Shared contract (v2), applied per variant:
 *   eyebrow 12 px, tracking <= 0.14em | h1 46 / 58 / 68 px at 1024 / 1440 / 1920
 *   (long headlines with .is-compact one step smaller), tracking -0.035em, lh 1.06
 *   phones: h1 8.4vw, .is-compact 7.4vw, .is-dense 6.6vw, never below 24 px, lh 1.1
 *   lead 18 px (20 from 1536), lh 1.6, 22 px under the headline, max ~60 characters
 *   buttons 50 px, 16 px, weight 650, radius 10 | info labels 12 px, values 17 px
 *   (BioMAT values 1.3rem / 800 by the owner's wish) | nothing set below 12 px
 *   rhythm 20 / 22 / 30 / >=32 px | scroll cue >= 24 px from the edge, label 12 px.
 *   Phones: no backdrop-filter over the animated canvas, no masked full-size canvas.
 *
 * The bio hero carries its own <style> inside the page body, which comes later
 * in the cascade than this file: its rules here use root + element (two classes)
 * so they win on specificity, not on order.
 *
 * !important appears only where the rule it replaces has one (the length-based
 * headline classes .is-compact / .is-dense from exhibitions.scss).
 */

/* ======================================================================
   1. ARTIFICIAL INTELLIGENCE  (.dgm-ai-hero)
   ====================================================================== */

/* Quiet zone: the rain fades softly behind the text block instead of a box.
   The mask sits on the rain canvas only, so the scanlines and pools stay. */
html .dgm-ai-hero .dgm-ai-hero__canvas > canvas {
    -webkit-mask-image: radial-gradient(ellipse 34% 30% at 50% 44%, rgb(0 0 0 / 0.14) 0%, rgb(0 0 0 / 0.32) 55%, #000 100%);
    mask-image: radial-gradient(ellipse 34% 30% at 50% 44%, rgb(0 0 0 / 0.14) 0%, rgb(0 0 0 / 0.32) 55%, #000 100%);
}
@media (max-width: 640px) {
    /* phones: no mask on the full-size animated canvas; the same quiet band is a plain
       gradient of the background colour on the host's ::after (below) */
    html .dgm-ai-hero .dgm-ai-hero__canvas > canvas {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* Detail: light falls off towards the edges (depth) and a fine film grain
   (3 %) gives the black some material. Drawn on the free ::after of the rain host. */
html .dgm-ai-hero .dgm-ai-hero__canvas::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"),
        radial-gradient(ellipse 85% 75% at 50% 42%, transparent 55%, rgb(1 2 6 / 0.55) 100%);
}
@media (max-width: 640px) {
    html .dgm-ai-hero .dgm-ai-hero__canvas::after {
        background:
            radial-gradient(ellipse 85% 75% at 50% 42%, transparent 55%, rgb(1 2 6 / 0.55) 100%),
            linear-gradient(to bottom,
                transparent 0%,
                color-mix(in oklab, var(--ai-deep) 50%, transparent) 18%,
                color-mix(in oklab, var(--ai-deep) 78%, transparent) 30%,
                color-mix(in oklab, var(--ai-deep) 78%, transparent) 62%,
                color-mix(in oklab, var(--ai-deep) 40%, transparent) 78%,
                transparent 100%);
    }
}

/* Eyebrow pill: one long line at 12 px instead of 11 px at 0.26em. */
html .dgm-ai-hero .dgm-ai-hero__eyebrow {
    gap: 0.6rem;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 0.5rem 1.1rem;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: 0.12em;
    text-wrap: balance;
}

/* Wordmark: a touch smaller so the headline leads; even 20 px on both sides. */
html .dgm-ai-hero .dgm-ai-hero__logo {
    margin-bottom: 20px;
    padding: 0;
}
html .dgm-ai-hero .dgm-ai-hero__logo img {
    width: clamp(200px, 22vw, 330px);
}

/* Headline: contract size and tracking; balanced lines stay. */
html .dgm-ai-hero .dgm-ai-hero__headline {
    font-size: clamp(2.25rem, 1.03rem + 2.885vw, 4.25rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
}
@media (min-width: 641px) {
    /* long headlines (set by the CDN script): one step smaller, same as the other variants */
    html .dgm-ai-hero h1.dgm-ai-hero__headline.is-compact {
        font-size: clamp(2.125rem, 0.75rem + 2.885vw, 3.875rem) !important;
        line-height: 1.06 !important;
    }
}
/* The accent: one luminous light violet from the light end of the site's own
   primary scale (p300 leaning to p200, mixed in oklch so it keeps its chroma),
   with one small crisp glow. Before, the dark stops read about 2:1, and the
   headline's dark text-shadow painted over the clipped gradient and greyed it. */
html .dgm-ai-hero .dgm-ai-hero__accent {
    background: none;
    color: color-mix(in oklch, var(--ai-p300) 68%, var(--ai-p200));
    -webkit-text-fill-color: currentColor;
    text-shadow: 0 3px 16px color-mix(in oklch, var(--ai-p) 55%, transparent);
    filter: none;
}

/* Lead: 18 / 20 px, about 60 characters a line, a little brighter. */
html .dgm-ai-hero .dgm-ai-hero__lead {
    max-width: 31em;
    margin-top: 22px;
    color: rgb(255 255 255 / 0.86);
    font-size: 18px;
    line-height: 1.6;
    text-wrap: pretty;
}

/* Buttons: one height, one radius, labels may wrap instead of overflowing. */
html .dgm-ai-hero .dgm-ai-hero__ctas {
    gap: 12px;
    margin-top: 30px;
}
html .dgm-ai-hero .dgm-ai-hero__button {
    /* contract v2: 50 px, 16 px, 650, radius 10. A block box (not flex) keeps a leading icon
       inline with the first line when a long label wraps; align-content centres one line. */
    display: block;
    align-content: center;
    min-height: 50px;
    max-width: 100%;
    padding: 13px 22px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    text-wrap: balance;
}
html .dgm-ai-hero .dgm-ai-hero__button > i:first-child {
    margin-inline-end: 6px;
}
html .dgm-ai-hero .dgm-ai-hero__button > i:last-child:not(:first-child) {
    margin-inline-start: 6px;
}
html .dgm-ai-hero .dgm-ai-hero__button:hover {
    transform: translateY(-2px);
}
html .dgm-ai-hero .dgm-ai-hero__button:focus-visible {
    outline: 2px solid var(--ai-p200);
    outline-offset: 3px;
}

/* Info cards: 16 px radius, 12 px labels, 17 px values, a calmer offset shadow. */
html .dgm-ai-hero .dgm-ai-hero__cards {
    gap: 14px;
}
html .dgm-ai-hero .dgm-ai-hero__card {
    max-width: 280px;
    padding: 18px 20px;
    border-radius: 16px;
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 18px 36px -14px rgb(0 0 0 / 0.6);
}
html .dgm-ai-hero .dgm-ai-hero__card-icon {
    margin-bottom: 10px;
}
html .dgm-ai-hero .dgm-ai-hero__card-kind {
    color: color-mix(in oklab, var(--ai-p200) 60%, rgb(255 255 255 / 0.7));
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.12em;
}
html .dgm-ai-hero .dgm-ai-hero__card-value {
    margin-top: 4px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.005em;
}

/* Scroll cue: readable label, clear of the bottom edge. */
html .dgm-ai-hero .dgm-ai-hero__scroll {
    bottom: 26px;
}
html .dgm-ai-hero .dgm-ai-hero__scroll-label {
    font-size: 12px;
    letter-spacing: 0.14em;
}
@media (min-width: 1024px) {
    html .dgm-ai-hero .dgm-ai-hero__cards-wrap {
        padding-bottom: 6rem;
    }
}

@media (min-width: 1536px) {
    html .dgm-ai-hero .dgm-ai-hero__lead { font-size: 20px; }
}

@media (max-width: 640px) {
    /* phone: 12 px floor; the long mono line takes three short lines, so the
       pill becomes a rounded tag rather than a lozenge */
    html .dgm-ai-hero .dgm-ai-hero__eyebrow {
        gap: 0.45rem;
        margin-bottom: 18px;
        padding: 0.5rem 0.75rem;
        border-radius: 14px;
        font-size: 12px;
        letter-spacing: 0.02em;
        text-wrap: pretty;
    }
    html .dgm-ai-hero .dgm-ai-hero__pulse { margin-top: 0.22rem; }
    html .dgm-ai-hero .dgm-ai-hero__logo { margin-bottom: 16px; }
    html .dgm-ai-hero .dgm-ai-hero__lead { margin-top: 18px; font-size: 17px; }
    html .dgm-ai-hero .dgm-ai-hero__ctas { margin-top: 24px; }
    html .dgm-ai-hero .dgm-ai-hero__cards-wrap { padding-top: 12px; }
    html .dgm-ai-hero .dgm-ai-hero__card { max-width: none; padding: 14px 16px; }
    html .dgm-ai-hero .dgm-ai-hero__card-kind { font-size: 12px; }
    html .dgm-ai-hero .dgm-ai-hero__card-value { font-size: 16px; }
}

/* ======================================================================
   2. BIO MATERIALS  (.dgm-biohero)
   ====================================================================== */

/* Detail: fine grain over the field and a soft edge falloff (root pseudos are free). */
html .dgm-biohero::before,
html .dgm-biohero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
html .dgm-biohero::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}
html .dgm-biohero::after {
    background: radial-gradient(ellipse 80% 80% at 50% 45%, transparent 58%, rgb(2 10 20 / 0.5) 100%);
}

/* Detail: a measuring ruler along the left and bottom edge of the specimen frame,
   in the frame's own cyan: minor ticks every 10 px, major every 50 px. */
html .dgm-biohero .dgm-biohero__frame::before,
html .dgm-biohero .dgm-biohero__frame::after {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: 0.9;
}
html .dgm-biohero .dgm-biohero__frame::before {
    top: 10%;
    bottom: 10%;
    left: -16px;
    width: 9px;
    background:
        repeating-linear-gradient(to bottom, rgb(111 210 255 / 0.55) 0 1px, transparent 1px 50px) right / 9px 100% no-repeat,
        repeating-linear-gradient(to bottom, rgb(111 210 255 / 0.3) 0 1px, transparent 1px 10px) right / 5px 100% no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
html .dgm-biohero .dgm-biohero__frame::after {
    left: 10%;
    right: 10%;
    bottom: -16px;
    height: 9px;
    background:
        repeating-linear-gradient(to right, rgb(111 210 255 / 0.55) 0 1px, transparent 1px 50px) top / 100% 9px no-repeat,
        repeating-linear-gradient(to right, rgb(111 210 255 / 0.3) 0 1px, transparent 1px 10px) top / 100% 5px no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
}
/* Culture layer drawn by fx/bio-materials.js: behind the scaffold, reaching 30 % beyond the frame
   (the script fades it out towards its edges). */
html .dgm-biohero .dgm-biohero__frame > .dgm-biohero__fx {
    position: absolute;
    left: -30%;
    top: -30%;
    display: block;
    width: 160%;
    height: 160%;
    pointer-events: none;
}

/* frame readouts: 9 px -> 12 px */
html .dgm-biohero .dgm-biohero__stamp,
html .dgm-biohero .dgm-biohero__scale {
    font-size: 12px;
    letter-spacing: 0.04em;
    color: rgb(200 237 255 / 0.95);
    /* a small dark plate: the readouts sit over bright scaffold particles */
    padding: 1px 6px;
    border-radius: 4px;
    background: rgb(2 10 20 / 0.78);
    text-shadow: none;
}

/* On a 900 px high window the frame fits the hero into one screen, so the
   scroll cue and the info cards are both in view. */
@media (min-width: 1024px) {
    html .dgm-biohero .dgm-biohero__frame {
        max-width: min(510px, 52vh);
        margin-top: 1.25rem;
    }
    html .dgm-biohero .dgm-biohero__content {
        padding-bottom: 2rem;
    }
}

/* Wordmark block under the frame: 12 px label, even spacing. */
html .dgm-biohero .dgm-biohero__logo-wrap {
    margin-top: 1.75rem;
}
html .dgm-biohero .dgm-biohero__logo-label {
    font-size: 12px;
    letter-spacing: 0.1em;
}
html .dgm-biohero .dgm-biohero__logo {
    margin-top: 0.875rem;
}

/* Eyebrow: dot plus mono line, 12 px, at most two balanced lines. */
html .dgm-biohero .dgm-biohero__eyebrow {
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-wrap: balance;
}
html .dgm-biohero .dgm-biohero__live-dot {
    flex: none;
    margin-top: 0.28rem;
}

/* Headline: the 11ch cap broke it into five lines; the column is cap enough
   (three balanced lines at 1440 and 1920). */
html .dgm-biohero .dgm-biohero__headline {
    max-width: none;
    font-size: clamp(2.25rem, 1.03rem + 2.885vw, 4.25rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
@media (min-width: 641px) {
    /* the long-headline classes set their size with !important (exhibitions.scss) */
    /* capped at 53 px: the text column stays 588 px wide from 1440 up, and a
       larger size breaks "— from design" onto a line of its own */
    html .dgm-biohero h1.dgm-biohero__headline.is-compact {
        font-size: clamp(2.125rem, 0.75rem + 2.885vw, 3.3rem) !important;
        line-height: 1.06 !important;
    }
    html .dgm-biohero h1.dgm-biohero__headline.is-dense {
        font-size: clamp(2rem, 1rem + 2vw, 3.25rem) !important;
        line-height: 1.06 !important;
    }
}

/* Lead, buttons. */
html .dgm-biohero .dgm-biohero__lead {
    max-width: 31em;
    margin-top: 22px;
    color: rgb(255 255 255 / 0.8);
    font-size: 18px;
    line-height: 1.6;
}
html .dgm-biohero .dgm-biohero__actions {
    gap: 12px;
    margin-top: 30px;
}
html .dgm-biohero .dgm-biohero__button {
    /* contract v2: 50 px, 16 px, 650, radius 10. A block box (not flex) keeps a leading icon
       inline with the first line when a long label wraps; align-content centres one line. */
    display: block;
    align-content: center;
    min-height: 50px;
    max-width: 100%;
    padding: 13px 22px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    text-wrap: balance;
    text-transform: none;
}
html .dgm-biohero .dgm-biohero__button > i:first-child {
    margin-inline-end: 6px;
}
html .dgm-biohero .dgm-biohero__button > i:last-child:not(:first-child) {
    margin-inline-start: 6px;
}
html .dgm-biohero .dgm-biohero__button:hover {
    transform: translateY(-2px);
}
html .dgm-biohero .dgm-biohero__button--secondary,
html .dgm-biohero .dgm-biohero__button--ghost {
    border-color: rgb(200 237 255 / 0.3);
}

/* Info cards (format / when / where): 16 px radius, 12 px labels, values 1.3rem / 800
   (the owner asked for prominent date and place values on exactly these cards). */
html .dgm-biohero .dgm-biohero__billboard-grid {
    gap: 14px;
}
html .dgm-biohero .dgm-biohero__billboard-cell {
    gap: 14px;
    min-width: 220px;
    padding: 16px 22px 16px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgb(12 34 58 / 0.62), rgb(4 14 26 / 0.62));
    box-shadow: 0 1px 0 rgb(200 237 255 / 0.06) inset, 0 16px 34px -16px rgb(0 0 0 / 0.65);
}
html .dgm-biohero .dgm-biohero__billboard-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
}
html .dgm-biohero .dgm-biohero__billboard-kicker {
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.1em;
}
html .dgm-biohero .dgm-biohero__billboard-value {
    margin-top: 2px;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    font-weight: 800;
    line-height: 1.3;
}

/* Scroll cue: 11 px label, 26 px above the edge; the card row leaves just that room. */
html .dgm-biohero .dgm-biohero__scroll {
    bottom: 26px;
}
html .dgm-biohero .dgm-biohero__scroll-label {
    font-size: 12px;
    letter-spacing: 0.14em;
}
@media (min-width: 1024px) {
    html .dgm-biohero .dgm-biohero__billboard-grid {
        padding-bottom: 6rem;
    }
}

@media (min-width: 1536px) {
    html .dgm-biohero .dgm-biohero__lead { font-size: 20px; }
}

@media (max-width: 640px) {
    html .dgm-biohero .dgm-biohero__frame::before { left: -13px; }
    html .dgm-biohero .dgm-biohero__frame::after { bottom: -13px; }
    /* the two readouts share a 240 px frame: 11 px is the size that keeps them apart */
    html .dgm-biohero .dgm-biohero__stamp,
    html .dgm-biohero .dgm-biohero__scale { letter-spacing: 0; }
    /* and the specimen name moves to the top edge, so the growing scale bar
       never runs into it (it did before, on every phone) */
    html .dgm-biohero .dgm-biohero__stamp { top: 10px; bottom: auto; }
    html .dgm-biohero .dgm-biohero__logo-wrap { margin-top: 1.25rem; margin-bottom: 1.75rem; }
    html .dgm-biohero .dgm-biohero__eyebrow { margin-bottom: 16px; font-size: 12px; letter-spacing: 0.04em; }
    html .dgm-biohero .dgm-biohero__headline { max-width: none; }
    html .dgm-biohero .dgm-biohero__lead { margin-top: 18px; font-size: 17px; }
    html .dgm-biohero .dgm-biohero__actions { margin-top: 24px; }
    html .dgm-biohero .dgm-biohero__billboard-grid { gap: 10px; padding-bottom: 2rem; }
    html .dgm-biohero .dgm-biohero__billboard-cell { flex: 1 1 100%; min-width: 0; padding: 12px 16px 12px 12px; }
    html .dgm-biohero .dgm-biohero__billboard-icon { width: 2.25rem; height: 2.25rem; }
    html .dgm-biohero .dgm-biohero__billboard-kicker { font-size: 12px; }
    html .dgm-biohero .dgm-biohero__billboard-value { font-size: 18px; }
}

/* ======================================================================
   3. CELL STRUCTURE  (.dgm-cell-hero)
   ====================================================================== */

/* Detail: grain and an edge falloff on the free root pseudos (under the content). */
html .dgm-cell-hero::before,
html .dgm-cell-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
html .dgm-cell-hero::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}
html .dgm-cell-hero::after {
    background: radial-gradient(ellipse 80% 78% at 50% 42%, transparent 56%, rgb(21 11 6 / 0.55) 100%);
}

html .dgm-cell-hero .dgm-cell-hero__eyebrow {
    gap: 0.6rem;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 0.5rem 1.1rem;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: 0.12em;
    text-wrap: balance;
}
html .dgm-cell-hero .dgm-cell-hero__logo {
    margin-bottom: 20px;
}
html .dgm-cell-hero .dgm-cell-hero__logo img {
    width: clamp(200px, 23vw, 340px);
}

html .dgm-cell-hero .dgm-cell-hero__headline {
    font-size: clamp(2.25rem, 1.03rem + 2.885vw, 4.25rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
}
@media (min-width: 641px) {
    /* the long-headline classes set their size with !important (exhibitions.scss) */
    html .dgm-cell-hero h1.dgm-cell-hero__headline.is-compact {
        font-size: clamp(2.125rem, 0.75rem + 2.885vw, 3.875rem) !important;
        line-height: 1.06 !important;
    }
    html .dgm-cell-hero h1.dgm-cell-hero__headline.is-dense {
        font-size: clamp(2rem, 1rem + 2vw, 3.25rem) !important;
        line-height: 1.06 !important;
    }
}

html .dgm-cell-hero .dgm-cell-hero__lead {
    max-width: 31em;
    margin-top: 22px;
    color: rgb(255 255 255 / 0.8);
    font-size: 18px;
    line-height: 1.6;
    text-wrap: pretty;
}

html .dgm-cell-hero .dgm-cell-hero__ctas {
    gap: 12px;
    margin-top: 30px;
}
html .dgm-cell-hero .dgm-cell-hero__button {
    /* contract v2: 50 px, 16 px, 650, radius 10. A block box (not flex) keeps a leading icon
       inline with the first line when a long label wraps; align-content centres one line. */
    display: block;
    align-content: center;
    min-height: 50px;
    max-width: 100%;
    padding: 13px 22px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    text-wrap: balance;
}
html .dgm-cell-hero .dgm-cell-hero__button > i:first-child {
    margin-inline-end: 6px;
}
html .dgm-cell-hero .dgm-cell-hero__button > i:last-child:not(:first-child) {
    margin-inline-start: 6px;
}
html .dgm-cell-hero .dgm-cell-hero__button:hover {
    transform: translateY(-2px);
}

/* House-shaped tiles stay. Their outline used to be a masked border that the
   hex clip cut off on the four slanted edges, so only the sides showed. Now a
   drawn hex outline (1 px, amber, brighter at the top) plus a faint inner
   cell wall: the honeycomb's own mark, at tile scale. */
html .dgm-cell-hero .dgm-cell-hero__hex {
    width: 212px;
    background:
        radial-gradient(ellipse at 50% 0%, rgb(244 162 94 / 0.24) 0%, transparent 70%),
        linear-gradient(180deg, rgb(255 226 188 / 0.1) 0%, rgb(21 11 6 / 0.6) 100%);
}
html .dgm-cell-hero .dgm-cell-hero__hex::before {
    padding: 0;
    -webkit-mask: none;
    mask: none;
    clip-path: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f4a25e' stop-opacity='.75'/%3E%3Cstop offset='1' stop-color='%23f4a25e' stop-opacity='.18'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon points='50,.6 99.4,25.3 99.4,74.7 50,99.4 .6,74.7 .6,25.3' fill='none' stroke='url(%23g)' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3Cpolygon points='50,7 93.5,28.5 93.5,71.5 50,93 6.5,71.5 6.5,28.5' fill='none' stroke='%23ffe2bc' stroke-opacity='.08' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
html .dgm-cell-hero .dgm-cell-hero__hex-content {
    gap: 2px;
    padding: 12% 15%;
}
html .dgm-cell-hero .dgm-cell-hero__hex-icon {
    margin-bottom: 8px;
}
html .dgm-cell-hero .dgm-cell-hero__hex-kind {
    color: rgb(255 226 188 / 0.78);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.12em;
}
html .dgm-cell-hero .dgm-cell-hero__hex-value {
    margin-top: 2px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    text-wrap: balance;
}
html .dgm-cell-hero .dgm-cell-hero__hexrow {
    column-gap: 14px;
}

html .dgm-cell-hero .dgm-cell-hero__scroll {
    bottom: 26px;
}
@media (min-width: 1024px) {
    html .dgm-cell-hero .dgm-cell-hero__hexrow-wrap {
        padding-bottom: 4.75rem;
    }
}
@media (min-width: 641px) and (max-width: 1023px) {
    html .dgm-cell-hero .dgm-cell-hero__hex { width: 180px; }
}

@media (min-width: 1536px) {
    html .dgm-cell-hero .dgm-cell-hero__lead { font-size: 20px; }
}

@media (max-width: 640px) {
    html .dgm-cell-hero .dgm-cell-hero__eyebrow {
        gap: 0.45rem;
        margin-bottom: 18px;
        padding: 0.5rem 0.75rem;
        border-radius: 14px;
        font-size: 12px;
        letter-spacing: 0.02em;
        text-wrap: pretty;
    }
    html .dgm-cell-hero .dgm-cell-hero__pulse { margin-top: 0.22rem; }
    html .dgm-cell-hero .dgm-cell-hero__logo { margin-bottom: 16px; }
    html .dgm-cell-hero .dgm-cell-hero__lead { margin-top: 18px; font-size: 17px; }
    html .dgm-cell-hero .dgm-cell-hero__ctas { margin-top: 24px; }
    html .dgm-cell-hero .dgm-cell-hero__hexrow-wrap { padding-top: 8px; }
    html .dgm-cell-hero .dgm-cell-hero__hexrow { gap: 10px; }
    html .dgm-cell-hero .dgm-cell-hero__hex { width: 156px; }
    html .dgm-cell-hero .dgm-cell-hero__hex-icon { margin-bottom: 4px; font-size: 16px; }
    html .dgm-cell-hero .dgm-cell-hero__hex-kind { font-size: 12px; letter-spacing: 0.1em; }
    html .dgm-cell-hero .dgm-cell-hero__hex-value { font-size: 16px; }
}

/* ======================================================================
   4. LIGHT MATERIALS 2, "Octet Lattice"  (.dgm-lightmat-hero--v2)
   ====================================================================== */

/* Light layer drawn by fx/light-materials.js over the three.js lattice: the script sizes and places
   it around the lattice. It draws additive light on a transparent canvas, so it needs no blend mode. */
html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__fx {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    display: block;
    pointer-events: none;
}

/* Quiet zone: the lattice fades as it reaches the wordmark and headline. The
   text block is pinned to the bottom of the hero, so the fade is measured from
   the bottom edge too: it lands on the wordmark at every window height.
   (The light layer applies the same fade in its script.) */
html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__stage {
    -webkit-mask-image: linear-gradient(to top, rgb(0 0 0 / 0.12) 0, rgb(0 0 0 / 0.14) 540px, rgb(0 0 0 / 0.45) 640px, #000 760px);
    mask-image: linear-gradient(to top, rgb(0 0 0 / 0.12) 0, rgb(0 0 0 / 0.14) 540px, rgb(0 0 0 / 0.45) 640px, #000 760px);
}
@media (max-width: 640px) {
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__stage {
        -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / 0.6) 14%, rgb(0 0 0 / 0.28) 26%, rgb(0 0 0 / 0.12) 40%);
        mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / 0.6) 14%, rgb(0 0 0 / 0.28) 26%, rgb(0 0 0 / 0.12) 40%);
    }
}

/* Detail: grain and an edge falloff (root pseudos are free in this variant). */
html .dgm-lightmat-hero--v2::before,
html .dgm-lightmat-hero--v2::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}
html .dgm-lightmat-hero--v2::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}
html .dgm-lightmat-hero--v2::after {
    background: radial-gradient(ellipse 80% 80% at 50% 40%, transparent 55%, rgb(10 5 2 / 0.5) 100%);
}

html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__main-logo-wrap {
    margin-bottom: 20px;
}

html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__headline {
    font-size: clamp(2.25rem, 1.03rem + 2.885vw, 4.25rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
@media (min-width: 641px) {
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 h1.dgm-lightmat-hero__headline.is-compact {
        font-size: clamp(2.125rem, 0.75rem + 2.885vw, 3.875rem) !important;
        line-height: 1.06 !important;
    }
}

/* The coloured second line is painted only inside its own box (background-clip: text). At this line height
   the box ends above the bottom of g, y and p, so those letters were cut off. Room for the ink on all sides,
   taken back by negative margins so the line spacing and the centring stay exactly as they are. */
html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__headline span {
    padding: 0.1em 0.05em 0.2em;
    margin: -0.1em -0.05em -0.2em;
}

html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__lead {
    max-width: 31em;
    margin-top: 22px;
    color: rgb(255 242 235 / 0.84);
    font-size: 18px;
    line-height: 1.6;
}

/* Buttons: one row, one height, one radius. The very long primary label wraps
   to two balanced lines instead of running 740 px wide. */
html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__buttons {
    gap: 12px;
    margin-top: 30px;
}
@media (min-width: 640px) {
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__copy {
        max-width: 820px;
    }
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__buttons {
        align-items: stretch;
    }
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__button--primary {
        max-width: 29rem;
    }
}
html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__button {
    /* contract v2: 50 px, 16 px, 650, radius 10. A block box (not flex) keeps a leading icon
       inline with the first line when a long label wraps; align-content centres one line. */
    display: block;
    align-content: center;
    min-height: 50px;
    padding: 13px 22px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    text-wrap: balance;
}
html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__button > i:first-child {
    margin-inline-end: 6px;
}
html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__button > i:last-child:not(:first-child) {
    margin-inline-start: 6px;
}
html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__button:hover {
    transform: translateY(-2px);
}
html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__button:focus-visible {
    outline: 2px solid var(--lm-primary-pale);
    outline-offset: 3px;
}

/* Info cells: 16 px radius and a hairline all round; the orange left rule
   becomes a short accent mark beside the label, the variant's tick. */
html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__strip-grid {
    gap: 14px;
}
html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__strip-card {
    padding: 16px 20px 16px 22px;
    border: 1px solid rgb(255 185 133 / 0.22);
    border-radius: 16px;
    background: linear-gradient(180deg, rgb(40 15 4 / 0.62), rgb(20 8 3 / 0.62));
    box-shadow: 0 1px 0 rgb(255 226 200 / 0.06) inset, 0 16px 32px -16px rgb(0 0 0 / 0.6);
}
html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__strip-card::before {
    content: "";
    top: 19px;
    left: 0;
    right: auto;
    width: 3px;
    height: 14px;
    border: 0;
    border-radius: 0 2px 2px 0;
    background: var(--lm-primary-soft);
}
html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__strip-label {
    color: rgb(255 226 210 / 0.74);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.12em;
}
html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__strip-value {
    margin-top: 4px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}
html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__strip-icon {
    top: 18px;
    right: 18px;
    font-size: 14px;
    color: rgb(255 185 133 / 0.6);
}

/* Scroll cue: a mouse you can see, an 11 px label, 26 px above the edge. */
html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__scroll {
    bottom: 26px;
    gap: 6px;
}
html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__scroll-mouse {
    width: 20px;
    height: 30px;
    padding-top: 6px;
    border-width: 1.5px;
    border-radius: 10px;
}
html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__scroll-dot {
    width: 3px;
    height: 6px;
}
html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__scroll-label {
    font-size: 12px;
    letter-spacing: 0.14em;
}
@media (min-width: 1024px) {
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__strip {
        padding-bottom: 5.5rem;
    }
    /* at least 32 px between the buttons and the info cells */
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__content {
        padding-bottom: 2.25rem;
    }
}

@media (min-width: 1536px) {
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__lead { font-size: 20px; }
}

@media (max-width: 640px) {
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__main-logo-wrap { margin-bottom: 16px; }
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__lead { margin-top: 18px; font-size: 17px; }
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__buttons { margin-top: 24px; }
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__button { padding: 13px 18px; }
    /* one fact per row: in two columns the date wrapped ("10 - 12 Mar / 2027") */
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__strip-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__strip-card { padding: 14px 16px 14px 18px; }
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__strip-card::before { top: 16px; }
    /* an odd last cell takes the whole row instead of leaving a hole */
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__strip-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__strip-label { font-size: 12px; letter-spacing: 0.1em; }
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__strip-value { font-size: 16px; }
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__strip-icon { top: 15px; right: 14px; }
}

/* ======================================================================
   Reduced motion: nothing above animates; the hover lifts go too.
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
    html .dgm-ai-hero .dgm-ai-hero__button:hover,
    html .dgm-biohero .dgm-biohero__button:hover,
    html .dgm-cell-hero .dgm-cell-hero__button:hover,
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 .dgm-lightmat-hero__button:hover {
        transform: none;
    }
}

/* ======================================================================
   Phones, all four variants (contract v2)
   ====================================================================== */
@media (max-width: 640px) {
    /* One headline scale by the shared length classes. The shared guard in exhibitions.scss
       ([data-event-hero] h1.is-compact / .is-dense) uses !important on phones too, so these do. */
    html .dgm-ai-hero h1.dgm-ai-hero__headline,
    html .dgm-biohero h1.dgm-biohero__headline,
    html .dgm-cell-hero h1.dgm-cell-hero__headline,
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 h1.dgm-lightmat-hero__headline {
        font-size: max(24px, 8.4vw) !important;
        line-height: 1.1 !important;
    }
    html .dgm-ai-hero h1.dgm-ai-hero__headline.is-compact,
    html .dgm-biohero h1.dgm-biohero__headline.is-compact,
    html .dgm-cell-hero h1.dgm-cell-hero__headline.is-compact,
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 h1.dgm-lightmat-hero__headline.is-compact {
        font-size: max(24px, 7.4vw) !important;
    }
    html .dgm-ai-hero h1.dgm-ai-hero__headline.is-dense,
    html .dgm-biohero h1.dgm-biohero__headline.is-dense,
    html .dgm-cell-hero h1.dgm-cell-hero__headline.is-dense,
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 h1.dgm-lightmat-hero__headline.is-dense {
        font-size: max(24px, 6.6vw) !important;
    }

    /* No backdrop-filter over an animated canvas on phones (a blur re-renders every frame);
       the surfaces get a little more opacity instead. */
    html .dgm-ai-hero :is(.dgm-ai-hero__eyebrow, .dgm-ai-hero__button--secondary, .dgm-ai-hero__card),
    html .dgm-cell-hero :is(.dgm-cell-hero__eyebrow, .dgm-cell-hero__button--secondary, .dgm-cell-hero__hex),
    html .dgm-biohero :is(.dgm-biohero__button--secondary, .dgm-biohero__button--ghost, .dgm-biohero__billboard-cell),
    html .dgm-lightmat-hero.dgm-lightmat-hero--v2 :is(.dgm-lightmat-hero__button--secondary, .dgm-lightmat-hero__button--ghost, .dgm-lightmat-hero__strip-card) {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    html .dgm-ai-hero .dgm-ai-hero__eyebrow { background: color-mix(in oklab, var(--ai-deep) 88%, transparent); }
    html .dgm-ai-hero .dgm-ai-hero__card { background: linear-gradient(180deg, color-mix(in oklab, var(--ai-p300) 10%, var(--ai-deep)) 0%, color-mix(in oklab, var(--ai-deep) 92%, transparent) 100%); }
    html .dgm-cell-hero .dgm-cell-hero__eyebrow { background: rgb(21 11 6 / 0.72); }
    html .dgm-biohero .dgm-biohero__billboard-cell { background: linear-gradient(180deg, rgb(12 34 58 / 0.9), rgb(4 14 26 / 0.9)); }

    /* the take-over foam draws with normal blending on phones (no full-hero blend layer) */
    html .dgm-cell-hero .dgm-cell-hero__foam { mix-blend-mode: normal; opacity: 0.8; }
}


/* ==================== part D ==================== */

/* ==================== part D ==================== */

/*
 * Event heroes, polish round 2 (hero-d): network-node, morphogenesis.
 *   1. network-node   .dgm-network-hero  (MSE Research Data Forum 2027, nfdi-matwerk.de/nfdi/2027)
 *   2. morphogenesis  .dgm-morpho-hero   (Innovationsforum, biologisierung-der-technik.de/de/innovationsforum)
 *
 * Additive overlay, loaded after the CDN bundle and after event-polish.css. Every rule is scoped to one
 * variant's root class. The light sibling "network-node-light" (dgm.de's own pages) uses the same markup with
 * .dgm-network-hero--light: every network-node rule here excludes it, so it renders exactly as before.
 *
 * Shared base contract, implemented per variant (same as parts A to C):
 *   (contract v2) eyebrow 12 px, tracking <= 0.14em | h1 46 px @1024, 58 px @1440, 68 px @1920, lh 1.06 |
 *   lead 18 px (20 from 1536), lh 1.6, 22 px under the headline | buttons 50 px high, 16 px, weight 650, radius 10 px,
 *   21 px side padding, 10 px icon gap, one hover (lift 2 px + deeper offset shadow), focus ring |
 *   info card labels 12 px, values 17 px, padding >= 16 px, 16 px radius |
 *   rhythm eyebrow > h1 18, h1 > lead 22, lead > buttons 30, buttons > info row 40 | scroll cue 24 px from the edge |
 *   phones (<= 640 px): h1 8.4vw, .is-compact 7.4vw, .is-dense 6.6vw, never below 24 px, lh 1.1; lead 17 px;
 *   no backdrop-filter over the animated canvas, no blend-mode layer; nothing below 12 px.
 * Variant exceptions, decided by the design director: morphogenesis keeps its one-line poster headline
 * (70 px @1440) and its pill buttons.
 *
 * The shared long-headline guard ([data-event-hero] h1.is-compact / .is-dense in exhibitions.scss) sets the
 * size with !important, so the headline sizes below need !important too.
 */


/* =====================================================================================================
   1. NETWORK NODE  (.dgm-network-hero, not --light). Dark teal field, three.js node cloud on the right,
      copy left, logo and info panel right. The canvas layer of fx/network-node.js sits right above the
      three.js canvas (.dgm-network-hero__fx), under the grid and the wash.
   ===================================================================================================== */

/* -- the add-on canvas: same box as the three.js host, under the grid (z 1) and the wash (z 2) */
html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) > .dgm-network-hero__fx {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* -- texture and depth: fine grain over the field (4 %), under the copy; a lit seam on the bottom edge */
html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light)::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 3;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--nn-cyan) 34%, transparent) 35%, color-mix(in srgb, var(--nn-cyan) 34%, transparent) 75%, transparent);
}

/* -- eyebrow: 12 px, tracking 0.14em -> 0.12em, a little more air inside the pill */
html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__eyebrow {
    gap: 0.6rem;
    margin-bottom: 1.125rem;
    padding: 0.45rem 1rem 0.45rem 0.85rem;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.12em;
}

/* -- headline: contract scale (was 37 px @1024, 53 px @1440, capped at 53 px); the 900 weight and the accent stay */
html section.dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) h1,
html section.dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) h1:is(.is-compact, .is-dense) {
    max-width: 14em;
    font-size: clamp(2.875rem, 1.15rem + 2.75vw, 4.25rem) !important; /* beats the !important guard */
    line-height: 1.06 !important;
    letter-spacing: -0.025em; /* the contract's -0.035em closes the counters of this 900 weight */
}
/* long slogans (the shared guard marks them is-compact) stop at 62 px, so they keep their lines */
html section.dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) h1.is-compact {
    font-size: clamp(2.5rem, 1rem + 2.6vw, 3.875rem) !important;
}
html section.dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) h1.is-dense {
    font-size: clamp(2.25rem, 0.9rem + 2.2vw, 3.4rem) !important;
}

/* -- lead: 18 / 20 px, about 60 characters a line */
html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__lead {
    max-width: 30em;
    margin-top: 1.375rem;
    font-size: 18px;
    line-height: 1.6;
    text-wrap: wrap; /* the bundle's text-wrap: pretty ended the last lines early on phones */
}

/* -- buttons: 50 px, semibold 16, one radius, one hover, focus ring */
html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__buttons {
    gap: 0.75rem;
    margin-top: 1.875rem;
}
html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-feh__button {
    gap: 0.625rem;
    min-height: 3.125rem;
    padding: 0.75rem 1.3125rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.25;
}
html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-feh__button--primary {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 12px 26px -14px color-mix(in srgb, var(--nn-cyan) 75%, transparent);
}
html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-feh__button--primary:is(:hover, :focus-visible) {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 18px 34px -14px color-mix(in srgb, var(--nn-cyan) 85%, transparent);
}
html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) :is(.dgm-feh__button--secondary, .dgm-feh__button--ghost):hover {
    box-shadow: 0 16px 30px -18px rgb(0 0 0 / 0.6);
}
html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-feh__button:focus-visible {
    outline: 2px solid var(--nn-cyan-soft);
    outline-offset: 3px;
}

/* -- info panel: 16 px radius, readable label (was 11 px at 0 tracking) and facts (labels 10 -> 12, values 16 -> 17),
      no forced 112 px card height, an offset shadow instead of the wide halo */
html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__panel {
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 24px 48px -26px rgb(0 0 0 / 0.75);
}
html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__panel-label {
    padding: 0.8rem 1.25rem;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}
html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__card {
    gap: 0.75rem;
    min-height: 0;
    padding: 1.125rem 1.25rem;
}
html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__card > i {
    width: 1.1rem;
    margin-top: 0.15rem;
    text-align: center;
}
html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__card-title {
    margin-bottom: 0.25rem;
    color: rgb(232 247 252 / 0.68);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.3;
}
html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__card-body {
    font-size: 17px;
    line-height: 1.3;
}

@media (min-width: 1536px) {
    html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__lead { font-size: 20px; }
}

/* small laptops: the panel column is about 345 px, so the facts get a little less padding */
@media (min-width: 1024px) and (max-width: 1279px) {
    html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__card { padding: 1rem; }
    html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__card-body { font-size: 16px; }
}

/* tablets: copy and panel stack, the panel keeps 40 px from the buttons */
@media (max-width: 1023px) {
    html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__content { row-gap: 2.5rem; }
}

/* phones: the existing phone spec with the 12 px floor (eyebrow was 9 px, card labels 8 px) */
@media (max-width: 640px) {
    html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__eyebrow {
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding: 0.4rem 0.85rem 0.4rem 0.75rem;
        border-radius: 14px;
        font-size: 12px;
        letter-spacing: 0.06em;
        line-height: 1.45;
        align-items: flex-start;
        text-wrap: balance;
    }
    html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__pulse { flex: none; margin-top: 0.32rem; }
    html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__eyebrow > i { margin-top: 0.15rem; }
    /* one phone scale for all heroes, by the shared length classes (their phone rules carry !important too) */
    html section.dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) h1 {
        font-size: max(24px, 8.4vw) !important;
        line-height: 1.1 !important;
        letter-spacing: -0.02em;
    }
    html section.dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) h1.is-compact { font-size: max(24px, 7.4vw) !important; }
    html section.dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) h1.is-dense { font-size: max(24px, 6.6vw) !important; }
    html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__lead {
        margin-top: 1rem;
        font-size: 17px; /* phones: 17 px, aligned across all hero sets */
        line-height: 1.6;
    }
    html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__buttons { margin-top: 1.5rem; }
    html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-feh__button {
        padding: 0.7rem 1rem;
        white-space: normal;
        text-align: center;
    }
    html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__content { row-gap: 2.25rem; }
    /* where the header is a bar of its own above the hero, 48 px are enough; where the header lies over the hero
       (full-screen shell, e.g. bvmatwerk.de) the built-in 80 px stay, or the label would sit under the logo */
    html .dgm-page-shell:not(.dgm-page-shell--fullscreen-hero) .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__content { padding-top: 3rem; }
    /* phones stay cheap: no backdrop blur over the animated canvas (denser glass instead), grain as a plain layer */
    html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__panel {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgb(3 21 29 / 0.84);
    }
    html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) :is(.dgm-feh__button--secondary, .dgm-feh__button--ghost) {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgb(3 21 29 / 0.72);
    }
    html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light)::after {
        mix-blend-mode: normal;
        opacity: 0.02;
    }
    html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__panel-label { padding: 0.7rem 1rem; }
    html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__card { gap: 0.6rem; padding: 0.875rem 1rem; }
    html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__card-title { font-size: 12px; letter-spacing: 0.08em; }
    html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-network-hero__card-body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html .dgm-network-hero[data-event-hero="network-node"]:not(.dgm-network-hero--light) .dgm-feh__button:is(:hover, :focus-visible) { transform: none; }
}


/* =====================================================================================================
   2. MORPHOGENESIS  (.dgm-morpho-hero). Centred stack over the venation field, date and place cards below.
      The live layer of fx/morphogenesis.js (tips, branch nodes, sap pulses) is a second canvas in the same host.
   ===================================================================================================== */

/* -- texture: fine grain over the field (4 %), under the copy. The vignette's ::after is free. */
html .dgm-morpho-hero__vignette::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* the second (live) canvas lies exactly on the venation canvas */
html .dgm-morpho-hero__canvas {
    overflow: hidden;
}
html .dgm-morpho-hero__canvas > canvas + canvas {
    position: absolute;
    inset: 0;
}

/* -- eyebrow: 12 px, tracking 0.28em -> 0.12em, the pill keeps its glass */
html .dgm-morpho-hero__eyebrow {
    gap: 0.6rem;
    max-width: 100%;
    margin-bottom: 1.125rem;
    padding: 0.45rem 1.05rem 0.45rem 0.9rem;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.12em;
}

/* -- headline: the one-line poster headline is this hero's character (director's decision, as on magnetic-field):
      it stays above the shared scale, 50 px @1024, 70 px @1440, capped at 78 px from about 1620 (was 53 / 74 / 74).
      A short title keeps one line from 1024 up; a longer one wraps into balanced lines (the bundle's 24ch cap). */
html section.dgm-morpho-hero h1,
html section.dgm-morpho-hero h1:is(.is-compact, .is-dense) {
    font-size: clamp(2.5rem, 0.05rem + 4.81vw, 4.875rem) !important; /* beats the !important guard */
    line-height: 1.06 !important;
    letter-spacing: -0.028em; /* a little looser than -0.035em: the 900 weight closes up */
}
html section.dgm-morpho-hero h1.is-compact {
    font-size: clamp(2.25rem, 0.2rem + 3.9vw, 4.25rem) !important;
}
html section.dgm-morpho-hero h1.is-dense {
    font-size: clamp(2rem, 0.2rem + 3.2vw, 3.5rem) !important;
}
/* the clipped gradient needs room for descenders */
html .dgm-morpho-hero__accent {
    padding-bottom: 0.06em;
}

/* -- lead: 18 / 20 px, up to about 68 characters a line under the wide headline (was 44rem, about 80); balanced lines
      suit the centred stack and never add a line (this lead sets in four) */
html .dgm-morpho-hero__lead {
    max-width: 36em;
    margin-top: 1.375rem;
    font-size: 18px;
    line-height: 1.6;
    text-wrap: balance;
}

/* -- buttons: the pill stays (it is this hero's shape, like the eyebrow); 50 px, semibold 16, one hover with an
      offset shadow instead of the zero-offset glow, focus ring */
html .dgm-morpho-hero__ctas {
    gap: 0.75rem;
    margin-top: 1.875rem;
}
html .dgm-morpho-hero__button,
html .dgm-morpho-hero__button--ghost {
    gap: 0.625rem;
    min-height: 3.125rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.25;
}
html .dgm-morpho-hero__button--primary {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), 0 12px 26px -14px color-mix(in srgb, var(--mp-primary) 80%, transparent);
}
html .dgm-morpho-hero__button--primary:hover {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5), 0 18px 34px -14px color-mix(in srgb, var(--mp-primary) 90%, transparent);
}
html .dgm-morpho-hero__button--secondary:hover {
    box-shadow: 0 16px 30px -18px rgb(0 0 0 / 0.6);
}
html .dgm-morpho-hero__button:hover {
    transform: translateY(-2px);
}

/* -- one composition: the centred block and the cards sit together and are centred as a whole, instead of
      the block floating in the middle and the cards pinned to the bottom (same as magnetic-field). Phones keep
      their stacked flow. */
@media (min-width: 641px) {
    html .dgm-morpho-hero {
        justify-content: center;
    }
    html .dgm-morpho-hero__content {
        flex: 0 0 auto;
        padding-bottom: 0;
    }
    html .dgm-morpho-hero__cards-wrap {
        padding-top: 2.5rem;
        padding-bottom: 3rem;
    }
}
@media (min-width: 1024px) {
    /* the page header lies over the top 80 px of this hero, so the group is centred in the visible field:
       less room below the cards than above the eyebrow; the scroll cue (24 px from the edge) still fits */
    html .dgm-morpho-hero__cards-wrap {
        padding-bottom: 3rem;
    }
}

/* -- info cards: 16 px radius, labels 9 -> 12 px, values 15 -> 17 px, an offset shadow */
html .dgm-morpho-hero__card {
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05), 0 18px 36px -22px rgb(0 0 0 / 0.7);
}
html .dgm-morpho-hero__card:hover {
    transform: translateY(-2px);
}
html .dgm-morpho-hero__card-icon {
    flex: none;
    width: 1.125rem;
    text-align: center;
}
html .dgm-morpho-hero__card-kind {
    color: color-mix(in srgb, var(--mp-tint) 72%, transparent);
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0.1em;
}
html .dgm-morpho-hero__card-value {
    margin-top: 0.25rem;
    font-size: 17px;
    line-height: 1.3;
}

/* -- scroll cue: 24 px from the edge */
html .dgm-morpho-hero__scroll {
    bottom: 1.5rem;
}

@media (min-width: 1536px) {
    html .dgm-morpho-hero__lead { font-size: 20px; }
}

/* phones: content height (the 100svh void goes, as in the phone spec), the 12 px floor, 17 px lead */
@media (max-width: 640px) {
    html .dgm-morpho-hero {
        min-height: 0;
    }
    html .dgm-morpho-hero__content {
        padding: 6rem 1.25rem 0; /* the overlay header is 80 px tall here: 96 px keeps the eyebrow clear of it */
    }
    html .dgm-morpho-hero__eyebrow {
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding: 0.4rem 0.85rem 0.4rem 0.75rem;
        border-radius: 14px;
        letter-spacing: 0.06em;
        line-height: 1.45;
        align-items: flex-start;
        text-wrap: balance;
    }
    html .dgm-morpho-hero__pulse,
    html .dgm-morpho-hero__eyebrow > i { margin-top: 0.3em; }
    /* one phone scale for all heroes, by the shared length classes (their phone rules carry !important too) */
    html section.dgm-morpho-hero[data-event-hero] h1,
    html section.dgm-morpho-hero[data-event-hero] h1:is(.is-compact, .is-dense) {
        font-size: max(24px, 8.4vw) !important;
        line-height: 1.1 !important;
        letter-spacing: -0.025em;
    }
    html section.dgm-morpho-hero[data-event-hero] h1.is-compact { font-size: max(24px, 7.4vw) !important; }
    html section.dgm-morpho-hero[data-event-hero] h1.is-dense { font-size: max(24px, 6.6vw) !important; }
    html .dgm-morpho-hero__lead {
        margin-top: 1rem;
        font-size: 17px; /* phones: 17 px, aligned across all hero sets */
    }
    html .dgm-morpho-hero__ctas { margin-top: 1.5rem; }
    html .dgm-morpho-hero__button {
        padding: 0.7rem 1rem;
        white-space: normal;
        text-align: center;
    }
    html .dgm-morpho-hero__cards-wrap {
        padding: 2.25rem 1.25rem 2rem;
    }
    html .dgm-morpho-hero__card { padding: 0.875rem 1rem; }
    html .dgm-morpho-hero__card-value { font-size: 16px; }
    /* phones stay cheap: no backdrop blur over the animated canvas (denser glass instead), grain as a plain layer */
    html .dgm-morpho-hero__eyebrow,
    html .dgm-morpho-hero__card {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: color-mix(in srgb, var(--mp-deep-2) 78%, transparent);
    }
    html .dgm-morpho-hero__button--secondary {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: color-mix(in srgb, var(--mp-deep-2) 55%, rgb(255 255 255 / 0.08));
    }
    html .dgm-morpho-hero__vignette::after {
        mix-blend-mode: normal;
        opacity: 0.02;
    }
}

@media (prefers-reduced-motion: reduce) {
    html .dgm-morpho-hero__button:hover,
    html .dgm-morpho-hero__card:hover { transform: none; }
}


/* ==================== part E: composite-weave rework (overrides its section in part B) ==================== */

/* =====================================================================================================
   composite-weave (.dgm-weave-hero), round 3 (hero-e): the picture becomes a hybrid laminate being laid up
   (fx/composite-weave.js). Loaded after hero-b's stylesheet; type, buttons and the lockup card stay as they are.
   This file only sets the calm zones the busier picture needs: the copy column on the left and the overlay
   header on top stay dark, the picture is free in the centre and on the right.
   Rules marked [data-fx-renderer="hero-e"] only apply while the script draws (it also darkens its own canvas
   under the text on stacked layouts); if it fell back to the built-in renderer, the original look stays.
   ===================================================================================================== */

/* desktop: copy column dark and even (body text >= 4.5:1 in every frame), the layup opens up from 55 % */
html .dgm-weave-hero .dgm-weave-hero__wash {
    background:
        linear-gradient(90deg, rgb(7 8 11 / 0.94) 0%, rgb(7 8 11 / 0.9) 30%, rgb(7 8 11 / 0.74) 46%, rgb(7 8 11 / 0.34) 60%, rgb(7 8 11 / 0.08) 74%, transparent 86%),
        linear-gradient(0deg, rgb(7 8 11 / 0.8) 0%, transparent 22%),
        linear-gradient(180deg, rgb(7 8 11 / 0.55) 0%, transparent 15%);
}

/* tablets and phones: copy on top, lockup card below */
@media (max-width: 1023px) {
    html .dgm-weave-hero .dgm-weave-hero__wash {
        background:
            linear-gradient(180deg, rgb(7 8 11 / 0.84) 0%, rgb(7 8 11 / 0.8) 52%, rgb(7 8 11 / 0.46) 72%, rgb(7 8 11 / 0.62) 100%);
    }
    /* with the laminate script: a lighter even wash, so the plies read above, beside and below the copy */
    html .dgm-weave-hero[data-fx-renderer="hero-e"] .dgm-weave-hero__wash {
        background:
            linear-gradient(180deg, rgb(7 8 11 / 0.5) 0%, rgb(7 8 11 / 0.56) 45%, rgb(7 8 11 / 0.3) 70%, rgb(7 8 11 / 0.5) 100%);
    }
    html .dgm-weave-hero[data-fx-renderer="hero-e"] .dgm-weave-hero__canvas {
        opacity: 0.9;
    }
}

/* phones: no blur and no blend layer over the moving canvas; the card gets a denser surface instead */
@media (max-width: 640px) {
    html .dgm-weave-hero .dgm-weave-hero__canvas {
        opacity: 0.85;
    }
    html .dgm-weave-hero .dgm-weave-hero__wash::after {
        display: none;
    }
    html .dgm-weave-hero .dgm-weave-hero__panel,
    html .dgm-weave-hero .dgm-weave-hero__panel-wrap,
    html .dgm-weave-hero .dgm-feh__button {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    html .dgm-weave-hero .dgm-weave-hero__panel {
        background: color-mix(in oklab, var(--cw-deep) 88%, transparent);
    }
}
