/* Front-page presentation only. Loaded after the global stylesheet. */
/* ==========================================================================
   Hero redesign v2 based on latest approved reference
   ========================================================================== */
.hero-studio {
    position: relative;
    padding: 0 0 42px;
    background: linear-gradient(180deg, #f6f3ee 0%, #f5f4f0 100%);
    overflow: hidden;
}

html[data-theme="dark"] .hero-studio {
    background:
        radial-gradient(circle at 78% 16%, rgba(14, 56, 92, .34), transparent 24%),
        linear-gradient(180deg, #081017 0%, #060b10 100%);
}

.hero-studio-shell {
    position: relative;
}

.hero-studio-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    align-items: stretch;
    min-height: 700px;
}

.hero-studio-copy {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 18px 104px 0;
}

.hero-studio-title {
    margin: 0;
    display: grid;
    gap: .02em;
    color: var(--navy-900);
    font-size: clamp(56px, 6vw, 84px);
    line-height: .93;
    letter-spacing: -.05em;
    max-width: 8.5ch;
}

html[data-theme="dark"] .hero-studio-title {
    color: #f5eee4;
}

.hero-studio-title-accent {
    color: var(--sage-700);
}

html[data-theme="dark"] .hero-studio-title-accent {
    color: var(--copper-500);
}

.hero-studio-text {
    margin: 0;
    max-width: 24ch;
    font-size: 1.08rem;
    line-height: 1.72;
}

.hero-studio-text-primary {
    margin-top: 40px;
    color: var(--ink);
}

html[data-theme="dark"] .hero-studio-text-primary {
    color: rgba(247, 239, 230, .92);
}

.hero-studio-actions {
    gap: 18px;
    margin-top: 38px;
}

.hero-studio-actions .button {
    min-width: 166px;
    padding: 18px 26px;
    border-radius: 0;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .83rem;
}

.hero-studio-actions .button-primary {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: #fff;
}

.hero-studio-actions .button-outline {
    background: transparent;
    border-color: rgba(16, 43, 60, .34);
    color: var(--navy-900);
}

html[data-theme="dark"] .hero-studio-actions .button-primary {
    background: var(--copper-500);
    border-color: var(--copper-500);
}

html[data-theme="dark"] .hero-studio-actions .button-outline {
    border-color: rgba(209, 140, 88, .56);
    color: #f5eee4;
}

.hero-studio-visual {
    position: relative;
    min-height: 700px;
}

.hero-studio-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-light);
    background-size: cover;
    background-position: center right;
    clip-path: polygon(28% 0, 100% 0, 100% 100%, 56% 100%, 0 72%, 0 28%);
    z-index: 2;
}

html[data-theme="dark"] .hero-studio-visual::before {
    background-image: var(--hero-dark);
}

.hero-studio-visual-shape {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(135deg, rgba(189, 217, 250, .55) 0%, rgba(189, 217, 250, .22) 34%, rgba(255, 255, 255, 0) 34%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 58% 100%, 0 74%, 0 31%);
}

html[data-theme="dark"] .hero-studio-visual-shape {
    background:
        linear-gradient(135deg, rgba(21, 59, 92, .54) 0%, rgba(21, 59, 92, .18) 38%, rgba(0, 0, 0, 0) 38%);
}

.hero-studio-features {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: -60px;
    border-top: 1px solid rgba(16, 43, 60, .08);
    border-bottom: 1px solid rgba(16, 43, 60, .08);
    background: rgba(255, 255, 255, .68);
    backdrop-filter: blur(6px);
}

.hero-studio-feature {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 118px;
    padding: 24px 26px;
}

.hero-studio-feature + .hero-studio-feature {
    border-left: 1px solid rgba(16, 43, 60, .08);
}

.hero-studio-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(109, 127, 96, .4);
    color: var(--sage-700);
    font-size: 1.16rem;
    flex-shrink: 0;
}

.hero-studio-feature-copy h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--navy-900);
}

.hero-studio-feature-copy p {
    margin: 0;
    font-size: .97rem;
    line-height: 1.45;
    color: var(--muted);
}

html[data-theme="dark"] .hero-studio-features {
    border-top-color: rgba(209, 140, 88, .2);
    border-bottom-color: rgba(209, 140, 88, .2);
    background: rgba(5, 10, 14, .56);
}

html[data-theme="dark"] .hero-studio-feature + .hero-studio-feature {
    border-left-color: rgba(209, 140, 88, .16);
}

html[data-theme="dark"] .hero-studio-feature-icon {
    border-color: rgba(209, 140, 88, .5);
    color: var(--copper-500);
}

html[data-theme="dark"] .hero-studio-feature-copy h3 {
    color: #f5eee4;
}

html[data-theme="dark"] .hero-studio-feature-copy p {
    color: rgba(243, 226, 210, .84);
}

@media (max-width: 1100px) {
    .hero-studio-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-studio-copy {
        padding: 26px 0 34px;
        order: 1;
    }

    .hero-studio-title {
        max-width: 9.5ch;
    }

    .hero-studio-visual {
        min-height: 460px;
        order: 2;
    }

    .hero-studio-features {
        width: min(760px, 100%);
        grid-template-columns: 1fr;
        margin: 18px auto 0;
    }

    .hero-studio-feature + .hero-studio-feature {
        border-left: 0;
        border-top: 1px solid rgba(16, 43, 60, .08);
    }

    html[data-theme="dark"] .hero-studio-feature + .hero-studio-feature {
        border-top-color: rgba(209, 140, 88, .16);
    }
}

@media (max-width: 620px) {
    .hero-studio {
        padding: 0 0 26px;
    }

    .hero-studio-grid {
        gap: 0;
    }

    .hero-studio-copy {
        padding: 20px 0 20px;
    }

    .hero-studio-title {
        font-size: clamp(42px, 13vw, 58px);
        max-width: 8.8ch;
    }

    .hero-studio-text {
        max-width: none;
        font-size: 1rem;
    }

    .hero-studio-text-primary {
        margin-top: 28px;
    }

    .hero-studio-actions {
        margin-top: 28px;
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-studio-actions .button {
        width: 100%;
    }

    .hero-studio-visual {
        min-height: 300px;
    }

    .hero-studio-visual::before {
        clip-path: polygon(16% 0, 100% 0, 100% 100%, 52% 100%, 0 76%, 0 22%);
    }

    .hero-studio-visual-shape {
        clip-path: polygon(18% 0, 100% 0, 100% 100%, 54% 100%, 0 78%, 0 24%);
    }

    .hero-studio-feature {
        min-height: 0;
        padding: 20px 16px;
    }

    .hero-studio-feature-icon {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    .hero-studio-feature-copy h3 {
        font-size: .98rem;
    }

    .hero-studio-feature-copy p {
        font-size: .92rem;
    }
}

/* --------------------------------------------------------------------------
 * Desktop full-bleed hero image alignment
 * Keeps the editorial copy aligned to the 1320px site grid while allowing
 * the architectural image to continue seamlessly to the right viewport edge.
 * -------------------------------------------------------------------------- */
@media (min-width: 1101px) {
    .hero-studio-shell.site-shell {
        width: 100%;
        max-width: none;
        margin-inline: 0;
    }

    .hero-studio-grid {
        width: 100%;
        grid-template-columns:
            minmax(540px, calc((100vw - 1320px) / 2 + 520px))
            minmax(0, 1fr);
    }

    .hero-studio-visual,
    .hero-studio-visual::before,
    .hero-studio-visual-shape {
        right: 0;
    }

    .hero-studio-visual::before {
        background-position: center right;
    }

    .hero-studio-features {
        width: min(1320px, calc(100% - 48px));
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================================================
   Hero typography, controls and motion refinement
   ========================================================================== */
.hero-studio {
    --hero-accent: var(--sage-700);
    --hero-accent-strong: #536d58;
    --hero-button-shadow: 0 16px 34px rgba(16, 43, 60, .18);
    --hero-button-shadow-hover: 0 22px 44px rgba(16, 43, 60, .24);
}

html[data-theme="dark"] .hero-studio {
    --hero-accent: var(--copper-500);
    --hero-accent-strong: #e09b65;
    --hero-button-shadow: 0 16px 34px rgba(0, 0, 0, .34);
    --hero-button-shadow-hover: 0 24px 48px rgba(0, 0, 0, .46);
}

.hero-studio-copy {
    padding-right: 58px;
    text-align: left;
}

.hero-studio-title {
    max-width: 9.7ch;
    font-family: var(--font-display);
    font-size: clamp(58px, 5.7vw, 86px);
    font-weight: 400;
    line-height: .92;
    letter-spacing: -.047em;
    text-wrap: balance;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .18);
}

.hero-studio-title > span {
    display: block;
}

.hero-studio-title-accent {
    position: relative;
    color: var(--hero-accent);
    font-style: italic;
    letter-spacing: -.04em;
}

.hero-studio-title-accent::after {
    content: "";
    display: block;
    width: 76px;
    height: 2px;
    margin-top: 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--hero-accent), transparent);
    opacity: .82;
}

html[data-theme="dark"] .hero-studio-title {
    text-shadow: 0 2px 22px rgba(0, 0, 0, .22);
}

.hero-studio-text {
    text-wrap: pretty;
}

.hero-studio-text-primary {
    max-width: 30ch;
    margin-top: 30px;
    color: #273e50;
    font-size: 1.075rem;
    font-weight: 450;
    line-height: 1.72;
}

.hero-studio-actions {
    align-items: stretch;
    gap: 14px;
    margin-top: 32px;
}

.hero-studio-actions .button {
    position: relative;
    isolation: isolate;
    min-width: 172px;
    min-height: 54px;
    padding: 14px 48px 14px 23px;
    overflow: hidden;
    border-width: 1px;
    border-radius: 10px;
    box-shadow: var(--hero-button-shadow);
    font-size: .82rem;
    font-weight: 760;
    letter-spacing: .075em;
    line-height: 1.2;
    transition:
        transform .24s cubic-bezier(.2, .8, .2, 1),
        box-shadow .24s ease,
        border-color .24s ease,
        background-color .24s ease,
        color .24s ease;
}

.hero-studio-actions .button span {
    position: relative;
    z-index: 2;
}

.hero-studio-actions .button::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: -40%;
    bottom: -40%;
    left: -45%;
    width: 34%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
    transform: skewX(-18deg);
    transition: left .55s cubic-bezier(.2, .8, .2, 1);
}

.hero-studio-actions .button::after {
    content: "→";
    position: absolute;
    z-index: 2;
    right: 21px;
    top: 50%;
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1;
    transform: translateY(-52%);
    transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}

.hero-studio-actions .button-primary {
    border-color: #17384e;
    background: linear-gradient(135deg, #102b3c 0%, #1d4a64 100%);
    color: #fff;
}

.hero-studio-actions .button-outline {
    border-color: rgba(16, 43, 60, .26);
    background: rgba(255, 255, 255, .72);
    color: var(--navy-900);
    box-shadow: 0 13px 30px rgba(16, 43, 60, .1);
    backdrop-filter: blur(8px);
}

.hero-studio-actions .button-outline::before {
    background: linear-gradient(90deg, transparent, rgba(102, 127, 105, .19), transparent);
}

html[data-theme="dark"] .hero-studio-actions .button-primary {
    border-color: #d18c58;
    background: linear-gradient(135deg, #c98754 0%, #ad6539 100%);
    color: #fffaf6;
}

html[data-theme="dark"] .hero-studio-actions .button-outline {
    border-color: rgba(209, 140, 88, .48);
    background: rgba(8, 13, 17, .55);
    color: #f7eee6;
    box-shadow: 0 13px 30px rgba(0, 0, 0, .24);
}

.hero-studio-actions .button:hover,
.hero-studio-actions .button:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--hero-button-shadow-hover);
}

.hero-studio-actions .button:hover::before,
.hero-studio-actions .button:focus-visible::before {
    left: 125%;
}

.hero-studio-actions .button:hover::after,
.hero-studio-actions .button:focus-visible::after {
    transform: translate(4px, -52%);
}

.hero-studio-actions .button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--hero-accent) 45%, transparent);
    outline-offset: 4px;
}

.hero-studio-visual::before {
    filter: saturate(.96) contrast(1.025);
    transform-origin: center right;
}

html[data-theme="dark"] .hero-studio-visual::before {
    filter: saturate(.9) contrast(1.08) brightness(.94);
}

.hero-studio-features {
    border-radius: 16px;
    box-shadow: 0 20px 46px rgba(16, 43, 60, .1);
    overflow: hidden;
}

html[data-theme="dark"] .hero-studio-features {
    box-shadow: 0 22px 48px rgba(0, 0, 0, .28);
}

.hero-studio-feature {
    position: relative;
    transition: background-color .24s ease, transform .24s ease;
}

.hero-studio-feature::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--hero-accent), transparent);
    opacity: 0;
    transform: scaleX(.55);
    transition: opacity .24s ease, transform .24s ease;
}

.hero-studio-feature:hover {
    z-index: 1;
    background: rgba(255, 255, 255, .62);
    transform: translateY(-2px);
}

html[data-theme="dark"] .hero-studio-feature:hover {
    background: rgba(209, 140, 88, .055);
}

.hero-studio-feature:hover::after {
    opacity: .72;
    transform: scaleX(1);
}

.hero-studio-feature-icon {
    background: color-mix(in srgb, var(--hero-accent) 8%, transparent);
    box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--hero-accent) 4%, transparent);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), background-color .28s ease;
}

.hero-studio-feature:hover .hero-studio-feature-icon {
    background: color-mix(in srgb, var(--hero-accent) 14%, transparent);
    transform: translateY(-2px) rotate(-4deg) scale(1.04);
}

.hero-studio-feature-copy h3 {
    letter-spacing: .012em;
}

.hero-studio-feature-copy p {
    text-wrap: pretty;
}

/* Entrance animation: restrained and disabled for reduced-motion users. */
@keyframes aedHeroCopyIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aedHeroImageIn {
    from {
        opacity: .35;
        transform: scale(1.035);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes aedHeroFeaturesIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    html.js .hero-studio-title,
html.js .hero-studio-text-primary,
html.js .hero-studio-actions {
        opacity: 0;
        animation: aedHeroCopyIn .68s cubic-bezier(.2, .8, .2, 1) forwards;
    }

    html.js .hero-studio-title {
        animation-delay: .08s;
    }

    html.js .hero-studio-text-primary {
        animation-delay: .16s;
    }

    html.js .hero-studio-actions {
        animation-delay: .3s;
    }

    html.js .hero-studio-visual::before {
        animation: aedHeroImageIn 1.05s cubic-bezier(.2, .8, .2, 1) both;
    }

    html.js .hero-studio-features {
        animation: aedHeroFeaturesIn .72s cubic-bezier(.2, .8, .2, 1) .32s both;
    }

}

/*
 * No-JavaScript Hero fallback.
 * Keep all essential content and decorative layers in their completed state.
 */
html.no-js .hero-studio-title,
html.no-js .hero-studio-text-primary,
html.no-js .hero-studio-actions,
html.no-js .hero-studio-features,
html.no-js .hero-studio-visual::before {
    animation: none !important;
    opacity: 1;
    transform: none;
}

@media (max-width: 1100px) {
    .hero-studio-copy {
        padding-right: 0;
    }

    .hero-studio-title {
        max-width: 10ch;
        font-size: clamp(54px, 8vw, 78px);
    }

    .hero-studio-text-primary {
        max-width: 45ch;
    }
}

@media (max-width: 620px) {

    .hero-studio-title {
        max-width: 9.5ch;
        font-size: clamp(43px, 12.2vw, 58px);
        line-height: .95;
    }

    .hero-studio-title-accent::after {
        width: 58px;
        margin-top: 16px;
    }

    .hero-studio-text-primary {
        margin-top: 23px;
        font-size: 1rem;
    }

    .hero-studio-actions {
        gap: 11px;
    }

    .hero-studio-actions .button {
        min-height: 52px;
        border-radius: 9px;
    }

    .hero-studio-features {
        border-radius: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-studio *,
    .hero-studio *::before,
    .hero-studio *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ==========================================================================
   English-only hero copy and refined text presentation
   ========================================================================== */

.hero-studio-text-primary {
    max-width: 38ch;
    margin-top: 31px;
    color: #243b4d;
    font-size: clamp(1.04rem, 1.2vw, 1.16rem);
    font-weight: 480;
    line-height: 1.78;
    letter-spacing: -.008em;
}

.hero-studio-text-primary::first-line {
    color: var(--navy-900);
    font-weight: 620;
}

html[data-theme="dark"] .hero-studio-text-primary {
    color: rgba(247, 239, 230, .9);
}

html[data-theme="dark"] .hero-studio-text-primary::first-line {
    color: #fff8f1;
}

.hero-studio-feature-copy h3 {
    margin-bottom: 7px;
    font-size: 1.02rem;
    font-weight: 670;
    line-height: 1.25;
    letter-spacing: .018em;
}

.hero-studio-feature-copy p {
    max-width: 27ch;
    color: #66737d;
    font-size: .91rem;
    line-height: 1.55;
}

html[data-theme="dark"] .hero-studio-feature-copy p {
    color: rgba(238, 222, 207, .76);
}

@media (max-width: 1100px) {

}

@media (max-width: 620px) {
    .hero-studio-text-primary {
        margin-top: 24px;
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-studio-feature-copy p {
        max-width: none;
    }
}

/* ==========================================================================
   Hero copy cleanup and button pseudo-element fix
   ========================================================================== */
.hero-studio-actions {
    margin-top: 34px;
}

.hero-studio-actions .button {
    padding-right: 23px;
}

.hero-studio-actions .button::after {
    content: none !important;
    display: none !important;
}

.hero-studio-actions .button:hover::after,
.hero-studio-actions .button:focus-visible::after {
    transform: none;
}

/* ==========================================================================
   Expanded hero copy column
   The grid controls the column width; individual text elements control measure.
   ========================================================================== */
.hero-studio-copy {
    width: 100%;
    max-width: none;
    padding-right: clamp(34px, 5vw, 82px);
}

.hero-studio-title {
    max-width: 10.2ch;
}

.hero-studio-text-primary {
    max-width: 40ch;
}

.hero-studio-actions {
    align-self: flex-start;
}

@media (max-width: 1100px) {
    .hero-studio-copy {
        max-width: none;
        padding-right: 0;
    }

    .hero-studio-text-primary {
        max-width: 52ch;
    }
}

@media (max-width: 620px) {
    .hero-studio-copy {
        width: 100%;
        max-width: none;
    }

    .hero-studio-text-primary {
        max-width: none;
    }
}

/* ==========================================================================
   Centered hero copy alignment
   ========================================================================== */
.hero-studio-copy {
    align-items: center;
    text-align: center;
    padding-left: clamp(34px, 5vw, 82px);
    padding-right: clamp(34px, 5vw, 82px);
}

.hero-studio-title,
.hero-studio-text-primary {
    margin-left: auto;
    margin-right: auto;
}

.hero-studio-actions {
    align-self: center;
    justify-content: center;
}

@media (max-width: 1100px) {
    .hero-studio-copy {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 620px) {
    .hero-studio-actions {
        width: 100%;
    }
}

/* ==========================================================================
   Balanced desktop centering for the full-bleed hero
   Preserve the viewport-aware site gutter so centered copy does not drift left.
   ========================================================================== */
@media (min-width: 1101px) {
    .hero-studio-copy {
        padding-left: max(24px, calc((100vw - 1320px) / 2));
        padding-right: 48px;
    }
}

/* ==========================================================================
   Mirrored underline accents for the highlighted hero title
   ========================================================================== */
.hero-studio-title-accent {
    position: relative;
    padding-bottom: 24px;
}

.hero-studio-title-accent::before,
.hero-studio-title-accent::after {
    content: "";
    position: absolute;
    bottom: 0;
    display: block;
    width: 76px;
    height: 2px;
    margin: 0;
    border-radius: 999px;
    opacity: .82;
    pointer-events: none;
}

.hero-studio-title-accent::before {
    left: 0;
    background: linear-gradient(90deg, transparent, var(--hero-accent));
}

.hero-studio-title-accent::after {
    right: 0;
    left: auto;
    background: linear-gradient(90deg, var(--hero-accent), transparent);
}

@media (max-width: 620px) {
    .hero-studio-title-accent {
        padding-bottom: 18px;
    }

    .hero-studio-title-accent::before,
    .hero-studio-title-accent::after {
        width: 58px;
    }
}

/* ==========================================================================
   Balanced large-screen hero proportions
   Gives the copy and architectural image more equal visual weight while
   preserving the image's full-bleed connection to the right viewport edge.
   ========================================================================== */
@media (min-width: 1101px) {
    .hero-studio-grid {
        grid-template-columns:
            minmax(560px, calc((100vw - 1320px) / 2 + 620px))
            minmax(0, 1fr);
    }

    .hero-studio-copy {
        padding-left: max(24px, calc((100vw - 1320px) / 2));
        padding-right: clamp(44px, 4.2vw, 72px);
    }

    .hero-studio-title {
        width: min(100%, 11.4ch);
        max-width: 11.4ch;
        font-size: clamp(58px, 5.15vw, 86px);
    }

    .hero-studio-text-primary {
        width: min(100%, 42ch);
        max-width: 42ch;
    }

    .hero-studio-actions {
        max-width: 100%;
        flex-wrap: wrap;
    }

    .hero-studio-visual::before {
        clip-path: polygon(23% 0, 100% 0, 100% 100%, 51% 100%, 0 73%, 0 27%);
    }

    .hero-studio-visual-shape {
        clip-path: polygon(25% 0, 100% 0, 100% 100%, 53% 100%, 0 75%, 0 29%);
    }

}

@media (min-width: 1700px) {
    .hero-studio-copy {
        padding-right: 78px;
    }

    .hero-studio-title {
        font-size: clamp(66px, 4.45vw, 90px);
    }
}

/* ==========================================================================
   Hero grid background — architectural drafting decoration
   ========================================================================== */
.hero-studio-grid {
    isolation: isolate;
    background-image:
        radial-gradient(
            circle at 24% 38%,
            rgba(120, 145, 123, .13) 0,
            rgba(120, 145, 123, .075) 19%,
            transparent 43%
        ),
        linear-gradient(
            105deg,
            rgba(255, 255, 255, .42) 0%,
            rgba(255, 255, 255, .12) 38%,
            transparent 58%
        ),
        url("../images/hero-blueprint-light.svg");
    background-repeat: no-repeat;
    background-position: left top, left top, left center;
    background-size: 60% 100%, 60% 100%, min(58%, 900px) 100%;
}

html[data-theme="dark"] .hero-studio-grid {
    background-image:
        radial-gradient(
            circle at 24% 38%,
            rgba(209, 140, 88, .105) 0,
            rgba(26, 68, 101, .13) 23%,
            transparent 47%
        ),
        linear-gradient(
            105deg,
            rgba(25, 62, 91, .18) 0%,
            rgba(25, 62, 91, .055) 40%,
            transparent 60%
        ),
        url("../images/hero-blueprint-dark.svg");
}

/* Large compass-construction circle, intentionally cropped by the hero edge. */
.hero-studio-grid::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: clamp(-210px, -10vw, -120px);
    top: 13%;
    width: clamp(360px, 37vw, 650px);
    aspect-ratio: 1;
    border: 1px solid rgba(102, 127, 105, .13);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            transparent 0 61%,
            rgba(102, 127, 105, .075) 61.2% 61.45%,
            transparent 61.7% 100%
        );
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .18),
        0 0 80px rgba(120, 145, 123, .045);
    pointer-events: none;
}

html[data-theme="dark"] .hero-studio-grid::before {
    border-color: rgba(209, 140, 88, .14);
    background:
        radial-gradient(
            circle,
            transparent 0 61%,
            rgba(209, 140, 88, .085) 61.2% 61.45%,
            transparent 61.7% 100%
        );
    box-shadow:
        inset 0 0 0 1px rgba(28, 68, 99, .20),
        0 0 88px rgba(209, 140, 88, .04);
}

/* Small peripheral project-index annotation. */
.hero-studio-grid::after {
    content: none;
    position: absolute;
    z-index: 4;
    left: max(24px, calc((100vw - 1320px) / 2));
    top: 30px;
    max-width: 310px;
    color: rgba(59, 83, 71, .62);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.5;
    letter-spacing: .16em;
    text-transform: uppercase;
    pointer-events: none;
}

html[data-theme="dark"] .hero-studio-grid::after {
    color: rgba(209, 140, 88, .62);
}

.hero-studio-copy,
.hero-studio-visual,
.hero-studio-features {
    position: relative;
}

@media (max-width: 1100px) {
    .hero-studio-grid {
        background-position: left top, left top, left top;
        background-size: 100% 56%, 100% 56%, min(92%, 820px) 54%;
    }

    .hero-studio-grid::before {
        left: -180px;
        top: 43%;
        width: clamp(340px, 62vw, 560px);
        opacity: .72;
    }

    .hero-studio-grid::after {
        left: 0;
        top: calc(460px + 24px);
    }
}

@media (max-width: 620px) {
    .hero-studio-grid {
        background-image:
            radial-gradient(
                circle at 28% 63%,
                rgba(120, 145, 123, .10),
                transparent 38%
            ),
            url("../images/hero-blueprint-light.svg");
        background-position: left center, left 58%;
        background-size: 100% 100%, 145% 43%;
    }

    html[data-theme="dark"] .hero-studio-grid {
        background-image:
            radial-gradient(
                circle at 28% 63%,
                rgba(209, 140, 88, .08),
                transparent 39%
            ),
            url("../images/hero-blueprint-dark.svg");
    }

    .hero-studio-grid::before,
    .hero-studio-grid::after {
        display: none;
    }
}

/* --------------------------------------------------------------------------
 * Subtle compass watermark derived from the AED Studio logo artwork.
 * It is partially cropped into the upper-left corner of the image panel.
 * -------------------------------------------------------------------------- */
.hero-studio-visual {
    overflow: hidden;
}

.hero-studio-visual::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    /* Keep the watermark above the decorative plane but beneath the photo. */
    z-index: 1;
    width: clamp(150px, 15vw, 220px);
    aspect-ratio: 1;
    --hero-compass-opacity: .16;
    background: url("../images/hero-logo-compass-light.png") center / contain no-repeat;
    opacity: var(--hero-compass-opacity);
    pointer-events: none;
    transform-origin: 30% 20%;
    mix-blend-mode: multiply;
    filter: saturate(.9) contrast(.95);
}

html.js .hero-studio-visual::after {
    animation: aed-hero-compass-reveal 1.15s cubic-bezier(.22, .78, .24, 1) .5s both;
}

html.no-js .hero-studio-visual::after {
    animation: none !important;
    opacity: var(--hero-compass-opacity);
    transform: none;
}

html[data-theme="dark"] .hero-studio-visual::after {
    --hero-compass-opacity: .16;
    background-image: url("../images/hero-logo-compass-dark.png");
    opacity: var(--hero-compass-opacity);
    mix-blend-mode: screen;
    filter: brightness(1.06) contrast(.94) saturate(1.05);
}

@media (max-width: 1100px) {
    .hero-studio-visual::after {
        left: 30px;
        width: clamp(132px, 21vw, 184px);
    }
}

@media (max-width: 620px) {
    .hero-studio-visual::after {
        left: 5px;
        width: 70px;
        --hero-compass-opacity: .16;
        opacity: var(--hero-compass-opacity);
    }

    html[data-theme="dark"] .hero-studio-visual::after {
        --hero-compass-opacity: .16;
        opacity: var(--hero-compass-opacity);
    }
}

/* Drafting compass page-load reveal. */
@keyframes aed-hero-compass-reveal {
    0% {
        opacity: 0;
        transform: translate3d(-18px, -12px, 0) scale(.82) rotate(-9deg);
        filter: blur(3px) saturate(.72) contrast(.88);
    }

    62% {
        opacity: calc(var(--hero-compass-opacity) * 1.12);
        transform: translate3d(2px, 1px, 0) scale(1.025) rotate(1.5deg);
    }

    100% {
        opacity: var(--hero-compass-opacity);
        transform: translate3d(0, 0, 0) scale(1) rotate(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-studio-visual::after {
        animation: none;
        opacity: var(--hero-compass-opacity);
        transform: none;
    }
}

/* --------------------------------------------------------------------------
 * Responsive front-page Hero images
 * Uses the separately configurable mobile/tablet images at 1100px and below.
 * The desktop image remains a safe fallback if a mobile image is unavailable.
 * -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .hero-studio-visual::before {
        background-image: var(--hero-light-mobile, var(--hero-light));
    }

    html[data-theme="dark"] .hero-studio-visual::before {
        background-image: var(--hero-dark-mobile, var(--hero-dark));
    }
}

