.home-hero {
    --portrait-x: 0px;
    --portrait-y: 0px;
    --portrait-tilt: 0deg;
    --hero-pointer-x: 50%;
    --hero-pointer-y: 42%;
    --hero-shift-x: 0px;
    --hero-shift-y: 0px;
    --hero-energy: 0;
    --hero-copy-scroll-y: 0px;
    --hero-scene-scroll-y: 0px;
    --hero-portrait-scroll-x: 0px;
    --hero-portrait-scroll-y: 0px;
    --hero-copy-opacity: 1;
    --hero-scene-opacity: 1;
    --hero-portrait-opacity: 1;
    --hero-transition-opacity: 0.18;
    --hero-transition-y: 10px;
    --hero-safe-gutter: max(24px, calc((100vw - var(--content-width)) / 2));
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(410px, 0.82fr);
    min-height: min(964px, calc(100svh - 58px));
    align-items: stretch;
    overflow: hidden;
    padding: clamp(30px, 4.2vh, 54px) 0 clamp(72px, 8vh, 106px);
}

.home-hero::before {
    position: absolute;
    inset: -6% -11% -2%;
    z-index: -4;
    background:
        radial-gradient(circle at var(--hero-pointer-x) var(--hero-pointer-y), rgba(142, 240, 210, 0.11), transparent 18%),
        radial-gradient(circle at 79% 31%, rgba(106, 132, 255, 0.16), transparent 29%),
        radial-gradient(circle at 15% 20%, rgba(142, 240, 210, 0.07), transparent 24%),
        linear-gradient(115deg, rgba(142, 240, 210, 0.018), transparent 44%, rgba(106, 132, 255, 0.025));
    content: "";
    filter: blur(10px);
    opacity: calc(0.74 + var(--hero-energy) * 0.2);
    pointer-events: none;
    transform: translate3d(var(--hero-shift-x), var(--hero-shift-y), 0) scale(calc(1 + var(--hero-energy) * 0.016));
    transition: opacity 180ms ease, transform 120ms linear;
}

.home-hero::after {
    position: absolute;
    inset: 5% -8% 2% -8%;
    z-index: -5;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 66px 66px;
    content: "";
    mask-image: radial-gradient(ellipse at 45% 55%, black 8%, transparent 73%);
    opacity: 0.42;
    pointer-events: none;
    transform: perspective(860px) rotateX(69deg) translateY(24%);
    transform-origin: 50% 100%;
}

.home-hero__canvas {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.78;
    pointer-events: none;
}

.home-hero__transition {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    z-index: 1;
    height: clamp(186px, 24vh, 262px);
    background:
        radial-gradient(ellipse at 42% 100%, rgba(142, 240, 210, 0.095), transparent 55%),
        radial-gradient(ellipse at 77% 100%, rgba(122, 169, 255, 0.09), transparent 51%),
        linear-gradient(180deg, transparent 5%, rgba(6, 8, 12, 0.22) 44%, var(--page-bg) 100%);
    opacity: var(--hero-transition-opacity);
    pointer-events: none;
    transform: translate3d(0, var(--hero-transition-y), 0);
    transition: opacity 120ms linear, transform 120ms linear;
}

.home-hero__left {
    position: relative;
    z-index: 4;
    min-width: 0;
    min-height: min(842px, calc(100svh - 112px));
}

.home-hero__copy {
    position: absolute;
    top: clamp(4px, 1.7vh, 22px);
    left: 0;
    z-index: 7;
    width: min(740px, 82%);
    opacity: var(--hero-copy-opacity);
    translate: 0 var(--hero-copy-scroll-y);
    pointer-events: none;
    transition: opacity 90ms linear, translate 90ms linear;
}

.home-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--muted-strong);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-hero__eyebrow::before {
    width: 22px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), rgba(142, 240, 210, 0.1));
    content: "";
}

.home-hero__title {
    margin: 0;
    font-size: clamp(4.5rem, 6.85vw, 7.7rem);
    font-weight: 760;
    letter-spacing: -0.072em;
    line-height: 0.86;
    text-shadow: 0 22px 74px rgba(0, 0, 0, 0.24);
}

.home-hero__title-line {
    display: block;
}

.home-hero__title-line--accent {
    color: transparent;
    background: linear-gradient(112deg, #dffdf4 5%, var(--accent) 48%, #82adff 92%);
    background-size: 165% 100%;
    background-position: var(--hero-pointer-x) center;
    background-clip: text;
    -webkit-background-clip: text;
    transition: background-position 100ms linear;
}

.home-hero__lead {
    position: relative;
    width: fit-content;
    max-width: 40ch;
    margin: 22px 0 0;
    padding: 8px 0 8px 20px;
    background-image: linear-gradient(180deg, rgba(142, 240, 210, 0.06), rgba(142, 240, 210, 0.34), rgba(142, 240, 210, 0.06));
    background-position: 0 50%;
    background-repeat: no-repeat;
    background-size: 1px calc(100% - 18px);
    color: var(--muted-strong);
    font-size: clamp(1rem, 1.12vw, 1.12rem);
    line-height: 1.58;
}

.home-hero__lead::before {
    position: absolute;
    top: 18px;
    left: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 18px rgba(142, 240, 210, 0.55);
    content: "";
}

.home-hero__lead::after {
    position: absolute;
    top: 22px;
    left: calc(100% + 18px);
    width: clamp(62px, 7vw, 132px);
    height: 1px;
    background: linear-gradient(90deg, rgba(142, 240, 210, 0.23), transparent);
    content: "";
}

.home-portrait {
    position: relative;
    z-index: 2;
    isolation: isolate;
    display: grid;
    min-width: 0;
    min-height: min(854px, calc(100svh - 94px));
    place-items: end center;
    align-self: stretch;
    opacity: var(--hero-portrait-opacity);
    translate: var(--hero-portrait-scroll-x) var(--hero-portrait-scroll-y);
    transition: opacity 100ms linear, translate 100ms linear;
}

.home-portrait::before {
    position: absolute;
    inset: 7% -6% 3% -2%;
    z-index: -3;
    border-radius: 46% 54% 44% 56% / 42% 48% 52% 58%;
    background:
        radial-gradient(circle at 55% 36%, rgba(142, 240, 210, 0.16), transparent 31%),
        radial-gradient(circle at 72% 58%, rgba(98, 111, 255, 0.16), transparent 38%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.025), transparent 62%);
    content: "";
}

.home-portrait__atmosphere {
    position: absolute;
    inset: 4% -1% 5% 1%;
    z-index: -1;
    pointer-events: none;
    transform: translate3d(calc(var(--hero-shift-x) * -0.35), calc(var(--hero-shift-y) * -0.3), 0);
    transition: transform 120ms linear;
}

.home-portrait__orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
}

.home-portrait__orbit--outer {
    top: 14%;
    left: 8%;
    width: 82%;
    aspect-ratio: 1;
    border-color: rgba(142, 240, 210, 0.12);
    animation: scene-orbit 34s linear infinite;
}

.home-portrait__orbit--inner {
    top: 35%;
    right: 1%;
    width: 45%;
    aspect-ratio: 1;
    border-color: rgba(135, 149, 255, 0.16);
    animation: scene-orbit 26s linear infinite reverse;
}

.home-portrait__orbit--outer::before {
    position: absolute;
    top: 10%;
    right: 12%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 22px rgba(142, 240, 210, 0.62);
    content: "";
}

.home-portrait__flare {
    position: absolute;
    top: 18%;
    right: 0;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(135, 149, 255, 0.13), transparent 68%);
    filter: blur(14px);
}

.home-portrait__marker {
    position: absolute;
    width: 52px;
    height: 52px;
    border-color: rgba(142, 240, 210, 0.32);
    opacity: 0.62;
}

.home-portrait__marker--top {
    top: 13%;
    right: 6%;
    border-top: 1px solid;
    border-right: 1px solid;
}

.home-portrait__marker--bottom {
    bottom: 18%;
    left: 3%;
    border-bottom: 1px solid;
    border-left: 1px solid;
}

.home-portrait__media {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
}

.home-portrait__image {
    display: block;
    width: min(121%, 810px);
    max-width: none;
    max-height: 100%;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(0 34px 52px rgba(0, 0, 0, 0.34)) saturate(calc(1 + var(--hero-energy) * 0.04));
    mask-image: linear-gradient(to bottom, black 0%, black 91%, transparent 100%);
    transform: translate3d(var(--portrait-x), var(--portrait-y), 0) rotate(var(--portrait-tilt));
    transform-origin: 100% 100%;
    transition: transform 90ms linear;
    user-select: none;
}

.home-portrait__identity {
    position: absolute;
    right: clamp(18px, 2vw, 34px);
    bottom: 15%;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    color: rgba(246, 247, 249, 0.6);
    background: rgba(7, 9, 13, 0.48);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 8px;
    letter-spacing: 0.12em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
}

.home-portrait__identity-line {
    width: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.17);
}

.home-portrait__identity-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(142, 240, 210, 0.6);
}

