
/* The author-level flex rules below must never override the HTML hidden state. */
[hidden] { display: none !important; }

:root {
    --bg: #08080b;
    --panel: #0d0d12;
    --panel-2: #121219;
    --text: #f5f4f7;
    --muted: rgba(245, 244, 247, 0.64);
    --soft: rgba(245, 244, 247, 0.42);
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.28);
    --accent: #d550ff;
    --accent-2: #40d9ff;
    --accent-3: #ff476f;
    --font-display: "Rajdhani", "Arial Narrow", sans-serif;
    --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --content: min(1220px, calc(100vw - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html {
    scrollbar-gutter: stable;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.dialog-open,
body.nav-open { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { max-width: 100%; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.eyebrow {
    margin: 0;
    color: rgba(255,255,255,.58);
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    display: flex;
    height: 86px;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid transparent;
    transition: background 220ms ease, border-color 220ms ease, height 220ms ease;
}
.site-header.is-scrolled {
    height: 72px;
    border-color: var(--line);
    background: rgba(8, 8, 11, .86);
    backdrop-filter: blur(18px);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .17em;
    text-decoration: none;
}
.brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.45));
}
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
    position: relative;
    padding: 8px 0;
    color: rgba(255,255,255,.67);
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .17em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 180ms ease;
}
.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 240ms var(--ease);
}
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; outline: 0; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; }

/* Hero */
.portfolio-hero {
    position: relative;
    display: grid;
    min-height: min(820px, 92svh);
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    background: #09090d;
}
.portfolio-hero__image,
.portfolio-hero__shade,
.portfolio-hero__grain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.portfolio-hero__image {
    z-index: -4;
    object-fit: cover;
    object-position: center;
    filter: saturate(.68) contrast(1.06);
    transform: scale(1.035);
    animation: hero-in 1.4s var(--ease) both;
}
@keyframes hero-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1.035); } }
.portfolio-hero__shade {
    z-index: -3;
    background:
        linear-gradient(180deg, rgba(5,5,8,.48) 0%, rgba(5,5,8,.30) 48%, #08080b 100%),
        radial-gradient(circle at 50% 44%, rgba(5,5,8,.05) 0%, rgba(5,5,8,.45) 72%, rgba(5,5,8,.78) 100%);
}
.portfolio-hero__grain {
    z-index: -2;
    opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.portfolio-hero__content {
    width: var(--content);
    padding: 150px 0 120px;
}
.portfolio-hero h1 {
    max-width: 960px;
    margin: 13px 0 18px;
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 10vw, 9.8rem);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: .82;
    text-transform: uppercase;
    text-wrap: balance;
}
.portfolio-hero h1::after {
    display: inline-block;
    width: .13em;
    height: .13em;
    margin-left: .06em;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-3), var(--accent));
    box-shadow: 0 0 22px rgba(213,80,255,.36);
    content: "";
}
.portfolio-hero__intro {
    max-width: 700px;
    margin: 0;
    color: rgba(255,255,255,.7);
    font-size: clamp(.98rem, 1.5vw, 1.16rem);
    line-height: 1.75;
}
.portfolio-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 36px;
    margin-top: 42px;
    color: rgba(255,255,255,.47);
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.portfolio-hero__meta span { display: inline-flex; align-items: baseline; gap: 8px; }
.portfolio-hero__meta strong { color: #fff; font-size: 1rem; }
.scroll-cue {
    position: absolute;
    right: 32px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.62);
    font-family: var(--font-display);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-decoration: none;
    text-transform: uppercase;
}
.scroll-cue svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

/* Work */
.work-section {
    position: relative;
    width: var(--content);
    margin: 0 auto;
    padding: 112px 0 128px;
}
.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 50px;
    align-items: end;
    margin-bottom: 50px;
}
.section-heading h2, .contact-panel h2 {
    margin: 9px 0 0;
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 5vw, 5.3rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: .95;
    text-transform: uppercase;
}
.section-heading > p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}
.filter-bar {
    position: sticky;
    top: 72px;
    z-index: 20;
    display: flex;
    gap: 8px;
    margin: 0 0 30px;
    padding: 12px;
    overflow-x: auto;
    border: 1px solid var(--line);
    background: rgba(8,8,11,.88);
    backdrop-filter: blur(18px);
    scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar button {
    flex: 0 0 auto;
    padding: 11px 16px;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.48);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    transition: color 170ms ease, background 170ms ease;
}
.filter-bar button:hover, .filter-bar button:focus-visible { color: #fff; outline: 1px solid var(--line-strong); }
.filter-bar button.is-active { background: #fff; color: #09090d; }

.project-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}
.project-card { grid-column: span 6; min-width: 0; }
.project-card--featured { grid-column: span 12; }
.project-card[hidden] { display: none; }
.project-card__button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--panel);
    color: inherit;
    cursor: pointer;
    text-align: left;
}
.project-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #111116;
}
.project-card--featured .project-card__media { aspect-ratio: 2.15 / 1; }
.project-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease), filter 400ms ease;
}
.project-card__media--placeholder {
    display: grid;
    place-items: center;
    background:
        linear-gradient(140deg, rgba(213,80,255,.12), transparent 42%),
        linear-gradient(320deg, rgba(64,217,255,.10), transparent 44%),
        #101016;
}
.project-card__media--placeholder::before,
.project-dialog__media::before {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.project-card__placeholder-mark,
.project-dialog__placeholder-mark {
    position: relative;
    color: rgba(255,255,255,.08);
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 700;
    letter-spacing: -.06em;
}
.project-card__placeholder-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(42%, 320px);
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-3), var(--accent), var(--accent-2), transparent);
    box-shadow: 0 0 18px rgba(213,80,255,.35);
    transform: translate(-50%, -50%) rotate(-7deg);
}
.project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(6,6,9,.76) 100%);
    opacity: .75;
    transition: opacity 240ms ease;
}
.project-card__view {
    position: absolute;
    right: 22px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: var(--font-display);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    opacity: 0;
    text-transform: uppercase;
    transform: translateY(10px);
    transition: opacity 240ms ease, transform 240ms var(--ease);
}
.project-card__view svg, .contact-panel__button svg, .project-dialog__link svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.project-card__content {
    display: block;
    min-height: 190px;
    padding: 25px 25px 29px;
    border: 1px solid var(--line);
    border-top: 0;
    background: var(--panel);
    transition: border-color 240ms ease, background 240ms ease;
}
.project-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    color: var(--soft);
    font-family: var(--font-display);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.project-card__content > strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.4vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1;
    text-transform: uppercase;
}
.project-card__summary {
    display: block;
    max-width: 650px;
    margin-top: 13px;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.65;
}
.project-card__button:hover .project-card__media img,
.project-card__button:focus-visible .project-card__media img { transform: scale(1.035); filter: saturate(1.08); }
.project-card__button:hover .project-card__view,
.project-card__button:focus-visible .project-card__view { opacity: 1; transform: translateY(0); }
.project-card__button:hover .project-card__content,
.project-card__button:focus-visible .project-card__content { border-color: var(--line-strong); background: var(--panel-2); }
.project-card__button:focus-visible { outline: 1px solid var(--accent-2); outline-offset: 4px; }
.empty-state { padding: 64px 0; color: var(--muted); text-align: center; }

/* CTA */
.contact-panel {
    display: grid;
    width: var(--content);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 50px;
    align-items: end;
    margin: 0 auto 96px;
    padding: clamp(38px, 6vw, 70px);
    border: 1px solid var(--line);
    background:
        linear-gradient(130deg, rgba(213,80,255,.08), transparent 45%),
        linear-gradient(320deg, rgba(64,217,255,.07), transparent 42%),
        var(--panel);
}
.contact-panel h2 { max-width: 700px; font-size: clamp(2.5rem, 5vw, 5rem); }
.contact-panel p:not(.eyebrow) { max-width: 620px; margin: 21px 0 0; color: var(--muted); line-height: 1.7; }
.contact-panel__button,
.project-dialog__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-width: 188px;
    padding: 15px 22px;
    border: 1px solid rgba(255,255,255,.42);
    color: #fff;
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}
.contact-panel__button:hover, .contact-panel__button:focus-visible,
.project-dialog__link:hover, .project-dialog__link:focus-visible { border-color: #fff; background: #fff; color: #09090d; outline: 0; }

/* Project dialog */
.project-dialog {
    width: min(1120px, calc(100vw - 42px));
    max-width: none;
    max-height: calc(100svh - 42px);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    background: #0b0b10;
    color: var(--text);
    box-shadow: 0 30px 100px rgba(0,0,0,.7);
}
.project-dialog::backdrop { background: rgba(2,2,4,.82); backdrop-filter: blur(10px); }
.project-dialog[open] { animation: dialog-in 320ms var(--ease) both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.project-dialog__layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); min-height: 620px; }
.project-dialog__media {
    position: relative;
    display: grid;
    min-height: 430px;
    overflow: hidden;
    place-items: center;
    background:
        linear-gradient(140deg, rgba(213,80,255,.12), transparent 42%),
        linear-gradient(320deg, rgba(64,217,255,.10), transparent 44%),
        #101016;
}
.project-dialog__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-dialog__content { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 5vw, 62px); }
.project-dialog__content h2 { margin: 10px 0 6px; font-family: var(--font-display); font-size: clamp(2.5rem, 4vw, 4.8rem); font-weight: 700; letter-spacing: -.04em; line-height: .9; text-transform: uppercase; }
.project-dialog__year { margin: 0; color: var(--soft); font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.project-dialog__description { margin: 28px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.8; }
.project-dialog__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.project-dialog__tags span { padding: 8px 10px; border: 1px solid var(--line); color: rgba(255,255,255,.6); font-family: var(--font-display); font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.project-dialog__link { align-self: flex-start; margin-top: 34px; }
.project-dialog__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(8,8,11,.72);
    cursor: pointer;
    backdrop-filter: blur(8px);
}
.project-dialog__close span { position: absolute; top: 50%; left: 50%; width: 17px; height: 1px; background: #fff; transform: translate(-50%,-50%) rotate(45deg); }
.project-dialog__close span + span { transform: translate(-50%,-50%) rotate(-45deg); }
.project-dialog__close:hover, .project-dialog__close:focus-visible { border-color: #fff; outline: 0; }

@media (max-width: 900px) {
    :root { --content: min(100% - 40px, 1220px); }
    .project-card, .project-card--featured { grid-column: span 12; }
    .project-card--featured .project-card__media, .project-card__media { aspect-ratio: 16 / 10; }
    .contact-panel { grid-template-columns: 1fr; align-items: start; }
    .project-dialog { overflow-y: auto; }
    .project-dialog__layout { grid-template-columns: 1fr; }
    .project-dialog__media { min-height: min(52vw, 430px); }
}

@media (max-width: 720px) {
    :root { --content: min(100% - 30px, 1220px); }
    .site-header { height: 74px; padding: 0 15px; }
    .site-header.is-scrolled { height: 66px; }
    .brand { gap: 7px; font-size: .64rem; letter-spacing: .13em; }
    .brand img { width: 39px; height: 39px; }
    .nav-toggle {
        position: relative;
        z-index: 3;
        display: block;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }
    .nav-toggle > span:not(.sr-only) { position: absolute; right: 5px; width: 23px; height: 1px; background: #fff; transition: transform 220ms ease, top 220ms ease; }
    .nav-toggle > span:first-child { top: 17px; }
    .nav-toggle > span:nth-child(2) { top: 26px; }
    .nav-toggle[aria-expanded="true"] > span:first-child { top: 22px; transform: rotate(45deg); }
    .nav-toggle[aria-expanded="true"] > span:nth-child(2) { top: 22px; transform: rotate(-45deg); }
    .site-nav {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 22px;
        padding: 90px 32px 40px;
        background: rgba(8,8,11,.97);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 220ms ease, transform 220ms var(--ease);
    }
    .site-nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
    .site-nav a { font-size: 1.7rem; letter-spacing: .08em; }
    .portfolio-hero { min-height: 780px; }
    .portfolio-hero__content { padding: 126px 0 118px; }
    .portfolio-hero h1 { font-size: clamp(4.1rem, 20vw, 6.7rem); line-height: .82; }
    .portfolio-hero__intro { max-width: 520px; font-size: .94rem; }
    .portfolio-hero__meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 34px; }
    .scroll-cue { right: 15px; bottom: 24px; }
    .work-section { padding: 84px 0 96px; }
    .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 34px; }
    .section-heading > p { font-size: .9rem; }
    .filter-bar { top: 66px; margin-right: -15px; margin-left: -15px; border-right: 0; border-left: 0; }
    .project-grid { gap: 14px; }
    .project-card__content { min-height: 0; padding: 21px 19px 24px; }
    .project-card__meta { flex-direction: column; gap: 4px; }
    .project-card__summary { font-size: .86rem; }
    .contact-panel { width: calc(100% - 30px); margin-bottom: 54px; padding: 34px 24px; }
    .contact-panel__button { width: 100%; }
    .project-dialog { width: calc(100vw - 20px); max-height: calc(100svh - 20px); }
    .project-dialog__media { min-height: 300px; }
    .project-dialog__content { padding: 34px 24px 40px; }
}


/* Collapse the expanded shared navigation before it can crowd the brand. */
@media (min-width: 721px) and (max-width: 1120px) {
    .site-header { height: 74px; padding: 0 24px; }
    .site-header.is-scrolled { height: 68px; }
    .nav-toggle {
        position: relative;
        z-index: 3;
        display: block;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }
    .nav-toggle > span:not(.sr-only) { position: absolute; right: 5px; width: 23px; height: 1px; background: #fff; transition: transform 220ms ease, top 220ms ease; }
    .nav-toggle > span:first-child { top: 17px; }
    .nav-toggle > span:nth-child(2) { top: 26px; }
    .nav-toggle[aria-expanded="true"] > span:first-child { top: 22px; transform: rotate(45deg); }
    .nav-toggle[aria-expanded="true"] > span:nth-child(2) { top: 22px; transform: rotate(-45deg); }
    .site-nav {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 20px;
        padding: 90px 48px 40px;
        background: rgba(8,8,11,.97);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 220ms ease, transform 220ms var(--ease);
    }
    .site-nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
    .site-nav a { font-size: 1.5rem; letter-spacing: .08em; }
}

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



/* Multi-image and video project viewer */
.project-dialog__stage{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden}.project-dialog__stage img,.project-dialog__stage video{width:100%;height:100%;object-fit:cover}.project-dialog__stage.has-video{padding:2rem;background:#050508}.project-dialog__stage.has-video video{object-fit:contain}.project-dialog__nav{position:absolute;top:50%;z-index:4;width:44px;height:60px;border:1px solid rgba(255,255,255,.22);background:rgba(8,8,11,.72);color:#fff;font-size:1.8rem;transform:translateY(-50%);cursor:pointer}.project-dialog__nav.is-prev{left:14px}.project-dialog__nav.is-next{right:14px}.project-dialog__thumbs{position:absolute;right:18px;bottom:18px;left:18px;z-index:4;display:flex;gap:8px;overflow-x:auto;padding:8px;background:rgba(8,8,11,.68);backdrop-filter:blur(10px)}.project-dialog__thumb{flex:0 0 76px;height:50px;padding:0;border:1px solid rgba(255,255,255,.18);background:#0a0a0e;overflow:hidden;cursor:pointer}.project-dialog__thumb.is-active{border-color:#fff}.project-dialog__thumb img{position:static;width:100%;height:100%;object-fit:cover}.project-dialog__thumb span{display:grid;place-items:center;width:100%;height:100%;color:#fff;font:700 .58rem var(--font-display);letter-spacing:.1em}@media(max-width:720px){.project-dialog__nav{top:auto;bottom:78px;transform:none}.project-dialog__thumbs{right:10px;bottom:10px;left:10px}.project-dialog__stage.has-video{padding:1rem}}

/* v4.1.2 — responsive project media viewer
   Keep uploaded images at their natural aspect ratio instead of cropping them
   to whichever shape the modal happens to be on a given screen. */
@media (min-width: 901px) {
    .project-dialog {
        width: min(1320px, calc(100vw - 40px));
        height: min(820px, calc(100svh - 40px));
        max-height: none;
    }

    .project-dialog__layout {
        height: 100%;
        min-height: 0;
        grid-template-columns: minmax(0, 1.45fr) minmax(340px, .7fr);
    }

    .project-dialog__media {
        min-width: 0;
        min-height: 0;
        height: 100%;
    }

    .project-dialog__content {
        min-height: 0;
        justify-content: flex-start;
        overflow-y: auto;
        padding-top: clamp(70px, 6vw, 88px);
        scrollbar-color: rgba(255,255,255,.24) transparent;
        scrollbar-width: thin;
    }
}

.project-dialog__stage {
    padding: clamp(18px, 2vw, 30px);
    isolation: isolate;
    background: #060609;
}

.project-dialog__stage.has-thumbs {
    padding-bottom: 94px;
}

.project-dialog__stage .project-dialog__media-blur {
    position: absolute;
    inset: -5%;
    z-index: 0;
    display: block;
    width: 110%;
    height: 110%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    opacity: .48;
    filter: blur(30px) saturate(.75) brightness(.34);
    transform: scale(1.04);
    pointer-events: none;
}

.project-dialog__stage .project-dialog__image {
    position: relative;
    inset: auto;
    z-index: 1;
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 45px rgba(0,0,0,.48));
}

.project-dialog__stage .project-dialog__video {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.project-dialog__thumbs {
    scrollbar-color: rgba(255,255,255,.28) transparent;
    scrollbar-width: thin;
}

@media (max-width: 900px) {
    .project-dialog {
        width: calc(100vw - 20px);
        height: auto;
        max-height: calc(100svh - 20px);
        overflow-y: auto;
    }

    .project-dialog__layout {
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .project-dialog__media {
        height: clamp(320px, 58svh, 560px);
        min-height: 0;
    }

    .project-dialog__content {
        overflow: visible;
        justify-content: flex-start;
        padding-top: 52px;
    }
}

@media (max-width: 720px) {
    .project-dialog__media {
        height: clamp(300px, 52svh, 430px);
        min-height: 0;
    }

    .project-dialog__stage {
        padding: 12px;
    }

    .project-dialog__stage.has-thumbs {
        padding-bottom: 76px;
    }
}

@media (max-width: 480px) {
    .project-dialog__media {
        height: clamp(270px, 48svh, 360px);
    }

    .project-dialog__thumb {
        flex-basis: 66px;
        height: 44px;
    }
}

@media (min-width: 901px) and (max-height: 700px) {
    .project-dialog {
        height: calc(100svh - 20px);
    }

    .project-dialog__content {
        padding-top: 64px;
        padding-bottom: 34px;
    }
}
