/*
Theme Name: Mahshad Studio
Description: Photography and videography portfolio for Mahshad Hosseini in Calgary.
Version: 0.14.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: mahshad-studio
*/

@font-face {
    font-family: "Allura";
    src: url("assets/fonts/allura-latin-400.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --mh-paper: #f2efe7;
    --mh-ink: #1d201a;
    --mh-forest: #18201a;
    --mh-olive: #414739;
    --mh-clay: #a34c36;
    --mh-cream: #eee9db;
    --mh-muted: #c5c3b4;
    --mh-line: #d0cbbd;
    --mh-serif: Baskerville, "Palatino Linotype", Georgia, serif;
    --mh-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mh-gutter: clamp(1.25rem, 2.35vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--mh-paper);
    color: var(--mh-ink);
    font: 1rem/1.6 var(--mh-sans);
}

.mh-header a, .mh-home a, .mh-footer a { color: inherit; }
.mh-header [hidden], .mh-home [hidden] { display: none !important; }

.mh-header :focus-visible, .mh-home :focus-visible, .mh-footer :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

.mh-shell {
    width: min(100% - var(--mh-gutter) * 2, 120rem);
    margin-inline: auto;
}

.mh-home figure, .mh-home h1, .mh-home h2, .mh-home h3, .mh-home p {
    margin: 0;
}

.mh-home h1, .mh-home h2, .mh-home h3, .mh-standard h1 {
    font-family: var(--mh-serif);
    font-weight: 400;
    letter-spacing: -0.042em;
}

.mh-home img, .mh-home video { display: block; max-width: 100%; }
.mh-home section, .mh-home article { scroll-margin-top: 1.25rem; }

.mh-skip {
    position: absolute;
    z-index: 5;
    top: .5rem;
    left: .5rem;
    padding: .6rem 1rem;
    transform: translateY(-160%);
    background: var(--mh-paper);
    color: var(--mh-ink);
}
.mh-skip:focus { transform: none; }

.mh-header, .mh-hero, .mh-film, .mh-footer {
    background: var(--mh-forest);
    color: var(--mh-cream);
}
.mh-header { position: relative; z-index: 2; }
body:has(.mh-home) .mh-header {
    position: absolute;
    z-index: 5;
    top: 0;
    inset-inline: 0;
    background: linear-gradient(180deg, rgb(11 15 13 / 92%), rgb(11 15 13 / 38%) 75%, transparent);
}
body.admin-bar:has(.mh-home) .mh-header { top: var(--wp-admin--admin-bar--height, 32px); }
body:has(.mh-home) .mh-header-inner { border-color: rgb(255 255 255 / 26%); }
body:has(.mh-home) .mh-header:has(.mh-menu-toggle[aria-expanded="true"]) {
    background: #151b17;
}
.mh-header-inner {
    min-height: 5.15rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.15rem 2rem;
    border-bottom: 1px solid #405044;
}

.mh-wordmark {
    display: inline-flex;
    align-items: center;
    gap: clamp(.7rem, 1.15vw, 1.1rem);
    width: fit-content;
    min-height: 2.75rem;
    font-family: "Allura", "Segoe Script", cursive;
    font-size: clamp(2.4rem, 3.5vw, 3.35rem);
    font-weight: 400;
    line-height: .9;
    text-decoration: none;
    white-space: nowrap;
}

.mh-monogram {
    display: block;
    width: clamp(2.1rem, 3.5vw, 3.1rem);
    height: auto;
}
.mh-navigation, .mh-footer-social, .mh-footer-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(.9rem, 2.6vw, 2.6rem);
}
.mh-navigation a, .mh-work-menu summary, .mh-footer-social a, .mh-footer-pages a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    font-size: .9rem;
    font-weight: 520;
    text-decoration: none;
}
.mh-navigation a:hover, .mh-footer-social a:hover, .mh-footer-pages a:hover { text-decoration: underline; text-underline-offset: .24em; }
.mh-work-menu { position: relative; }
.mh-work-menu summary {
    gap: .55rem;
    list-style: none;
    cursor: pointer;
}
.mh-work-menu summary::-webkit-details-marker { display: none; }
.mh-work-menu summary:hover,
.mh-work-menu[open] summary { text-decoration: underline; text-underline-offset: .24em; }
.mh-work-chevron {
    width: .5rem;
    height: .5rem;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-.125rem) rotate(45deg);
}
.mh-work-menu[open] .mh-work-chevron { transform: translateY(.125rem) rotate(-135deg); }
.mh-work-list {
    position: absolute;
    z-index: 1;
    inset-block-start: 100%;
    inset-inline-end: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(28rem, 75vw);
    max-height: 65svh;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: .45rem;
    border: 1px solid #687565;
    border-radius: .2rem;
    background: #202c23;
    color: var(--mh-cream);
    box-shadow: 0 .8rem 2rem rgb(0 0 0 / 25%);
    list-style: none;
}
.mh-work-menu:not([open]) > .mh-work-list { display: none; }
.mh-work-list a {
    display: flex;
    padding: .5rem .7rem;
    line-height: 1.3;
}
.mh-work-list a:hover, .mh-work-list a[aria-current="page"] { background: #354638; }
.mh-work-list a:focus-visible { outline-offset: -3px; }
.mh-work-all {
    grid-column: 1 / -1;
    border-top: 1px solid #576653;
}
.mh-navigation .mh-header-contact {
    border: 1px solid #778074;
    padding: 0 1.05rem;
    border-radius: .15rem;
}
.mh-menu-toggle {
    min-height: 2.75rem;
    border: 1px solid #778074;
    border-radius: .15rem;
    padding: 0 .9rem;
    background: transparent;
    color: inherit;
    font: 550 .9rem var(--mh-sans);
    cursor: pointer;
}

.mh-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: clamp(42rem, 100svh, 68rem);
    isolation: isolate;
}
.mh-hero-photo, .mh-hero-copy { grid-area: 1 / 1; }
.mh-hero-copy {
    position: relative;
    z-index: 1;
    align-self: center;
    justify-self: start;
    width: min(50%, 52rem);
    margin-inline-start: max(var(--mh-gutter), (100% - 120rem) / 2);
    padding: clamp(6rem, 13svh, 9rem) 0 4rem;
}
.mh-hero-work-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    margin-top: .7rem;
    font-size: .92rem;
    font-weight: 650;
    text-underline-offset: .28em;
}
.mh-kicker {
    color: inherit;
    font-size: .875rem;
    font-weight: 630;
    letter-spacing: .12em;
    line-height: 1.35;
    text-transform: uppercase;
}
.mh-hero .mh-kicker { color: #d5af9c; }
.mh-hero h1 {
    margin-block: 1.4rem 1.2rem;
    font-size: clamp(3.35rem, 7.7vw, 9rem);
    line-height: .92;
    letter-spacing: -.059em;
}
.mh-hero .mh-hero-description {
    max-width: 33ch;
    color: #ece8dc;
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    line-height: 1.56;
}
.mh-hero-photo {
    position: relative;
    overflow: hidden;
    background: #22342c;
}
.mh-hero-stage, .mh-hero-frame { position: absolute; inset: 0; }
.mh-hero-frame {
    visibility: hidden;
    opacity: 0;
}
.mh-hero-frame.is-current {
    visibility: visible;
    opacity: 1;
}
.mh-hero-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 54% 50%;
}
.mh-slide-wedding-embrace img { object-position: 52% 37%; }
.mh-slide-fashion-pink-studio img { object-position: 53% 48%; }
.mh-slide-fashion-city-steps img { object-position: 50% 51%; }
.mh-slide-fashion-steel-stairs img { object-position: 50% 42%; }
.mh-slide-buyuk-studio img { object-position: 50% 47%; }
.mh-slide-modern-fashion img { object-position: 50% 32%; }
.mh-hero-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgb(10 15 12 / 93%), rgb(10 15 12 / 72%) 33%, transparent 78%),
        linear-gradient(0deg, rgb(8 14 10 / 84%), transparent 30%);
    pointer-events: none;
}
.mh-hero-caption {
    position: absolute;
    z-index: 1;
    right: var(--mh-gutter);
    bottom: 5.15rem;
    display: grid;
    gap: .3rem;
    color: var(--mh-cream);
    text-align: right;
}
.mh-hero-caption span { font-size: .85rem; font-weight: 650; }
.mh-hero-caption strong {
    font-family: var(--mh-serif);
    font-size: clamp(1.6rem, 3vw, 2.65rem);
    font-weight: 400;
    line-height: 1;
}
.mh-hero-controls {
    position: absolute;
    z-index: 2;
    right: var(--mh-gutter);
    bottom: 1.35rem;
    display: flex;
    gap: .35rem;
}
.mh-hero-controls button {
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 1px solid #a8b0a4;
    border-radius: .15rem;
    padding: 0 .58rem;
    background: rgb(24 32 26 / 91%);
    color: var(--mh-cream);
    font: 600 .875rem var(--mh-sans);
    cursor: pointer;
}
.mh-hero-controls button:hover { background: #3a4a3d; }
.mh-hero-count {
    min-width: 2.75rem;
    padding-inline: .25rem;
    font-size: .875rem;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 10px #101513;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .18rem;
}
.mh-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.mh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 2rem;
}
.mh-button {
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: .15rem;
    padding: .68rem 1rem;
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}
.mh-home .mh-button-light { background: var(--mh-cream); color: var(--mh-forest); }
.mh-home .mh-button-light:hover { background: #fff9e9; }
.mh-home .mh-button-outline { border-color: #748273; color: var(--mh-cream); }
.mh-home .mh-button-outline:hover { border-color: var(--mh-cream); background: #303b30; }
.mh-home .mh-button-dark { background: var(--mh-forest); color: var(--mh-cream); }
.mh-home .mh-button-dark:hover { background: #323d31; }

.mh-section { padding-block: clamp(3.65rem, 7.7vw, 7.5rem); }
.mh-home h2, .mh-standard h1 {
    font-size: clamp(2.75rem, 5.6vw, 5.1rem);
    line-height: .98;
    text-wrap: balance;
}
.mh-home h3 {
    font-size: clamp(1.83rem, 3.35vw, 3.15rem);
    line-height: 1.05;
    text-wrap: balance;
}
.mh-service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    margin-bottom: clamp(1.45rem, 3vw, 2.6rem);
}
.mh-service-controls, .mh-work-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}
.mh-service-controls button, .mh-work-filters button {
    min-height: 2.75rem;
    padding: .42rem .8rem;
    border: 1px solid #8c8a7d;
    border-radius: .18rem;
    background: transparent;
    color: var(--mh-ink);
    font: 650 .875rem var(--mh-sans);
    cursor: pointer;
}
.mh-service-controls button:hover:not(:disabled), .mh-work-filters button:hover { background: #d9dcce; }
.mh-service-controls button:disabled { opacity: .48; cursor: default; }
.mh-work-filters button[aria-pressed="true"] {
    border-color: var(--mh-forest);
    background: var(--mh-forest);
    color: var(--mh-cream);
}
.mh-services {
    --service-width: min(82vw, max(23rem, 51vw), 49rem);
    background: #ece9df;
}
.mh-service-rail {
    position: relative;
    display: flex;
    gap: clamp(.75rem, 2.15vw, 2.4rem);
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-snap-type: x mandatory;
    padding: .3rem calc((100% - var(--service-width)) / 2) 1rem;
}
.mh-service {
    flex: 0 0 var(--service-width);
    min-width: 0;
    scroll-snap-align: center;
}
.mh-service-copy {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100%;
    min-height: clamp(15rem, 24vw, 20rem);
    padding: clamp(1.15rem, 3.6vw, 3.5rem);
    border: 1px solid #b6b5a7;
    background: #e1e0d2;
}
.mh-service.is-centred .mh-service-copy {
    border-color: #919a87;
    background: #d8ddce;
}
.mh-service-copy h3 { max-width: 19ch; text-wrap: initial; }
.mh-service-copy p { max-width: 42ch; margin-top: .85rem; color: #383b32; }
.mh-service-links { display: flex; flex-wrap: wrap; column-gap: 1.25rem; margin-top: .55rem; }
.mh-text-link {
    width: fit-content;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    margin-top: .45rem;
    font-size: .92rem;
    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: .31em;
}
.mh-home .mh-text-link:hover { color: #8b4635; }

.mh-viewfinder {
    background: radial-gradient(ellipse at 68% 50%, #303c32, #152019 68%, #121b15);
    color: var(--mh-cream);
}
.mh-viewfinder-stage {
    display: grid;
    grid-template: "feature-copy feature-image" auto "feature-link feature-image" auto / minmax(0, .8fr) minmax(0, 1.2fr);
    align-content: center;
    align-items: center;
    gap: .85rem clamp(1rem, 5vw, 6rem);
    width: min(100% - var(--mh-gutter) * 2, 91rem);
    padding-block: clamp(3rem, 7vh, 6rem);
}
.mh-viewfinder-copy { grid-area: feature-copy; align-self: end; }
.mh-viewfinder-copy h2 { text-wrap: initial; }
.mh-viewfinder-controls {
    display: flex;
    gap: .35rem;
    margin-top: .35rem;
}
.mh-viewfinder-controls button {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}
.mh-viewfinder-controls button::before {
    display: block;
    height: 2px;
    margin-inline: .15rem;
    background: currentColor;
    opacity: .45;
    content: "";
}
.mh-viewfinder-controls button[aria-pressed="true"]::before,
.mh-viewfinder-controls button:hover::before { opacity: 1; }
.mh-viewfinder-frames {
    position: relative;
    isolation: isolate;
    grid-area: feature-image;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3.25rem) 1.5rem;
}
.mh-viewfinder-shot {
    display: grid;
    align-content: start;
    gap: .75rem;
    min-width: 0;
}
.mh-viewfinder-image {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
}
.mh-viewfinder-image img {
    width: auto;
    height: auto;
    max-height: min(56svh, 31rem);
    object-fit: contain;
    box-shadow: 0 .6rem 2.6rem rgb(0 0 0 / 30%);
}
.mh-home .mh-viewfinder-image:focus-visible { outline: none; }
.mh-viewfinder-image:focus-visible img { outline: 2px solid currentColor; outline-offset: 5px; }
.mh-viewfinder-shot figcaption { text-align: center; font-size: .875rem; }
.mh-viewfinder-shot figcaption span { color: #c9cbbd; }
.mh-viewfinder-shot figcaption span::before { content: " · "; }
.mh-viewfinder-optics { display: none; }
.mh-viewfinder-link {
    display: inline-flex;
    grid-area: feature-link;
    align-self: start;
    align-items: center;
    width: fit-content;
    min-height: 2.75rem;
    border-bottom: 1px solid #828f80;
    text-decoration: none;
}
.mh-viewfinder-link:hover { border-color: currentColor; }
.mh-viewfinder-optics {
    --corner: linear-gradient(#c6ddce 0 0);
    position: absolute;
    inset: .1rem 0 2.45rem;
    background:
        var(--corner) left top / 1.4rem 1px, var(--corner) left top / 1px 1.4rem,
        var(--corner) right top / 1.4rem 1px, var(--corner) right top / 1px 1.4rem,
        var(--corner) left bottom / 1.4rem 1px, var(--corner) left bottom / 1px 1.4rem,
        var(--corner) right bottom / 1.4rem 1px, var(--corner) right bottom / 1px 1.4rem;
    background-repeat: no-repeat;
    opacity: var(--mh-optics-opacity, .58);
    transform: scale(var(--mh-optics-scale, 1));
    pointer-events: none;
}
.mh-viewfinder-optics::after {
    position: absolute;
    inset: 50% .25rem auto;
    height: 1px;
    background: linear-gradient(90deg, rgb(216 224 207 / 30%), transparent 32% 68%, rgb(216 224 207 / 30%));
    content: "";
}
.mh-work { background: #e5dfd1; }
.mh-home-portfolio-link { margin-bottom: 1.2rem; }
.mh-home-films-link { margin-top: .85rem; }
.mh-home .mh-home-films-link:hover { color: #fff9e9; }
.mh-work-filters { margin-bottom: clamp(1.45rem, 4vw, 3rem); }
.mh-project-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(.8rem, 2.35vw, 2.5rem);
    row-gap: clamp(1.8rem, 4vw, 3.4rem);
}
.mh-project { min-width: 0; scroll-margin-top: 1.5rem; }
.mh-project a { display: block; text-decoration: none; }
.mh-project-media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #cbc4b4;
}
.mh-project img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
#work-products img, #work-ebi img, #work-ali-azimi img, #work-food img { object-position: center; }
#work-buyuk img { object-position: 50% 24%; }
#work-portrait img { object-position: 50% 25%; }
#work-wheat-field img { object-position: 50% 48%; }
.mh-project a:focus-visible { outline-offset: 4px; }
.mh-project-caption { padding-top: .66rem; }
.mh-project-caption span { color: #535548; font-size: .875rem; font-weight: 610; }
.mh-project-caption h3 { margin-top: .14rem; font-size: clamp(1.5rem, 3vw, 2.4rem); }
.mh-project a:hover h3 { text-decoration: underline; text-underline-offset: .17em; }
.mh-lightbox {
    max-width: min(92vw, 79rem);
    max-height: 92vh;
    border: 0;
    padding: .75rem;
    background: #151915;
    color: var(--mh-cream);
}
.mh-lightbox::backdrop { background: rgb(18 22 18 / 89%); }
.mh-lightbox img {
    width: auto;
    max-width: 100%;
    max-height: calc(92vh - 4.5rem);
    object-fit: contain;
}
.mh-lightbox-close {
    display: block;
    min-height: 2.75rem;
    margin: 0 0 .5rem auto;
    padding: 0 .9rem;
    border: 1px solid #798276;
    border-radius: .15rem;
    color: inherit;
    background: transparent;
    font: 600 .9rem var(--mh-sans);
    cursor: pointer;
}

.mh-film h2 { margin-bottom: clamp(1.65rem, 4vw, 3.7rem); }
.mh-film-grid {
    display: grid;
    grid-template-columns: minmax(0, 16fr) minmax(0, 5.06fr) minmax(0, 16fr);
    align-items: start;
    gap: clamp(1rem, 2.2vw, 2.1rem);
}
.mh-film-card { min-width: 0; }
.mh-film-caption { padding-top: .85rem; }
.mh-film-caption span { color: #d5af9c; font-size: .875rem; font-weight: 650; }
.mh-film-caption h3 { margin-block: .2rem .42rem; font-size: clamp(1.6rem, 3vw, 2.6rem); }
.mh-film-caption p { max-width: 36ch; color: var(--mh-muted); }
.mh-film-player { position: relative; aspect-ratio: 16 / 9; background: #111510; }
.mh-film-card.is-portrait .mh-film-player { aspect-ratio: 9 / 16; }
.mh-film-player .mh-film-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    pointer-events: none;
}
.mh-film-player.has-cover .mh-film-poster { display: block; }
.mh-film-player .mh-play { z-index: 1; }
.mh-film-player video { width: 100%; height: 100%; }
.mh-film-player noscript a {
    position: absolute;
    bottom: .6rem;
    left: .6rem;
    padding: .45rem .65rem;
    background: #111510;
}
.mh-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 4rem;
    height: 4rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--mh-cream);
    border-radius: 50%;
    background: rgb(24 32 26 / 88%);
    color: var(--mh-cream);
    cursor: pointer;
    transition: background-color 160ms ease-out;
}
.mh-play:hover { background: var(--mh-forest); }
.mh-play span {
    margin-left: .17rem;
    width: 0;
    height: 0;
    border-top: .48rem solid transparent;
    border-bottom: .48rem solid transparent;
    border-left: .8rem solid currentColor;
}

.mh-about {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(1rem, 5vw, 5rem);
}
.mh-about p {
    max-width: 38ch;
    font-family: var(--mh-serif);
    font-size: clamp(1.52rem, 2.7vw, 2.55rem);
    line-height: 1.27;
    letter-spacing: -.017em;
    color: #3b4235;
}
.mh-contact { background: #d3d7c5; }
.mh-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    padding-block: clamp(2.4rem, 5vw, 4.7rem);
}
.mh-contact .mh-button { flex-shrink: 0; }

.mh-footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1.2rem 2.5rem;
    padding-block: 1.7rem;
}
.mh-footer-identity { display: grid; gap: .23rem; }
.mh-footer-identity > span, .mh-footer small { color: var(--mh-muted); font-size: .875rem; }
.mh-footer small { grid-column: 1 / -1; }
.mh-footer .mh-back-to-top {
    display: grid;
    place-items: center;
    grid-column: -2 / -1;
    justify-self: end;
    width: 3rem;
    height: 3rem;
    border: 1px solid #969786;
    border-radius: 50%;
    background: var(--mh-forest);
    color: var(--mh-cream);
}
.mh-footer .mh-back-to-top:hover { background: #344637; }
.mh-footer .mh-back-to-top:focus-visible {
    outline: 2px solid var(--mh-cream);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--mh-forest);
}
.mh-back-to-top.is-floating {
    position: fixed;
    z-index: 4;
    right: max(1rem, calc(env(safe-area-inset-right) + .65rem));
    bottom: max(1rem, calc(env(safe-area-inset-bottom) + .65rem));
    opacity: 0;
    visibility: hidden;
}
.mh-back-to-top.is-floating.is-visible {
    opacity: 1;
    visibility: visible;
}
.mh-back-to-top span {
    position: relative;
    display: block;
    width: 2px;
    height: .95rem;
    background: currentColor;
}
.mh-back-to-top span::before {
    position: absolute;
    top: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg);
    content: "";
}
.mh-standard { padding-block: 3.5rem; min-height: 60vh; }
.mh-standard h1 { margin-block: 0 2rem; }

@media (max-width: 900px) {
    .mh-footer-inner { grid-template-columns: 1fr auto; }
    .mh-footer small { grid-column: auto; }
}
@media (max-width: 980px) {
    .mh-project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .mh-film-grid { grid-template-columns: 1fr; gap: 2rem; }
    .mh-film-grid .mh-film-card.is-portrait { width: min(100%, 24rem); margin-inline: auto; }
}
@media (max-width: 700px) {
    .mh-header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 4.25rem;
        padding-block: .55rem;
        gap: .25rem .75rem;
    }
    .mh-navigation {
        position: relative;
        grid-column: 1 / -1;
        width: 100%;
        column-gap: 1.2rem;
        row-gap: .25rem;
        padding-bottom: .45rem;
    }
    .mh-work-menu { position: static; }
    .mh-work-list {
        inset-inline: 0;
        width: 100%;
        max-height: 58svh;
    }
    .mh-navigation .mh-header-contact { border: 0; padding: 0; }
    .mh-hero-grid { min-height: clamp(42rem, 100svh, 53rem); }
    .mh-hero-frame img { object-position: 57% 48%; }
    .mh-slide-wedding-embrace img { object-position: 57% 37%; }
    .mh-slide-fashion-city-steps img { object-position: 47% 50%; }
    .mh-hero-frame::after {
        background:
            linear-gradient(90deg, rgb(10 15 12 / 88%), rgb(10 15 12 / 46%) 70%, rgb(10 15 12 / 23%)),
            linear-gradient(0deg, rgb(8 14 10 / 90%), transparent 26%);
    }
    .mh-hero h1 { font-size: clamp(3rem, 13vw, 5.5rem); margin-block: .95rem .78rem; }
    .mh-hero-copy {
        align-self: start;
        width: calc(100% - 2 * var(--mh-gutter));
        padding: clamp(8rem, 20svh, 12rem) 0 9rem;
    }
    .mh-hero-caption { left: var(--mh-gutter); right: auto; text-align: left; }
    .mh-hero-controls { left: var(--mh-gutter); right: auto; bottom: .95rem; }
    .mh-actions { margin-top: 1.35rem; }
    .mh-about { grid-template-columns: 1fr; }
    .mh-about h2, .mh-contact h2 { text-wrap: initial; }
    .mh-contact-inner { align-items: flex-start; flex-direction: column; }
    .mh-footer-inner { align-items: start; grid-template-columns: 1fr; gap: .7rem; }
    .mh-footer small { grid-column: auto; }
}
@media (max-width: 700px) {
    .mh-viewfinder-stage {
        grid-template: "feature-copy" auto "feature-image" auto "feature-link" auto / minmax(0, 1fr);
        gap: 1.5rem;
    }
    .mh-viewfinder-frames { grid-template-columns: 1fr; }
    .mh-viewfinder-controls { margin-top: .2rem; }
}
@media (max-width: 540px) {
    .mh-project-list { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
    .mh-navigation { column-gap: .8rem; }
    .mh-wordmark { gap: .55rem; font-size: 2.2rem; }
    .mh-monogram { width: 1.85rem; }
    .mh-actions { gap: .45rem; }
    .mh-actions .mh-button { min-height: 2.75rem; padding-inline: .63rem; font-size: .875rem; }
}
@media (prefers-reduced-motion: no-preference) {
    .mh-work-menu[open] > .mh-work-list { animation: mh-work-open 160ms ease-out; }
    @keyframes mh-work-open {
        from { opacity: .76; transform: translateY(-4px); }
        to { opacity: 1; transform: translateY(0); }
    }
    @view-transition { navigation: auto; }
    ::view-transition-old(root), ::view-transition-new(root) {
        animation-duration: 225ms;
        animation-timing-function: ease-in-out;
    }
    .mh-home, .mh-portfolio-page, .mh-standard { animation: mh-page-appear 190ms ease-out; }
    :root:active-view-transition :is(.mh-home, .mh-portfolio-page, .mh-standard) { animation: none; }
    @keyframes mh-page-appear {
        from { opacity: .78; }
        to { opacity: 1; }
    }
    html.mh-smooth-anchors { scroll-behavior: smooth; }
    .mh-back-to-top.is-floating {
        transform: translateY(7px);
        transition: opacity 180ms ease, transform 180ms ease;
    }
    .mh-back-to-top.is-floating.is-visible { transform: none; }
    .mh-hero-frame img {
        transform: translate3d(0, var(--hero-offset, 0%), 0) scale(var(--hero-scale, 1));
    }
    .mh-project img { transition: transform 220ms ease-out; }
    .mh-service-rail.is-interactive .mh-service {
        transform: scale(.88);
        opacity: .72;
        transition: transform 250ms ease-out, opacity 250ms ease-out;
    }
    .mh-service-rail.is-interactive .mh-service.is-centred, .mh-service-rail.is-interactive .mh-service:focus-within {
        transform: scale(1);
        opacity: 1;
    }
    .mh-hero-frame {
        transition: opacity 625ms ease-in-out, visibility 0s linear 625ms;
    }
    .mh-hero-frame.is-current { transition-delay: 0s; }
    .mh-hero-copy { animation: mh-enter 420ms cubic-bezier(.2, .65, .25, 1) both; }
    .mh-enter-view:not(:target) { animation: mh-reveal 300ms ease-out; }
    @keyframes mh-reveal {
        from { opacity: .84; transform: translateY(7px); }
        to { opacity: 1; transform: translateY(0); }
    }
    @keyframes mh-enter {
        from { opacity: .62; transform: translateY(18px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
@media (prefers-reduced-motion: no-preference) and (min-height: 620px) {
    .mh-viewfinder.is-scroll-scene { min-height: 280svh; }
    .is-scroll-scene .mh-viewfinder-stage {
        position: sticky;
        top: 5svh;
        height: 90svh;
    }
    .is-scroll-scene .mh-viewfinder-frames {
        grid-template: minmax(0, 1fr) / minmax(0, 1fr);
        height: min(67svh, 43rem);
        gap: 0;
    }
    .is-scroll-scene .mh-viewfinder-shot {
        grid-area: 1 / 1;
        grid-template-rows: minmax(0, 1fr) 1.65rem;
        gap: .8rem;
        align-content: normal;
        opacity: var(--mh-shot-opacity, 0);
    }
    .is-scroll-scene .mh-viewfinder-shot[inert] { pointer-events: none; }
    .is-scroll-scene .mh-viewfinder-image {
        grid-template: minmax(0, 1fr) / minmax(0, 1fr);
        padding: .65rem 1.1rem;
        transform: scale(var(--mh-shot-scale, 1));
    }
    .is-scroll-scene .mh-viewfinder-image img { max-height: 100%; }
    .is-scroll-scene .mh-viewfinder-optics { display: block; }
}
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) and (min-height: 620px) {
    .is-scroll-scene .mh-viewfinder-stage { gap: .75rem; padding-block: 1.1rem; }
    .is-scroll-scene .mh-viewfinder-frames { height: min(58svh, 28rem); }
    .is-scroll-scene .mh-viewfinder-image { padding: .5rem .65rem; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .mh-project a:hover img { transform: scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
    .mh-home *, .mh-header * { transition: none !important; }
}
