/* ═══════════════════════════════════════════════════════════
   Victor Lamache — portfolio (v4)
   Concept: the reel is the title card; the rest reads like a
   production credit sheet. Square edges, ink on cream, no chrome.
   Values are provisional (no DESIGN.md yet).
═══════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'SF Pro Web';
    src: url('../font/SFPRODISPLAYREGULAR.OTF') format('opentype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Web';
    src: url('../font/SFPRODISPLAYMEDIUM.OTF') format('opentype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Web';
    src: url('../font/SFPRODISPLAYBOLD.OTF') format('opentype');
    font-weight: 600 700;
    font-display: swap;
}

:root {
    --paper: #f0e8d8;
    --paper-2: #e6dcc7;
    --ink: #1c1b19;
    --ink-2: #5a5348;
    --ink-3: #8a8070;
    --rule: #d8ccb4;
    --screen: #0e0e0d;           /* reel page background */

    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Web', 'Segoe UI', system-ui, sans-serif;

    --gutter: clamp(20px, 3.6vw, 56px);
    --col-gap: clamp(16px, 2vw, 32px);
    --section: clamp(120px, 14vw, 200px);
    --bar-h: 60px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

[hidden] {
    display: none !important;
}

html {
    background: var(--paper);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

button {
    background: none;
    border: 0;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

::selection {
    background: var(--ink);
    color: var(--paper);
}

/* Underlined text link: hairline that thickens on hover */
.u {
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
    padding-bottom: 2px;
    transition: background-size 0.25s var(--ease), opacity 0.2s var(--ease);
}

.u:hover {
    background-size: 100% 2px;
}

.muted {
    color: var(--ink-3);
}

.num {
    font-variant-numeric: tabular-nums;
}

/* 12-column grid used by every section */
.grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    padding-inline: var(--gutter);
    max-width: 1600px;
    margin-inline: auto;
}

/* ── Top bar ── */
.bar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    height: var(--bar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: var(--gutter);
    color: #fff;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
    border-bottom: 1px solid transparent;
}

.bar.solid {
    background: var(--paper);
    color: var(--ink);
    border-bottom-color: var(--rule);
}

.bar-name {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.bar-links {
    display: flex;
    gap: clamp(18px, 2.4vw, 34px);
    list-style: none;
    font-size: 15px;
}

.bar-links a {
    opacity: 0.72;
    transition: opacity 0.2s var(--ease);
}

.bar-links a:hover,
.bar-links a[aria-current='true'] {
    opacity: 1;
}

.bar-toggle {
    display: none;
    font-size: 15px;
    padding: 10px 0 10px 16px;
}

.sheet {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: var(--paper);
    color: var(--ink);
    padding: calc(var(--bar-h) + 40px) var(--gutter) 40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0.25s;
}

.sheet.open {
    opacity: 1;
    visibility: visible;
}

.sheet a {
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.bar.menu-open {
    color: var(--ink);
}

@media (max-width: 820px) {
    .bar-links {
        display: none;
    }

    .bar-toggle {
        display: block;
    }
}

/* ── Stage: full-bleed reel as the title card ── */
.stage {
    position: relative;
    display: block;
    height: 100vh;
    height: 100svh;
    min-height: 520px;
    background: var(--screen);
    color: #fff;
    overflow: hidden;
}

.stage img,
.stage video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stage video {
    opacity: 0;
    transition: opacity 0.8s var(--ease), transform 1.2s var(--ease);
}

.stage video.ready {
    opacity: 1;
}

/* The whole frame links to the reel page */
.stage-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.stage-link:focus-visible {
    outline-offset: -6px;
}

.stage:hover video {
    transform: scale(1.012);
}

.stage::before,
.stage::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 1;
}

.stage::before {
    top: 0;
    height: 140px;
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
}

.stage::after {
    bottom: 0;
    height: 46%;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.55));
}

.slate {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding-bottom: clamp(24px, 4vw, 48px);
    align-items: end;
    pointer-events: none;
}

.slate h1 {
    grid-column: 1 / span 8;
    font-size: clamp(48px, 8.6vw, 148px);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 0.88;
}

.slate-role {
    grid-column: 1 / span 6;
    margin-top: 18px;
    font-size: clamp(16px, 1.5vw, 20px);
    color: rgba(255, 255, 255, 0.85);
}

.slate-side {
    grid-column: 9 / -1;
    grid-row: 1 / span 2;
    align-self: end;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 15px;
}

.slate-watch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.slate-watch i {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.slate-watch svg {
    width: 14px;
    height: 14px;
    margin-left: 2px;
    fill: currentColor;
}

.stage:hover .slate-watch i {
    background: #fff;
    border-color: #fff;
    color: var(--screen);
}

/* Pause sits above the link so it can still be clicked */
.stage-pause {
    position: relative;
    pointer-events: auto;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.stage-pause:hover {
    color: #fff;
}

@media (max-width: 820px) {
    .slate h1,
    .slate-role,
    .slate-side {
        grid-column: 1 / -1;
    }

    .slate-side {
        grid-row: auto;
        justify-self: stretch;
        justify-content: space-between;
        margin-top: 28px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }
}

/* ── Section scaffolding ── */
.section {
    padding-top: var(--section);
}

.section-title {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 18px;
    margin-bottom: clamp(40px, 5vw, 64px);
    border-bottom: 1px solid var(--ink);
}

.section-title h2 {
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.section-title span {
    font-size: 14px;
    color: var(--ink-3);
}

/* ── About: photo left, text right, facts under the text ── */
.about-photo {
    grid-column: 1 / span 4;
}

.about-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: grayscale(1);
    background: var(--paper-2);
}

.about-text {
    grid-column: 6 / -1;
}

.lead {
    font-size: clamp(24px, 2.6vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.03em;
    max-width: 26ch;
}

.about-bio {
    margin-top: 24px;
}

.about-bio p {
    font-size: 17px;
    color: var(--ink-2);
    max-width: 58ch;
}

.summary-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 24px;
    font-size: 15px;
    font-weight: 500;
}

.facts {
    margin-top: clamp(40px, 5vw, 56px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--col-gap);
    border-top: 1px solid var(--rule);
}

.facts div {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 15px;
}

.facts dt {
    font-size: 13px;
    color: var(--ink-3);
    margin-bottom: 2px;
}

@media (max-width: 900px) {
    .about-photo {
        grid-column: 1 / span 5;
    }

    .about-text {
        grid-column: 6 / -1;
    }

    .facts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .about-photo {
        grid-column: 1 / span 7;
        margin-bottom: 32px;
    }

    .about-text {
        grid-column: 1 / -1;
    }
}

/* ── Film credits: compact, two per row ── */
.credits {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(40px, 5vw, 64px) clamp(32px, 4vw, 64px);
}

.credit {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 0 clamp(20px, 2vw, 32px);
    align-items: start;
}

.credit-poster img,
.credit-poster video {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: var(--paper-2);
}

.credit-poster.wide img,
.credit-poster.wide video {
    aspect-ratio: 16 / 9;
}

.credit-year {
    font-size: 14px;
    color: var(--ink-3);
}

.credit-text h3 {
    margin-top: 4px;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.credit-role {
    margin-top: 6px;
    font-size: 15px;
    color: var(--ink);
}

.credit-desc {
    margin-top: 16px;
}

.credit-desc p {
    font-size: 15px;
    color: var(--ink-2);
}

.credit-desc p + p {
    margin-top: 0.7em;
}

.credit-meta {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
    display: grid;
    gap: 10px;
    font-size: 13px;
}

.credit-meta dt {
    color: var(--ink-3);
}

.credit-meta dd {
    color: var(--ink-2);
    line-height: 1.55;
}

@media (max-width: 1100px) {
    .credits {
        grid-template-columns: 1fr;
    }

    .credit {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }
}

@media (max-width: 560px) {
    .credit {
        grid-template-columns: 1fr;
    }

    .credit-poster {
        width: 60%;
        margin-bottom: 20px;
    }
}

/* ── Tools: everything visible, one row per tool ── */
.tools-intro {
    grid-column: 1 / span 7;
}

.tools-intro p {
    font-size: 17px;
    color: var(--ink-2);
    max-width: 60ch;
}

.tools-intro p + p {
    margin-top: 0.8em;
}

.tools-note {
    grid-column: 9 / -1;
    align-self: end;
    font-size: 14px;
    color: var(--ink-3);
}

.tool-list {
    grid-column: 1 / -1;
    margin-top: clamp(48px, 6vw, 72px);
    list-style: none;
    border-top: 1px solid var(--ink);
}

.tool {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    padding: 28px 0;
    border-bottom: 1px solid var(--rule);
}

.tool-head {
    grid-column: 1 / span 4;
}

.tool-name {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.tool-stack {
    margin-top: 4px;
    font-size: 14px;
    color: var(--ink-3);
}

.tool-body {
    grid-column: 5 / span 6;
}

.tool-short {
    font-size: 16px;
    color: var(--ink);
}

.tool-long {
    margin-top: 10px;
}

.tool-long p {
    font-size: 15px;
    color: var(--ink-2);
    max-width: 62ch;
}

.tool-long p + p {
    margin-top: 0.6em;
}

.tool-dl {
    grid-column: 11 / -1;
    justify-self: end;
    align-self: start;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 820px) {
    .tools-intro,
    .tools-note {
        grid-column: 1 / -1;
    }

    .tools-note {
        margin-top: 20px;
    }

    .tool-head {
        grid-column: 1 / span 8;
    }

    .tool-dl {
        grid-column: 9 / -1;
        grid-row: 1;
    }

    .tool-body {
        grid-column: 1 / -1;
        margin-top: 12px;
    }
}

/* ── Experience: résumé rows ── */
.cv {
    grid-column: 1 / -1;
    list-style: none;
}

.cv-row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    padding: 24px 0;
    border-bottom: 1px solid var(--rule);
}

.cv-row:first-child {
    padding-top: 0;
}

.cv-date {
    grid-column: 1 / span 3;
    font-size: 15px;
    color: var(--ink-3);
}

.cv-main {
    grid-column: 4 / span 6;
}

.cv-role {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.cv-org {
    font-size: 16px;
    color: var(--ink);
}

.cv-points {
    margin-top: 10px;
    list-style: none;
}

.cv-points li {
    font-size: 15px;
    color: var(--ink-2);
    max-width: 62ch;
}

.cv-points li + li {
    margin-top: 4px;
}

.cv-place {
    grid-column: 10 / -1;
    text-align: right;
    font-size: 15px;
    color: var(--ink-3);
}

.cv-sub {
    grid-column: 1 / -1;
    margin: clamp(64px, 8vw, 104px) 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ink);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

@media (max-width: 820px) {
    .cv-date,
    .cv-main,
    .cv-place {
        grid-column: 1 / -1;
        text-align: left;
    }

    .cv-date {
        margin-bottom: 6px;
        font-size: 14px;
    }

    .cv-place {
        margin-top: 6px;
        font-size: 14px;
    }
}

/* ── Contact ── */
.contact {
    padding-top: var(--section);
    padding-bottom: clamp(80px, 10vw, 140px);
}

.contact-mail {
    grid-column: 1 / -1;
    font-size: clamp(30px, 6.4vw, 112px);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1;
    word-break: break-word;
    transition: color 0.25s var(--ease);
}

.contact-mail:hover {
    color: var(--ink-2);
}

.contact-copy {
    grid-column: 1 / span 4;
    margin-top: clamp(48px, 6vw, 80px);
}

.contact-copy p {
    color: var(--ink-2);
    max-width: 36ch;
}

.contact-copy .summary-links {
    margin-top: 20px;
}

.form {
    grid-column: 6 / -1;
    margin-top: clamp(48px, 6vw, 80px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px var(--col-gap);
}

.field {
    display: flex;
    flex-direction: column;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 14px;
    color: var(--ink-3);
}

.field input,
.field textarea {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    padding: 8px 0 10px;
    font-size: 17px;
    transition: border-color 0.2s var(--ease);
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.field input:hover,
.field textarea:hover {
    border-bottom-color: var(--ink-3);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--ink);
}

.form-foot {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 26px;
    background: var(--ink);
    color: var(--paper);
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.2s var(--ease);
}

.button:hover {
    background: #3a3833;
}

.button:disabled {
    opacity: 0.6;
    cursor: default;
}

.form-status {
    font-size: 14px;
    color: var(--ink-2);
}

.form-status.error {
    color: #9a3412;
}

@media (max-width: 820px) {
    .contact-copy,
    .form {
        grid-column: 1 / -1;
    }

    .form {
        grid-template-columns: 1fr;
    }
}

/* ── Footer ── */
.foot {
    padding-bottom: 36px;
    font-size: 14px;
    color: var(--ink-3);
}

.foot-row {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 32px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
}

.foot a:hover,
.foot button:hover {
    color: var(--ink);
}

.foot button {
    color: var(--ink-3);
    font-size: 14px;
}

/* ═══════════════════════════════════════
   Reel page: a dark screening room
═══════════════════════════════════════ */
.screening {
    background: var(--screen);
    color: #ece9e2;
}

.screening ::selection {
    background: #ece9e2;
    color: var(--screen);
}

.screening .bar {
    color: #ece9e2;
    background: var(--screen);
    border-bottom-color: #26251f;
}

.screening .sheet {
    background: var(--screen);
    color: #ece9e2;
}

.screening .bar.menu-open {
    color: #ece9e2;
}

.room {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: var(--bar-h);
    display: flex;
    flex-direction: column;
}

.room-player {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 2vw, 28px) var(--gutter) 0;
}

.player {
    position: relative;
    width: 100%;
    max-width: calc((100vh - var(--bar-h) - 150px) * 16 / 9);
    max-width: calc((100svh - var(--bar-h) - 150px) * 16 / 9);
    aspect-ratio: 16 / 9;
    background: #000;
    color: #fff;
}

.player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player:fullscreen {
    max-width: none;
}

.player-hit {
    position: absolute;
    inset: 0;
    width: 100%;
}

.unmute {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    padding: 9px 14px;
    background: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    display: none;
}

.player.muted-autoplay .unmute {
    display: block;
}

.unmute:hover {
    background: rgba(0, 0, 0, 0.85);
}

.controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 32px 10px 8px;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.65));
    font-size: 13px;
    transition: opacity 0.3s var(--ease);
}

.player.idle:not(.paused) .controls,
.player.idle:not(.paused) .unmute {
    opacity: 0;
}

.player.idle:not(.paused) {
    cursor: none;
}

.ctrl {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background-color 0.2s var(--ease);
}

.ctrl:disabled {
    opacity: 0.4;
}

.ctrl:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ctrl svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Volume: same hairline language as the progress bar */
.volume {
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    width: 84px;
    height: 28px;
    margin: 0 4px 0 0;
    background: transparent;
    cursor: pointer;
    --fill: 100%;
}

.volume:focus {
    outline: none;
}

.volume:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 2px;
}

.volume::-webkit-slider-runnable-track {
    height: 2px;
    background: linear-gradient(to right, #fff var(--fill), rgba(255, 255, 255, 0.25) var(--fill));
}

.volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    margin-top: -5px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s var(--ease);
}

.volume:hover::-webkit-slider-thumb {
    transform: scale(1.25);
}

.volume::-moz-range-track {
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
}

.volume::-moz-range-progress {
    height: 2px;
    background: #fff;
}

.volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: #fff;
}

.ctrl-time {
    flex: none;
    color: rgba(255, 255, 255, 0.85);
    padding: 0 4px;
}

.progress {
    flex: 1;
    height: 28px;
    margin: 0 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    touch-action: none;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
}

.progress-buf,
.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
}

.progress-buf {
    background: rgba(255, 255, 255, 0.35);
}

.progress-fill {
    background: #fff;
}

.progress:hover .progress-track {
    height: 4px;
}

.room-info {
    padding: 28px var(--gutter) 32px;
    row-gap: 20px;
}

.room-info h1 {
    grid-column: 1 / span 5;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.room-desc {
    grid-column: 6 / span 4;
    font-size: 15px;
    color: #a9a59c;
}

.room-actions {
    grid-column: 10 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    font-size: 15px;
}

.room-tc {
    color: #a9a59c;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 820px) {
    .room-player {
        padding-inline: 0;
        flex: none;
    }

    .player {
        max-width: none;
    }

    .room-info h1,
    .room-desc,
    .room-actions {
        grid-column: 1 / -1;
    }

    .room-actions {
        justify-content: flex-start;
    }

    .controls {
        gap: 12px;
        padding: 24px 12px 8px;
    }
}

/* Password screen */
.gate {
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--bar-h) + 40px) var(--gutter) 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gate form {
    width: min(400px, 100%);
    display: grid;
    gap: 24px;
}

.gate h1 {
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.gate p {
    margin-top: 8px;
    color: #a9a59c;
}

.screening .field input,
.screening .field textarea {
    border-bottom-color: #3a3832;
    color: #ece9e2;
}

.screening .field input:focus,
.screening .field textarea:focus {
    border-bottom-color: #ece9e2;
}

.screening .button {
    background: #ece9e2;
    color: var(--screen);
}

.screening .button:hover {
    background: #fff;
}

.gate-error {
    min-height: 20px;
    font-size: 14px;
    color: #f0a07a;
}

/* Feedback dialog (reel page) */
.dialog {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.7);
}

.dialog.open {
    display: flex;
}

.dialog-box {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #1a1a18;
    padding: clamp(28px, 4vw, 44px);
}

.dialog-box h2 {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.035em;
    padding-right: 60px;
}

.dialog-box > p,
.dialog-done p {
    margin-top: 8px;
    font-size: 15px;
    color: #a9a59c;
}

.dialog-box .form {
    margin-top: 28px;
    grid-template-columns: 1fr;
}

.dialog-close {
    position: absolute;
    top: 20px;
    right: 22px;
    font-size: 14px;
    color: #a9a59c;
}

.dialog-close:hover {
    color: #fff;
}

@media (max-width: 820px) {
    .dialog {
        padding: 0;
        align-items: flex-end;
    }

    .dialog-box {
        width: 100%;
        max-height: 92vh;
    }
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 70;
    transform: translateX(-50%);
    background: #ece9e2;
    color: var(--screen);
    font-size: 14px;
    padding: 10px 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease);
}

.toast.show {
    opacity: 1;
}

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

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
