:root {
    color-scheme: light dark;
    --bg: #080808;
    --bg-soft: #0e0e0f;
    --bg-elevated: #141416;
    --text: #f2f0eb;
    --muted: #a9a29a;
    --muted-strong: #d0c8bd;
    --line: rgba(242, 240, 235, 0.14);
    --line-strong: rgba(242, 240, 235, 0.24);
    --surface: rgba(15, 15, 16, 0.72);
    --dark-section-overlay: 0.88;
    --accent: #d8c7ae;
    --on-accent: #111;
    --shadow: 0 24px 90px rgba(0, 0, 0, 0.48);
    --max: 1180px;
    --side: clamp(18px, 5vw, 64px);
    --header: 76px;
    --footer-safe: 86px;
}

@media (prefers-color-scheme: light) and (min-width: 769px) {
    :root {
        --bg: #f6f4ef;
        --bg-soft: #ece8df;
        --bg-elevated: #ffffff;
        --text: #0c0c0c;
        --muted: #6f6a62;
        --muted-strong: #26231f;
        --line: rgba(12, 12, 12, 0.15);
        --line-strong: rgba(12, 12, 12, 0.28);
        --surface: rgba(255, 255, 255, 0.78);
        --accent: #705533;
        --on-accent: #fff;
        --shadow: 0 24px 90px rgba(48, 38, 22, 0.18);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

html,
body,
#main {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
#main::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    text-rendering: geometricPrecision;
    -webkit-user-select: none;
    user-select: none;
}

body.home-page {
    height: 100svh;
    padding-bottom: 0;
    overflow: hidden;
    cursor: default;
}

body.home-page #main {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100vw;
    height: 100svh;
    background: transparent;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    cursor: default !important;
}

body.home-page #main.is-dragging {
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
}

body.home-page #main.is-dragging,
body.home-page #main.is-dragging *,
body.home-page #main.is-dragging *::before,
body.home-page #main.is-dragging *::after {
    cursor: default !important;
}

body.home-page #main.is-dragging * {
    pointer-events: none;
}

body.home-page #main > .hero,
body.home-page #main > .section {
    position: relative;
    z-index: 2;
    flex: 0 0 100vw;
    width: 100vw;
    height: 100svh;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-padding-bottom: var(--footer-safe);
}

body.home-page #main > .portfolio-section {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.lightbox-open,
body.modal-open {
    overflow: hidden;
}

img,
video {
    display: block;
    max-width: 100%;
}

img {
    -webkit-user-drag: none;
    user-drag: none;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

input,
textarea,
select,
option {
    -webkit-user-select: text;
    user-select: text;
}

button {
    color: inherit;
}

a,
button,
[role="button"] {
    cursor: pointer;
}

input,
textarea {
    cursor: text;
}

select {
    cursor: pointer;
}

::selection {
    background: var(--accent);
    color: var(--on-accent);
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 100;
    transform: translateY(-140%);
    border: 1px solid var(--line);
    background: var(--bg-elevated);
    padding: 10px 14px;
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header);
    padding: 18px var(--side);
    border-bottom: 1px solid transparent;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: translateZ(0);
    transition: background-color 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    width: 150px;
    height: auto;
}

@media (prefers-color-scheme: light) and (min-width: 769px) {
    .brand img {
        filter: invert(1);
    }
}

.site-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.5vw, 30px);
    min-height: 42px;
    isolation: isolate;
}

.site-nav a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    height: 32px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
    font-weight: 700;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.34);
    text-transform: uppercase;
    transition: color 180ms ease, opacity 180ms ease;
}

.nav-work {
    position: relative;
    z-index: 1;
    display: inline-grid;
    grid-template-areas: "work";
    align-items: center;
    min-width: 0;
}

.nav-work-main,
.nav-work-split {
    grid-area: work;
}

.nav-work-main {
    max-width: 78px;
    overflow: hidden;
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition: none;
    white-space: nowrap;
}

.nav-work-split {
    display: inline-flex;
    align-items: center;
    gap: clamp(12px, 1.8vw, 20px);
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(8px, 0, 0);
    transition: none;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
    color: #fff;
}

.nav-indicator {
    --nav-indicator-pad: 12px;
    position: absolute;
    top: 1px;
    left: 0;
    z-index: 0;
    box-sizing: content-box;
    width: 0;
    height: 40px;
    margin-left: calc(var(--nav-indicator-pad) * -1);
    border: 1px solid rgba(216, 199, 174, 0.26);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(216, 199, 174, 0.25), rgba(216, 199, 174, 0.1)),
        rgba(9, 9, 10, 0.52);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 14px 34px rgba(0, 0, 0, 0.28);
    opacity: 0;
    padding-inline: var(--nav-indicator-pad);
    cursor: ew-resize;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    touch-action: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    isolation: isolate;
    padding: calc(var(--header) + 80px) var(--side) 54px;
}

body.home-page .hero {
    min-height: 100svh;
    padding-top: calc(var(--header) + clamp(36px, 8svh, 80px));
    padding-bottom: max(var(--footer-safe), clamp(28px, 6svh, 54px));
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 24% 78%, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.48) 34%, rgba(0, 0, 0, 0.16) 58%, transparent 78%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.34) 40%, transparent 76%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 52%);
    pointer-events: none;
}

.global-bg,
.global-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.global-bg video {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.global-bg {
    z-index: 0;
    overflow: hidden;
    background: #000;
}

.global-overlay {
    z-index: 1;
    background: #000;
    opacity: 0.12;
    will-change: opacity;
}

.global-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.global-bg video {
    z-index: 1;
    opacity: 0;
    will-change: opacity;
}

.global-bg.is-video-ready video {
    opacity: var(--global-video-opacity, 1);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(850px, 100%);
}

.hero h1 {
    color: #fff;
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.72);
}

.kicker {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: 0;
}

h1 {
    max-width: 880px;
    margin-bottom: 24px;
    font-size: clamp(3.05rem, 9vw, 7.7rem);
    line-height: 0.92;
}

body.home-page h1 {
    font-size: clamp(2.45rem, min(7.2vw, 10.4svh), 6.45rem);
}

h2 {
    margin-bottom: 24px;
    font-size: clamp(2rem, 5vw, 4.9rem);
    line-height: 0.98;
}

body.home-page h2 {
    font-size: clamp(1.72rem, min(4.2vw, 7.2svh), 3.95rem);
}

.hero-text {
    max-width: 560px;
    margin-bottom: 30px;
    color: #f1ece4;
    font-size: clamp(1rem, 2vw, 1.18rem);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.82);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid var(--line-strong);
    padding: 12px 18px;
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
    transform: translateZ(0);
}

.button:hover,
.button:focus-visible {
    transform: translate3d(0, -2px, 0);
}

.button-primary {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--on-accent);
}

.button-ghost {
    background: color-mix(in srgb, var(--bg) 28%, transparent);
    color: var(--text);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.button-ghost:hover,
.button-ghost:focus-visible {
    border-color: var(--accent);
}

.section {
    padding: clamp(76px, 12vw, 148px) var(--side);
}

body.home-page .section {
    padding-top: calc(var(--header) + clamp(26px, 6svh, 72px));
    padding-bottom: max(var(--footer-safe), clamp(26px, 6svh, 64px));
}

body.home-page .about,
body.home-page .services {
    display: grid;
    align-content: center;
}

.about,
.contact,
.section-intro,
.service-split,
.portfolio-grid,
.video-showcase {
    width: min(100%, var(--max));
    margin-inline: auto;
}

.about {
    border-top: 1px solid var(--line);
}

body.home-page .about,
body.home-page .services,
body.home-page .portfolio-section,
body.home-page .contact {
    border-top: 0;
    border-left: 1px solid var(--line);
}

.about-copy {
    max-width: 900px;
}

.about-portrait {
    width: min(280px, 42vw);
    max-height: min(38svh, 360px);
    height: auto;
    margin: 0 0 clamp(22px, 4svh, 38px);
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

.about-portrait-placeholder {
    min-height: 220px;
    background: color-mix(in srgb, var(--bg-elevated) 82%, transparent);
}

.about-copy p,
.contact-copy p {
    color: var(--muted-strong);
    font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.about-copy p {
    max-width: 760px;
}

.services,
.portfolio-section,
.contact {
    border-top: 1px solid var(--line);
}

.section-intro {
    margin-bottom: clamp(34px, 6vw, 68px);
}

body.home-page .section-intro {
    margin-bottom: clamp(22px, 4svh, 46px);
}

.section-intro > p:not(.kicker) {
    max-width: 760px;
    color: var(--muted-strong);
    font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.about-copy p,
.contact-copy p,
.section-intro > p:not(.kicker) {
    color: #f5f5f7 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.about-copy h2,
.contact-copy h2,
.section-intro h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.service-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.service-panel {
    padding: clamp(26px, 5vw, 54px) 0;
}

body.home-page .service-panel {
    padding: clamp(18px, 4svh, 38px) 0;
}

.service-panel + .service-panel {
    border-left: 1px solid var(--line);
    padding-left: clamp(24px, 5vw, 58px);
}

.service-label {
    margin-bottom: 28px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.service-panel ul {
    display: grid;
    gap: clamp(12px, 2.6svh, 20px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-panel li {
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 4vw, 3.4rem);
    line-height: 1;
}

body.home-page .service-panel li {
    font-size: clamp(1.35rem, min(3.2vw, 5.2svh), 2.85rem);
}

.videos-section {
    isolation: isolate;
    background-color: #000000 !important;
}

.photos-section {
    background-color: #000000 !important;
}

.video-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 16px;
    height: min(52svh, 520px);
    max-height: calc(100svh - var(--header) - var(--footer-safe) - 180px);
}

.video-window-card {
    position: relative;
    display: grid;
    align-content: end;
    min-height: 320px;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(242, 240, 235, 0.26);
    background: transparent;
    padding: clamp(18px, 2.5vw, 30px);
}

.video-window-card:first-child {
    min-height: 420px;
}

body.home-page .video-window-card,
body.home-page .video-window-card:first-child {
    min-height: 0;
}

.video-window-card.reveal,
.video-window-card.reveal.is-visible {
    transform: none;
}

.video-frame-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: none;
    pointer-events: none;
}

.video-window-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 1px solid rgba(216, 199, 174, 0.18);
    pointer-events: none;
}

.video-window-count,
.video-window-caption {
    position: relative;
    z-index: 2;
}

.video-window-count {
    position: absolute;
    top: clamp(14px, 2vw, 22px);
    right: clamp(14px, 2vw, 22px);
    color: rgba(242, 240, 235, 0.78);
    font-size: 0.75rem;
    font-weight: 800;
}

.video-window-caption {
    display: grid;
    max-width: 420px;
    gap: 7px;
}

.video-window-caption span {
    color: var(--accent);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.video-window-caption strong {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 3vw, 3rem);
    font-weight: 500;
    line-height: 0.98;
}

.video-window-caption em {
    max-width: 34rem;
    color: #ede7dc;
    font-size: clamp(0.9rem, 1.35vw, 1.02rem);
    font-style: normal;
    line-height: 1.45;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.78);
}

#photoGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

body.home-page #photoGrid {
    flex: 0 1 auto;
    min-height: 0;
    height: min(58svh, 550px);
    max-height: calc(100svh - var(--header) - var(--footer-safe) - 180px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 16px;
    width: min(100%, var(--max));
    max-width: var(--max);
    margin-inline: auto;
    padding-right: 0;
}

.portfolio-item {
    position: relative;
    display: block;
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-elevated);
    padding: 0;
    cursor: pointer;
    text-align: left;
    transition: border-color 180ms ease, transform 220ms ease;
    transform: translateZ(0);
}

body.home-page .portfolio-item {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    align-self: stretch;
    grid-column: span 1;
    grid-row: span 1;
    scroll-snap-align: start;
}

body.home-page .portfolio-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 3;
}

body.home-page .portfolio-item:nth-child(2) {
    grid-column: span 2;
    grid-row: span 1;
}

body.home-page .portfolio-item:nth-child(3),
body.home-page .portfolio-item:nth-child(4),
body.home-page .portfolio-item:nth-child(5),
body.home-page .portfolio-item:nth-child(6) {
    grid-column: span 1;
    grid-row: span 1;
}

.portfolio-item:hover,
.portfolio-item:focus-visible {
    border-color: rgba(216, 199, 174, 0.56);
    transform: translate3d(0, -2px, 0);
}

.portfolio-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08) 58%, rgba(0, 0, 0, 0));
    pointer-events: none;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease, opacity 220ms ease;
    transform: translateZ(0) scale(1.001);
}

body.home-page .portfolio-item img {
    width: 100%;
    max-width: 100%;
}

.portfolio-item:hover img,
.portfolio-item:focus-visible img {
    transform: translateZ(0) scale(1.025);
}

.portfolio-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: grid;
    gap: 4px;
}

.portfolio-caption span {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.portfolio-caption strong {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2vw, 2.05rem);
    font-weight: 500;
    line-height: 1;
}

.text-link,
.mail-link {
    display: inline-flex;
    margin-top: 18px;
    border-bottom: 1px solid var(--accent);
    color: var(--accent);
    font-weight: 800;
}

.contact-note {
    max-width: 560px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
    gap: clamp(34px, 7vw, 88px);
    align-items: start;
}

body.home-page .contact {
    align-content: center;
}

.contact-form {
    display: grid;
    gap: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: clamp(18px, 3vw, 28px);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: auto;
}

body.home-page .contact-form {
    gap: clamp(10px, 1.6svh, 16px);
    padding: clamp(16px, 3svh, 24px);
}

.contact-form label {
    display: grid;
    gap: 8px;
    cursor: auto;
}

.contact-form span {
    color: var(--muted-strong);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg-elevated) 72%, transparent);
    color: var(--text);
    padding: 13px 14px;
    outline: none;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--bg-elevated);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text) 50%),
        linear-gradient(135deg, var(--text) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 50%,
        calc(100% - 14px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    color: var(--text);
    color-scheme: light dark;
    padding-right: 44px;
}

.contact-form select option {
    background: var(--bg-elevated);
    color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
}

.contact-form select:focus {
    border-color: var(--accent);
    background-color: var(--bg-elevated);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.form-note {
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.form-note[data-tone="success"] {
    color: var(--accent);
}

.form-note[data-tone="error"] {
    color: #ffb4a8;
}

.contact-code[hidden],
.contact-reset[hidden] {
    display: none;
}

.contact-form input:disabled,
.contact-form select:disabled,
.contact-form textarea:disabled {
    color: var(--muted);
    opacity: 0.74;
    cursor: not-allowed;
}

.contact-form button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.site-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 28px var(--side) 18px;
    border-top: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.88rem;
    pointer-events: none;
}

.site-footer p {
    margin: 0;
    pointer-events: auto;
}

.site-footer nav {
    display: flex;
    gap: 16px;
    pointer-events: auto;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--text);
}

.cookie-banner {
    position: fixed;
    left: var(--side);
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(440px, calc(100vw - (var(--side) * 2)));
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
    color: var(--text);
    padding: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 10px, 0);
    transition: opacity 220ms ease, transform 220ms ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.cookie-banner.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner p {
    margin: 0;
    color: var(--muted-strong);
    font-size: 0.86rem;
    line-height: 1.35;
}

.cookie-banner .button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 9px 13px;
    font-size: 0.74rem;
    text-transform: none;
}

.lightbox[hidden] {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 22px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.lightbox.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.lightbox.is-closing {
    pointer-events: none;
}

.lightbox figure {
    position: relative;
    z-index: 1;
    width: min(1040px, 100%);
    max-height: calc(100svh - 44px);
    margin: 0;
}

.lightbox-media {
    position: relative;
    width: 100%;
    max-width: min(1040px, calc((100svh - 44px) * var(--media-ratio, 0.5625)));
    margin-inline: auto;
    aspect-ratio: var(--media-aspect, 9 / 16);
    overflow: hidden;
    background: transparent;
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.98);
    transform-origin: center center;
    will-change: opacity, transform;
    transition: opacity 360ms ease, transform 520ms cubic-bezier(0.19, 1, 0.22, 1);
}

.lightbox.is-image-visible .lightbox-media {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.lightbox-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translate3d(0, 0, 0) scale(1);
    cursor: zoom-out;
}

.legal-shell {
    min-height: 100svh;
    padding: calc(var(--header) + 72px) var(--side) 96px;
}

.legal-layout {
    width: min(100%, var(--max));
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 7vw, 90px);
    border-top: 1px solid var(--line);
    padding-top: clamp(42px, 7vw, 72px);
}

.legal-content {
    max-width: 820px;
}

.legal-content h1 {
    margin-bottom: 36px;
}

.legal-content h2 {
    margin: 42px 0 14px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1rem, 2vw, 1.18rem);
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.legal-content p,
.legal-content li {
    color: var(--muted-strong);
    font-size: 1rem;
}

.legal-content ul {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding-left: 20px;
}

.legal-back {
    display: inline-flex;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--accent);
    color: var(--accent);
    font-weight: 800;
}

.legal-content .text-link {
    margin-top: 0;
}

.legal-modal[hidden] {
    display: none;
}

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    place-items: center;
    padding: 22px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.legal-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.legal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.legal-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(82svh, 860px);
    overflow: auto;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg-elevated) 96%, transparent);
    padding: clamp(26px, 5vw, 56px);
    box-shadow: var(--shadow);
}

.legal-modal-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 2;
    width: 42px;
    height: 42px;
    margin: -10px -10px 18px 18px;
    border: 1px solid var(--line);
    background: rgba(20, 20, 22, 0.92);
    color: var(--text);
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
}

.legal-modal .legal-content {
    max-width: 760px;
}

.legal-modal .legal-content h1 {
    font-size: clamp(2.5rem, 7vw, 5.4rem);
}

.reveal {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .site-header {
        min-height: 68px;
    }

    .brand img {
        width: 126px;
    }

    .site-nav {
        gap: 13px;
    }

    .site-nav a {
        font-size: 0.72rem;
    }

    .about,
    .contact,
    .info-layout,
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .service-split {
        grid-template-columns: 1fr;
    }

    .service-panel + .service-panel {
        border-top: 1px solid var(--line);
        border-left: 0;
        padding-left: 0;
    }

    body:not(.home-page) #photoGrid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 14px;
    }

    body.home-page #main > .portfolio-section {
        overflow-y: auto;
    }

    body.home-page #photoGrid {
        flex: initial;
        height: auto;
        max-height: none;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 14px;
        width: min(100%, var(--max));
    }

    body.home-page .video-showcase {
        height: auto;
        max-height: none;
        grid-template-columns: 1fr;
    }

    body.home-page .video-window-card,
    body.home-page .video-window-card:first-child {
        min-height: min(62svh, 430px);
    }

    body.home-page .portfolio-item,
    body.home-page .portfolio-item:nth-child(1),
    body.home-page .portfolio-item:nth-child(2),
    body.home-page .portfolio-item:nth-child(3),
    body.home-page .portfolio-item:nth-child(4),
    body.home-page .portfolio-item:nth-child(5),
    body.home-page .portfolio-item:nth-child(6) {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 4 / 5;
    }
}

@media (max-width: 768px) {
    :root {
        --side: 18px;
        --header: 66px;
        --footer-safe: 78px;
    }

    body {
        padding-bottom: 72px;
    }

    body.home-page {
        padding-bottom: 0;
    }

    .site-header {
        min-height: var(--header);
        padding-block: 12px;
    }

    .brand img {
        width: 118px;
    }

    .site-nav {
        gap: 12px;
    }

    .site-nav > a:not(:last-of-type),
    .site-nav .nav-work {
        display: none;
    }

    .nav-indicator {
        display: none;
    }

    .hero {
        min-height: 88svh;
        padding-top: 116px;
        padding-bottom: var(--footer-safe);
    }

    .hero-content {
        width: 100%;
    }

    h1 {
        max-width: 100%;
        margin-bottom: 18px;
        font-size: clamp(2.45rem, 11vw, 4.25rem);
        line-height: 0.98;
    }

    h2 {
        margin-bottom: 18px;
        font-size: clamp(1.9rem, 8.8vw, 3.1rem);
        line-height: 1;
    }

    .hero-text,
    .section-intro > p:not(.kicker),
    .about-copy p,
    .contact-copy p {
        font-size: 1rem;
    }

    .hero-actions {
        display: grid;
        gap: 10px;
    }

    .button {
        width: 100%;
        min-height: 44px;
        padding: 11px 14px;
    }

    .section {
        padding-top: 60px;
        padding-bottom: var(--footer-safe);
    }

    .about,
    .contact,
    .info-layout,
    .legal-layout {
        display: grid;
        gap: 24px;
    }

    .section-intro {
        margin-bottom: 28px;
    }

    .service-panel {
        padding: 24px 0;
    }

    .service-label {
        margin-bottom: 18px;
    }

    .service-panel ul {
        gap: 14px;
    }

    .service-panel li {
        font-size: clamp(1.45rem, 7vw, 2.35rem);
    }

    body:not(.home-page) #photoGrid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 12px;
    }

    body.home-page #photoGrid {
        gap: 12px;
    }

    .video-showcase {
        gap: 12px;
    }

    .video-window-card,
    .video-window-card:first-child {
        min-height: 340px;
        padding: 18px;
    }

    .portfolio-caption {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .portfolio-caption span {
        font-size: 0.65rem;
    }

    .portfolio-caption strong {
        font-size: clamp(1rem, 4.4vw, 1.35rem);
    }

    .contact-form {
        gap: 14px;
        padding: 16px;
        box-shadow: none;
    }

    .contact-note {
        margin-top: 12px;
        font-size: 0.9rem;
    }

    .site-footer {
        display: grid;
        gap: 8px;
        padding-top: 24px;
        padding-bottom: 14px;
    }

    .cookie-banner {
        right: var(--side);
        bottom: calc(82px + env(safe-area-inset-bottom));
        display: grid;
        width: auto;
    }

    .lightbox {
        padding: 10px;
    }

    .lightbox figure {
        max-height: calc(100svh - 20px);
    }

    .lightbox-media {
        max-width: min(100%, calc((100svh - 20px) * var(--media-ratio, 0.5625)));
    }

    .legal-shell {
        padding-top: 112px;
        padding-bottom: 62px;
    }
}

@media (max-width: 640px) {
    :root {
        --side: 16px;
        --header: 66px;
        --footer-safe: 76px;
    }

    .hero {
        min-height: 86svh;
        padding-top: 104px;
        padding-bottom: var(--footer-safe);
    }

    .section {
        padding-top: 54px;
        padding-bottom: var(--footer-safe);
    }

    .about {
        gap: 22px;
    }

    .site-footer {
        padding-bottom: 26px;
    }

    .legal-shell {
        padding-top: 102px;
        padding-bottom: 56px;
    }

    .legal-modal {
        padding: 10px;
    }

    .legal-modal-dialog {
        max-height: calc(100svh - 20px);
        padding: 22px;
    }
}

@media (max-width: 520px) {
    body:not(.home-page) #photoGrid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    body.home-page #main {
        height: 100svh;
        max-height: 100svh;
        overflow-x: auto;
        overflow-y: hidden;
    }

    body.home-page #main > .hero,
    body.home-page #main > .section {
        height: 100svh;
        min-height: 100svh;
        max-height: 100svh;
        overflow-x: hidden;
        overflow-y: hidden;
    }

    body.home-page .hero,
    body.home-page .section {
        padding-top: calc(var(--header) + clamp(8px, 2.5svh, 32px));
        padding-bottom: clamp(52px, 10svh, var(--footer-safe));
    }

    body.home-page .hero {
        align-items: center;
    }

    body.home-page .about,
    body.home-page .services,
    body.home-page .contact {
        align-content: center;
    }

    body.home-page .portfolio-section {
        justify-content: center;
        overflow-y: hidden;
    }

    body.home-page .section-intro {
        margin-bottom: clamp(14px, 2.8svh, 34px);
    }

    body.home-page h1 {
        margin-bottom: clamp(14px, 2.6svh, 24px);
    }

    body.home-page .hero h1 {
        font-size: clamp(2.35rem, min(6.7vw, 9.4svh), 6.15rem);
        line-height: 0.94;
    }

    body.home-page h2 {
        margin-bottom: clamp(10px, 2svh, 22px);
        font-size: clamp(1.65rem, min(4.05vw, 6.8svh), 3.78rem);
    }

    body.home-page .hero-text {
        margin-bottom: clamp(16px, 3svh, 28px);
    }

    body.home-page .about-copy {
        display: grid;
        grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
        gap: clamp(28px, 5vw, 70px);
        align-items: center;
        max-width: 1060px;
    }

    body.home-page .about-portrait {
        grid-row: 1 / span 4;
        width: 100%;
        height: min(46svh, 430px);
        max-height: calc(100svh - var(--header) - var(--footer-safe) - 90px);
        margin: 0;
        border: 1px solid var(--line);
        background: var(--bg-elevated);
        box-shadow: var(--shadow);
    }

    body.home-page .about-copy p,
    body.home-page .contact-copy p,
    body.home-page .section-intro > p:not(.kicker) {
        font-size: clamp(0.92rem, 1.8svh, 1.08rem);
    }

    body.home-page #photoGrid {
        flex: 0 1 auto;
        height: min(58svh, 550px, calc(100svh - var(--header) - var(--footer-safe) - clamp(136px, 22svh, 210px)));
        max-height: 550px;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 16px;
    }

    body.home-page .portfolio-item,
    body.home-page .portfolio-item:nth-child(1),
    body.home-page .portfolio-item:nth-child(2),
    body.home-page .portfolio-item:nth-child(3),
    body.home-page .portfolio-item:nth-child(4),
    body.home-page .portfolio-item:nth-child(5),
    body.home-page .portfolio-item:nth-child(6) {
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
    }

    body.home-page .portfolio-item {
        grid-column: span 1;
        grid-row: span 1;
    }

    body.home-page .portfolio-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 3;
    }

    body.home-page .portfolio-item:nth-child(2) {
        grid-column: span 2;
        grid-row: span 1;
    }

    body.home-page .portfolio-item:nth-child(3),
    body.home-page .portfolio-item:nth-child(4),
    body.home-page .portfolio-item:nth-child(5),
    body.home-page .portfolio-item:nth-child(6) {
        grid-column: span 1;
        grid-row: span 1;
    }

    body.home-page .portfolio-caption {
        left: clamp(12px, 1.8vw, 18px);
        right: clamp(12px, 1.8vw, 18px);
        bottom: clamp(12px, 1.8vw, 18px);
    }

    body.home-page .portfolio-caption strong {
        font-size: clamp(1rem, min(1.8vw, 3.2svh), 1.85rem);
    }

    body.home-page .contact {
        align-items: center;
        grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.64fr);
        gap: clamp(28px, 5vw, 72px);
    }

    body.home-page .contact-form {
        gap: clamp(8px, 1.25svh, 13px);
        padding: clamp(12px, 2.2svh, 22px);
    }

    body.home-page .contact-form label {
        gap: clamp(5px, 0.8svh, 8px);
    }

    body.home-page .contact-form input,
    body.home-page .contact-form select,
    body.home-page .contact-form textarea {
        min-height: clamp(38px, 5.8svh, 46px);
        padding: clamp(8px, 1.4svh, 12px) 13px;
    }

    body.home-page .contact-form textarea {
        min-height: clamp(72px, 13svh, 118px);
        max-height: clamp(72px, 13svh, 118px);
        resize: none;
    }

    body.home-page .form-note {
        font-size: clamp(0.78rem, 1.45svh, 0.86rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .global-bg video {
        opacity: 1;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .lightbox {
        transition: none;
    }

    .legal-modal {
        transition: none;
    }

    .lightbox-media {
        transition: none !important;
    }
}
