
:root {
    --dphero-bg: #111816;
    --dphero-green: #254D43;
    --dphero-gold: #C39A63;
    --dphero-cream: #EEE7DB;
    --dphero-beige: #DAD0BF;
}

.dphero,
.dphero * {
    box-sizing: border-box;
}

.dphero {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: min(860px, calc(100svh - 72px));
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 45%, rgba(37,77,67,.76) 0%, rgba(17,24,22,0) 36%),
        linear-gradient(110deg, #111816 0%, #111816 56%, #13211d 100%);
    color: var(--dphero-cream);
    font-family: inherit;
}

.dphero a {
    color: inherit;
    text-decoration: none;
}

.dphero button {
    font: inherit;
}

.dphero-container {
    width: min(1420px, calc(100% - 64px));
    margin: 0 auto;
}

.dphero-layout {
    position: relative;
    z-index: 3;
    min-height: min(860px, calc(100svh - 72px));
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(390px, .96fr);
    gap: clamp(50px, 7vw, 120px);
    align-items: center;
    padding: clamp(70px, 8vw, 110px) 0 86px;
}

/* Background system */
.dphero-bg {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.dphero-bg::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(195,154,99,.68), transparent);
}

.dphero-noise {
    position: absolute;
    inset: 0;
    opacity: .14;
    background-image:
        linear-gradient(rgba(238,231,219,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(238,231,219,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 78%);
}

.dphero-orbit {
    position: absolute;
    border: 1px solid rgba(195,154,99,.105);
    border-radius: 50%;
}

.dphero-orbit--one {
    width: min(54vw, 770px);
    aspect-ratio: 1;
    top: 50%;
    right: -4vw;
    transform: translateY(-50%);
}

.dphero-orbit--one::before,
.dphero-orbit--one::after {
    content: "";
    position: absolute;
    border-radius: inherit;
}

.dphero-orbit--one::before {
    inset: 7%;
    border: 1px solid rgba(195,154,99,.13);
}

.dphero-orbit--one::after {
    inset: 22%;
    border: 1px solid rgba(238,231,219,.055);
}

.dphero-orbit--two {
    width: 390px;
    aspect-ratio: 1;
    left: -220px;
    bottom: -230px;
    opacity: .7;
}

.dphero-motif {
    position: absolute;
    width: 430px;
    aspect-ratio: 1;
    background-image: var(--dphero-motif);
    background-position: center;
    background-size: cover;
    mix-blend-mode: screen;
    filter: sepia(1) saturate(.45) hue-rotate(345deg) brightness(1.4);
    opacity: .055;
    border-radius: 48%;
}

.dphero-motif--one {
    top: -120px;
    right: -120px;
    transform: rotate(-14deg);
}

.dphero-motif--two {
    left: -150px;
    bottom: -150px;
    transform: rotate(162deg);
    opacity: .035;
}

/* Copy */
.dphero-copy {
    position: relative;
    z-index: 3;
    min-width: 0;
}

.dphero-topline {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.dphero-logo {
    width: 56px;
    height: 30px;
    display: flex;
    align-items: center;
}

.dphero-logo__img {
    display: block;
    width: auto;
    max-width: 56px;
    max-height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.dphero-logo__fallback {
    color: var(--dphero-cream);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .1em;
}

.dphero-topline__rule {
    width: 54px;
    height: 1px;
    background: rgba(195,154,99,.65);
    transform-origin: right center;
}

.dphero-eyebrow {
    color: rgba(218,208,191,.7);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .16em;
}

.dphero-title {
    max-width: 860px;
    margin: clamp(25px,4vh,42px) 0 24px;
    color: var(--dphero-cream);
    font-size: clamp(58px, 7vw, 110px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.06em;
}

.dphero-title-line {
    display: block;
    overflow: hidden;
    padding-bottom: .07em;
}

.dphero-title-line > span {
    display: block;
    will-change: transform;
}

.dphero-text {
    max-width: 670px;
    margin: 0;
    color: rgba(238,231,219,.63);
    font-size: clamp(13px,1.1vw,16px);
    line-height: 2;
}

.dphero-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.dphero-btn {
    min-height: 54px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    overflow: hidden;
    border-radius: 3px 17px 3px 3px;
    font-size: 11px;
    font-weight: 750;
    transition: border-color .25s ease, background .25s ease, color .25s ease;
}

.dphero-btn i {
    font-style: normal;
    font-size: 17px;
    line-height: 1;
}

.dphero-btn--gold {
    background: var(--dphero-gold);
    color: var(--dphero-bg) !important;
}

.dphero-btn--gold:hover {
    background: var(--dphero-cream);
}

.dphero-btn--ghost {
    border: 1px solid rgba(218,208,191,.18);
    background: rgba(255,255,255,.025);
    color: var(--dphero-beige) !important;
}

.dphero-btn--ghost:hover {
    border-color: rgba(195,154,99,.62);
    color: var(--dphero-gold) !important;
}

.dphero-notes {
    max-width: 650px;
    margin-top: clamp(46px,7vh,78px);
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    border-top: 1px solid rgba(238,231,219,.09);
}

.dphero-notes > div {
    min-width: 0;
    padding: 15px 15px 0 0;
    display: grid;
    grid-template-columns: 27px 1fr;
    align-items: center;
    gap: 7px;
    border-left: 1px solid rgba(238,231,219,.07);
}

.dphero-notes > div:last-child {
    border-left: 0;
}

.dphero-notes span {
    color: var(--dphero-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
}

.dphero-notes strong {
    overflow: hidden;
    color: rgba(218,208,191,.66);
    font-size: 9px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Visual */
.dphero-visual {
    position: relative;
    z-index: 2;
    min-width: 0;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.dphero-visual__frame {
    position: relative;
    width: min(100%, 580px);
    min-height: 590px;
    display: grid;
    place-items: center;
}

.dphero-visual__frame::before {
    content: "";
    position: absolute;
    z-index: 0;
    width: 83%;
    aspect-ratio: .92;
    border: 1px solid rgba(195,154,99,.12);
    border-radius: 48% 52% 48% 52% / 58% 43% 57% 42%;
    transform: rotate(-8deg);
}

.dphero-visual__line {
    position: absolute;
    z-index: 0;
    width: 1px;
    height: 110%;
    left: 50%;
    top: -5%;
    background: linear-gradient(to bottom, transparent, rgba(195,154,99,.21), transparent);
}

.dphero-visual__image {
    position: relative;
    z-index: 2;
    width: min(84%, 470px);
    min-height: 520px;
    display: grid;
    place-items: center;
    will-change: transform;
}

.dphero-instrument {
    display: block;
    width: 100%;
    max-height: 650px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 38px 60px rgba(0,0,0,.28));
}

/* Elegant fallback: daf-like instrument if no photo selected yet */
.dphero-fallback-instrument {
    position: relative;
    width: min(410px, 78vw);
    aspect-ratio: 1;
    border: clamp(10px,1.2vw,17px) solid #6f4a31;
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 32%, rgba(218,208,191,.78), rgba(145,115,77,.58) 60%, rgba(58,39,28,.6)),
        #806244;
    box-shadow:
        inset 0 0 0 4px rgba(195,154,99,.25),
        inset 0 0 55px rgba(17,24,22,.32),
        0 45px 80px rgba(0,0,0,.27);
    transform: rotate(-8deg);
}

.dphero-fallback-instrument__rim {
    position: absolute;
    inset: 13px;
    border: 1px solid rgba(238,231,219,.28);
    border-radius: 50%;
}

.dphero-fallback-instrument__inner {
    position: absolute;
    inset: 34px;
    border: 1px solid rgba(17,24,22,.15);
    border-radius: 50%;
}

.dphero-fallback-instrument__dot {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--dphero-gold);
    box-shadow: 0 0 18px rgba(195,154,99,.52);
}

.dphero-fallback-instrument__dot--1 { top: 17%; left: 1%; }
.dphero-fallback-instrument__dot--2 { right: 5%; bottom: 23%; }
.dphero-fallback-instrument__dot--3 { bottom: 5%; left: 28%; }

.dphero-seal {
    position: absolute;
    z-index: 4;
    top: 11%;
    right: 1%;
    width: 108px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(195,154,99,.52);
    border-radius: 50%;
    background: rgba(17,24,22,.68);
    backdrop-filter: blur(7px);
    color: var(--dphero-cream);
    transform: rotate(7deg);
    will-change: transform;
}

.dphero-seal__ring {
    position: absolute;
    inset: 7px;
    border: 1px dashed rgba(195,154,99,.36);
    border-radius: 50%;
}

.dphero-seal strong {
    color: var(--dphero-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1;
}

.dphero-seal small {
    margin-top: 4px;
    color: rgba(238,231,219,.54);
    font-size: 6px;
    letter-spacing: .16em;
}

.dphero-visual__caption {
    position: absolute;
    z-index: 4;
    left: 0;
    bottom: 6%;
    min-width: 220px;
    padding: 14px 16px;
    display: grid;
    gap: 4px;
    border-right: 1px solid var(--dphero-gold);
    background: linear-gradient(90deg, rgba(17,24,22,.82), rgba(17,24,22,.18));
    backdrop-filter: blur(5px);
}

.dphero-visual__caption span {
    color: var(--dphero-gold);
    font-size: 7px;
    letter-spacing: .15em;
}

.dphero-visual__caption strong {
    color: var(--dphero-beige);
    font-size: 10px;
    font-weight: 650;
}

/* Scroll hint */
.dphero-scroll {
    position: absolute;
    z-index: 5;
    right: 24px;
    bottom: 30px;
    width: 28px;
    height: 112px;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: rgba(218,208,191,.4) !important;
    cursor: pointer;
}

.dphero-scroll span {
    font-size: 6px;
    letter-spacing: .15em;
    writing-mode: vertical-rl;
}

.dphero-scroll i {
    position: relative;
    display: block;
    width: 1px;
    height: 48px;
    overflow: hidden;
    background: rgba(238,231,219,.11);
}

.dphero-scroll i::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 1px;
    height: 45%;
    background: var(--dphero-gold);
    animation: dphero-scroll-line 1.7s ease-in-out infinite;
}

@keyframes dphero-scroll-line {
    0% { transform: translateY(0); }
    100% { transform: translateY(320%); }
}

/* Only mark elements for hidden GSAP states when JS confirms GSAP exists */
.dphero.dphero-gsap-ready .dphero-title-line > span,
.dphero.dphero-gsap-ready .dphero-topline,
.dphero.dphero-gsap-ready .dphero-text,
.dphero.dphero-gsap-ready .dphero-actions,
.dphero.dphero-gsap-ready .dphero-notes,
.dphero.dphero-gsap-ready .dphero-visual__frame {
    will-change: transform, opacity;
}

@media (max-width: 1050px) {
    .dphero-container {
        width: min(100% - 42px, 1000px);
    }

    .dphero-layout {
        grid-template-columns: minmax(0,1fr) 390px;
        gap: 42px;
    }

    .dphero-title {
        font-size: clamp(54px,7vw,78px);
    }

    .dphero-visual__frame {
        min-height: 520px;
    }

    .dphero-visual__image {
        min-height: 460px;
    }

    .dphero-seal {
        width: 92px;
    }
}

@media (max-width: 820px) {
    .dphero {
        min-height: auto;
    }

    .dphero-container {
        width: min(100% - 30px, 720px);
    }

    .dphero-layout {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 54px 0 72px;
    }

    .dphero-visual {
        order: -1;
    }

    .dphero-visual__frame {
        width: min(100%, 520px);
        min-height: 390px;
    }

    .dphero-visual__image {
        min-height: 370px;
        width: min(75%, 370px);
    }

    .dphero-instrument {
        max-height: 430px;
    }

    .dphero-fallback-instrument {
        width: min(310px,70vw);
    }

    .dphero-seal {
        top: 5%;
        right: 5%;
        width: 84px;
    }

    .dphero-visual__caption {
        bottom: 3%;
    }

    .dphero-title {
        margin-top: 22px;
        font-size: clamp(52px,12vw,86px);
    }

    .dphero-notes {
        margin-top: 42px;
    }

    .dphero-orbit--one {
        width: 92vw;
        top: 22%;
        right: -22vw;
    }

    .dphero-scroll {
        display: none;
    }
}

@media (max-width: 560px) {
    .dphero-container {
        width: calc(100% - 24px);
    }

    .dphero-layout {
        padding-top: 34px;
        padding-bottom: 54px;
    }

    .dphero-visual__frame {
        min-height: 310px;
    }

    .dphero-visual__image {
        min-height: 290px;
        width: min(78%,300px);
    }

    .dphero-fallback-instrument {
        width: min(255px,68vw);
    }

    .dphero-seal {
        width: 72px;
    }

    .dphero-seal strong {
        font-size: 19px;
    }

    .dphero-visual__caption {
        left: 2%;
        min-width: 190px;
        padding: 10px 12px;
    }

    .dphero-topline {
        gap: 10px;
    }

    .dphero-topline__rule {
        width: 28px;
    }

    .dphero-eyebrow {
        overflow: hidden;
        font-size: 7px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .dphero-title {
        font-size: clamp(48px,15vw,70px);
    }

    .dphero-text {
        font-size: 11px;
    }

    .dphero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dphero-btn {
        width: 100%;
    }

    .dphero-notes {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dphero-notes > div {
        min-height: 42px;
        padding: 8px 0;
        border-left: 0;
        border-bottom: 1px solid rgba(238,231,219,.06);
    }

    .dphero-motif {
        width: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dphero *,
    .dphero *::before,
    .dphero *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}
