/* GENERATED: edit modules/home/; run python3 tools/build-home.py. */

/* modules/home/hero/styles.css#artwork-001 */
:where(body.uirh-home-layout-316) .irhp-widget-scope[data-uirh-native] .hero-art {
    isolation: isolate;
    position: relative;
}

:where(body.uirh-home-layout-316) .irhp-widget-scope[data-uirh-native] .hero-photo-window {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    -webkit-mask: url('../patterns/home-hero-photo-mask.png') center / 100% 100% no-repeat;
    mask: url('../patterns/home-hero-photo-mask.png') center / 100% 100% no-repeat;
    /* Exact lossless WebP for supporting browsers; keep the original PNG as fallback. */
    -webkit-mask-image: image-set(url('../patterns/home-hero-photo-mask.webp') type("image/webp"), url('../patterns/home-hero-photo-mask.png') type("image/png"));
    mask-image: image-set(url('../patterns/home-hero-photo-mask.webp') type("image/webp"), url('../patterns/home-hero-photo-mask.png') type("image/png"));
}

:where(body.uirh-home-layout-316) .irhp-widget-scope[data-uirh-native] .hero-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--hero-focus-x, 50%) var(--hero-focus-y, 50%);
    border: 0;
    border-radius: 0;
    margin: 0;
    transform: none;
}

:where(body.uirh-home-layout-316) .irhp-widget-scope[data-uirh-native] .hero-frame-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border: 0;
    margin: 0;
    pointer-events: none;
    user-select: none;
}

:where(body.uirh-home-layout-316) .irhp-widget-scope[data-uirh-native] .hero-play-badge {
    left: 0;
    top: 60.5%;
    bottom: auto;
    z-index: 2;
    width: 24%;
    height: auto;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1;
    border: 0;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    display: grid;
    place-items: center;
    background: transparent;
    color: #ebcd84;
    cursor: pointer;
    overflow: visible;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-shadow: none;
    transform: none;
    transition: transform .24s ease, filter .24s ease, color .2s ease;
}

:where(body.uirh-home-layout-316) .irhp-widget-scope[data-uirh-native] .hero-play-badge svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    transform: none;
    overflow: visible;
    pointer-events: none;
}

:where(body.uirh-home-layout-316) .irhp-widget-scope[data-uirh-native] .hero-play-halo {
    fill: #074752;
    stroke: #d8bf7b;
    stroke-opacity: .65;
    stroke-width: .8;
}

:where(body.uirh-home-layout-316) .irhp-widget-scope[data-uirh-native] .hero-play-disc {
    fill: currentColor;
    stroke: none;
}

:where(body.uirh-home-layout-316) .irhp-widget-scope[data-uirh-native] .hero-play-triangle {
    fill: #07505a;
    stroke: none;
    transform-origin: 50% 50%;
    transition: transform .24s ease;
}

/* modules/home/hero/styles.css#artwork-002 */
@media (hover: hover) {
    :where(body.uirh-home-layout-316) .irhp-widget-scope[data-uirh-native] .hero-play-badge:hover {
        color: #fff0b4;
        transform: translateY(-2px) scale(1.045);
        filter: drop-shadow(0 0 9px #e6c87466) drop-shadow(0 4px 6px #001c2866);
    }

    :where(body.uirh-home-layout-316) .irhp-widget-scope[data-uirh-native] .hero-play-badge:hover .hero-play-triangle {
        transform: translateX(1.2px);
    }
}

/* modules/home/hero/styles.css#artwork-003 */
:where(body.uirh-home-layout-316) .irhp-widget-scope[data-uirh-native] .hero-play-badge:focus-visible {
    outline: 2px solid #fff0b4;
    outline-offset: 4px;
    color: #fff0b4;
    filter: drop-shadow(0 0 7px #e6c87455);
}

:where(body.uirh-home-layout-316) .irhp-widget-scope[data-uirh-native] .hero-play-badge:active {
    transform: scale(.98);
}

/* modules/home/shared/styles.css#artwork-004 */
:where(body.uirh-home-layout-316) .irhp-widget-scope[data-uirh-native] .home-knowledge-ornament {
    position: absolute;
    left: clamp(30px, 5.15vw, 100px);
    top: 64px;
    width: clamp(166px, 17vw, 218px);
    aspect-ratio: 795 / 260;
    display: block;
    background: url('../patterns/home-knowledge-motif.webp') center / contain no-repeat;
    opacity: .32;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* modules/home/interactions/styles.css#artwork-005 */
:where(body.uirh-home-layout-316) .irhp-widget-scope[data-uirh-native] .interactions .home-knowledge-ornament {
    top: auto;
    bottom: 54px;
    left: auto;
    right: clamp(30px, 5.15vw, 100px);
    width: clamp(180px, 17vw, 234px);
    opacity: .34;
}

/* modules/home/interactions/styles.css#artwork-006 */
@media (max-width: 1439px) {
    :where(body.uirh-home-layout-316) .irhp-widget-scope[data-uirh-native] .interactions .home-knowledge-ornament {
        display: none;
    }
}

/* modules/home/shared/styles.css#artwork-007 */
@media (max-width: 1179px) {
    :where(body.uirh-home-layout-316) .irhp-widget-scope[data-uirh-native] .home-knowledge-ornament {
        display: none;
    }
}

/* modules/home/hero/styles.css#artwork-008 */
:where(body.uirh-home-layout-316) .home-hero-video-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(940px, 94vw);
    max-width: 94vw;
    max-height: 90dvh;
    height: fit-content;
    padding: 20px;
    overflow: auto;
    color: #fff8e9;
    background: #073c45;
    border: 1px solid #cbaa6e;
    border-radius: 18px;
    box-shadow: 0 22px 90px #00192380;
    
    direction: rtl;
}

:where(body.uirh-home-layout-316) .home-hero-video-dialog::backdrop {
    background: #001d26dd;
    backdrop-filter: blur(5px);
}

:where(body.uirh-home-layout-316) .home-hero-video-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

:where(body.uirh-home-layout-316) .home-hero-video-top h2 {
    margin: 0;
    color: #edd9a7;
    line-height: 1.8;}

:where(body.uirh-home-layout-316) .home-hero-video-close {
    flex: none;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid #cbaa6e88;
    border-radius: 50%;
    background: transparent;
    color: #fff8e9;
    font:inherit;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

:where(body.uirh-home-layout-316) .home-hero-video-close:is(:hover,:focus-visible) {
    background: #cbaa6e22;
    outline: 2px solid #f3dcaa;
    outline-offset: 3px;
}

:where(body.uirh-home-layout-316) .home-hero-video-content video,
:where(body.uirh-home-layout-316) .home-hero-video-content iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 66dvh;
    object-fit: contain;
    border: 0;
    background: #001d26;
    border-radius: 8px;
}

:where(body.uirh-home-layout-316) .home-hero-video-content p {
    margin: 0;
    padding: 36px 16px;
    text-align: center;
    font:inherit;
    line-height: 2;
    color: #e8eee5;
}

:where(body.uirh-home-layout-316) .home-hero-video-content a {
    color: #f2d79c;
    text-underline-offset: 4px;
}

/* modules/home/hero/styles.css#artwork-009 */
@media (prefers-reduced-motion: reduce) {
    :where(body.uirh-home-layout-316) .irhp-widget-scope[data-uirh-native] .hero-play-badge,
  :where(body.uirh-home-layout-316) .irhp-widget-scope[data-uirh-native] .hero-play-triangle {
        transition: none !important;
        transform: none !important;
    }
}

/* modules/home/shared/styles.css#artwork-008 */
/* Exact Works background, reused on the hero, header, footer and Works section. */
:where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] :is(
    .site-header.section-texture-dark,
    .site-footer.section-texture-dark,
    .works.works-reference,
    .hero
) {
    background-color: #003c45 !important;
    background-image: url('../patterns/home-works-reference-background.webp') !important;
    background-size: 1022px 596px !important;
    background-repeat: repeat !important;
    background-position: left top !important;
}

/* The original cream girih tile is retained at its native size and gentle opacity. */
:where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] section.irhp-section.section-texture-cream {
    position: relative !important;
    isolation: isolate !important;
}

:where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] section.irhp-section.section-texture-cream::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: -1 !important;
    pointer-events: none !important;
    background-image: url('../patterns/cream-girih-tile.png') !important;
    /* Exact lossless WebP on modern browsers; the PNG declaration above is the fallback. */
    background-image: image-set(url('../patterns/cream-girih-tile.webp') type("image/webp"), url('../patterns/cream-girih-tile.png') type("image/png")) !important;
    background-size: 108px 90px !important;
    background-repeat: repeat !important;
    background-position: left top !important;
    opacity: .42 !important;
    mix-blend-mode: normal !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

/* Keep the authentic teal weave on the teal entry panel and its selected route. */
:where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .quick-panel {
    background-image: url('../patterns/home-teal-extracted-reference.webp'), linear-gradient(100deg, #dfded62e, #79acaa28 45%, #65a6b12b);
    background-size: 1220px 204px, 100% 100%;
    background-repeat: repeat, no-repeat;
    background-position: center, center;
}

/* Requested corner detailing; fills, borders, sizing and card positions stay intact. */
:where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .quick-item,
:where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] [data-uirh-carousel] .news-body,
:where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .interaction-card {
    background-image: url('../patterns/home-card-corner-light.svg'), url('../patterns/home-card-corner-light-flipped.svg');
    background-size: 30px 30px, 30px 30px;
    background-repeat: no-repeat, no-repeat;
    background-position: right 4px top 4px, left 4px bottom 4px;
}

:where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .quick-item.is-selected {
    background-image: url('../patterns/home-teal-extracted-reference.webp'), url('../patterns/home-card-corner-dark.svg'), url('../patterns/home-card-corner-dark-flipped.svg');
    background-size: 1220px 204px, 30px 30px, 30px 30px;
    background-repeat: repeat, no-repeat, no-repeat;
    background-position: center, right 4px top 4px, left 4px bottom 4px;
}

/* Make the existing play control clearer without moving or resizing the hero frame. */
:where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .hero-play-badge {
    left: 4.5% !important;
    top: 59% !important;
    bottom: auto !important;
    z-index: 2;
    width: clamp(56px, 6.8vw, 78px) !important;
    height: auto !important;
    min-width: 56px !important;
    min-height: 56px !important;
    aspect-ratio: 1;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    background: transparent !important;
    color: #f1d89c !important;
    filter: drop-shadow(0 6px 12px #001c2880);
    transition: transform .24s ease, filter .24s ease;
}

:where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .hero-play-badge svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

:where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .hero-play-halo {
    fill: #073c45;
    stroke: #fff0c2;
    stroke-width: 2;
    stroke-opacity: .95;
}

:where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .hero-play-orbit {
    fill: none;
    stroke: #fff4d3;
    stroke-width: 1.5;
    stroke-opacity: .84;
}

:where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .hero-play-disc {
    fill: #f1d89c;
    stroke: #fff7df;
    stroke-width: 1.4;
}

:where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .hero-play-triangle {
    fill: #073c45;
    stroke: none;
    transform-origin: 50% 50%;
    transition: transform .24s ease;
}

/* Refined hover states only on hover-capable devices, and only when motion is allowed. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    :where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] :is(.eco-card, .news-card, .event-card, .interaction-card) {
        transition: transform .23s cubic-bezier(.22, .72, .22, 1), box-shadow .23s ease, border-color .23s ease;
    }

    :where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] :is(.news-card, .event-card, .interaction-card):hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(7, 60, 69, .14);
        border-color: rgba(184, 145, 79, .68);
        z-index: 2;
    }

    :where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] :is(.news-card, .event-card) .card-image-link img {
        transition: transform .38s cubic-bezier(.22, .72, .22, 1);
    }

    :where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] :is(.news-card, .event-card):hover .card-image-link img {
        transform: scale(1.035);
    }

    :where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .eco-card svg,
    :where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .interaction-link > svg,
    :where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .step-badge {
        transition: transform .22s cubic-bezier(.22, .72, .22, 1), filter .22s ease;
    }

    :where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .eco-card:hover svg,
    :where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .interaction-card:hover .interaction-link > svg,
    :where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .step:hover .step-badge {
        transform: scale(1.045);
    }

    :where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] :is(.step, .button, .see-all-link, .slider-arrow) {
        transition: transform .2s cubic-bezier(.22, .72, .22, 1), box-shadow .2s ease, color .2s ease, background-color .2s ease;
    }

    :where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] :is(.step, .button, .see-all-link):hover {
        transform: translateY(-2px);
    }

    :where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .slider-arrow:hover {
        transform: scale(1.05);
    }

    :where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .project-row {
        transition: background-color .18s ease, color .18s ease;
    }

    :where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .project-row:hover {
        background-color: rgba(203, 170, 110, .07);
    }

    :where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .hero-play-badge:hover {
        transform: translateY(-2px) scale(1.055);
        filter: drop-shadow(0 0 10px #ecd18b88) drop-shadow(0 6px 10px #001c2880);
    }

    :where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .hero-play-badge:hover .hero-play-triangle {
        transform: translateX(1.5px);
    }
}

:where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .hero-play-badge:focus-visible {
    outline: 2px solid #fff0c2;
    outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
    :where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .hero-play-badge,
    :where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .hero-play-triangle {
        transition: none !important;
        transform: none !important;
    }
}

/* Small reference diamond on the existing header rule; no header geometry changes. */
:where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .site-header::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    z-index: 3;
    width: 8px;
    height: 8px;
    background: #073c45;
    border: 1px solid #d9b878;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 0 0 0 2px #073c45;
    pointer-events: none;
}

/* modules/home/shared/styles.css#artwork-009 */
/* Align each remaining HOME "View all" link to the right edge of its own content area. */
:where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] .see-all-wrap {
    text-align: right !important;
}

/* These two section links are absolutely positioned; move the anchor from the
   physical left edge to the corresponding right-side content gutter. */
:where(body.uirh-home-layout-317) .irhp-widget-scope.irhp-widget-scope[data-uirh-native] :is(.works, .interactions) > .see-all-wrap {
    left: auto !important;
    right: max(24px, calc(36.5*var(--hl-u)), calc((100% - var(--k-container))/2)) !important;
    margin-inline: 0 !important;
}
