:root {
    --charcoal: #1a1d20;
    --ink: #fbfaf6;
    --muted: #c8c4bb;
    --navy: #1e3a5f;
    --navy-soft: #2c5d83;
    --sage: #86a895;
    --moss: #4f675b;
    --clay: #c08d63;
    --sand: #f0e6d4;
    --line: rgba(251, 250, 246, 0.14);
    --glass: rgba(251, 250, 246, 0.075);
    --glass-strong: rgba(251, 250, 246, 0.12);
    --shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
    --soft-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
    --radius-xl: 42px;
    --radius-lg: 30px;
    --radius-md: 22px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    background:
        radial-gradient(circle at 18% 9%, rgba(134, 168, 149, 0.22), transparent 28rem),
        radial-gradient(circle at 86% 18%, rgba(192, 141, 99, 0.16), transparent 26rem),
        radial-gradient(circle at 48% 92%, rgba(30, 58, 95, 0.28), transparent 36rem),
        linear-gradient(180deg, #202428 0%, #15181a 52%, #1a1d20 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(180deg, black, transparent 82%);
}

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

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

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

button {
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 80;
    top: 12px;
    left: 12px;
    transform: translateY(-140%);
    padding: 10px 14px;
    background: var(--sand);
    color: var(--charcoal);
    border-radius: 999px;
    transition: transform 160ms ease;
}

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

.scroll-progress {
    position: fixed;
    z-index: 70;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sage), var(--clay), var(--navy-soft));
    box-shadow: 0 0 22px rgba(134, 168, 149, 0.45);
}

.site-header {
    position: fixed;
    z-index: 60;
    top: 18px;
    left: clamp(14px, 3vw, 34px);
    right: clamp(14px, 3vw, 34px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    padding: 10px;
    border: 1px solid rgba(251, 250, 246, 0.11);
    background: rgba(26, 29, 32, 0.42);
    border-radius: 999px;
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(26, 29, 32, 0.82);
    border-color: rgba(251, 250, 246, 0.2);
    box-shadow: var(--soft-shadow);
}

.edit-toolbar {
    position: fixed;
    z-index: 65;
    left: 50%;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    transform: translateX(-50%);
    border: 1px solid rgba(251, 250, 246, 0.18);
    background: rgba(18, 21, 22, 0.78);
    border-radius: 999px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.edit-toolbar strong,
.edit-toolbar a,
.edit-toolbar button,
.edit-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    color: #101315;
    background: var(--sand);
    border: 0;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.edit-toolbar button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.edit-save:not(:disabled) {
    background: var(--sage);
}

.edit-cancel:not(:disabled) {
    color: var(--ink);
    background: rgba(251, 250, 246, 0.11);
}

.edit-toolbar strong {
    color: var(--sand);
    background: rgba(251, 250, 246, 0.08);
    cursor: default;
}

.edit-error {
    max-width: min(520px, 48vw);
    padding: 8px 12px;
    color: var(--ink);
    background: rgba(120, 28, 28, 0.86);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 750;
}

.upload-progress {
    width: min(320px, 36vw);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px 10px;
    padding: 8px 11px;
    color: var(--ink);
    background: rgba(251, 250, 246, 0.1);
    border: 1px solid rgba(251, 250, 246, 0.16);
    border-radius: 999px;
}

.upload-progress span {
    overflow: hidden;
    font-size: 0.76rem;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-progress strong {
    min-width: 42px;
    min-height: 0;
    display: block;
    padding: 0;
    color: var(--sand);
    background: transparent;
    border-radius: 0;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
    box-shadow: none;
    cursor: default;
}

.upload-progress div {
    grid-column: 1 / -1;
    height: 7px;
    overflow: hidden;
    background: rgba(10, 12, 13, 0.55);
    border-radius: 999px;
}

.upload-progress i {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--sage), var(--clay), var(--navy-soft));
    border-radius: inherit;
    box-shadow: 0 0 18px rgba(134, 168, 149, 0.38);
    transition: width 140ms ease;
}

.edit-button {
    position: relative;
    z-index: 12;
    text-transform: none;
}

.edit-button.compact {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.78rem;
}

.edit-button-floating,
.section-edit {
    position: absolute;
    top: 18px;
    right: 18px;
}

.edit-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 18px;
}

.is-edit-mode .hero,
.is-edit-mode .intro,
.is-edit-mode .about-card,
.is-edit-mode .projects-section,
.is-edit-mode .featured-work,
.is-edit-mode .services,
.is-edit-mode .quote-band figure,
.is-edit-mode .contact,
.is-edit-mode .project-card,
.is-edit-mode .project-player,
.is-edit-mode .case-study,
.is-edit-mode .footer,
.is-edit-mode .stats-band div {
    position: relative;
}

.is-inline-editing {
    box-shadow: inset 0 0 0 2px rgba(134, 168, 149, 0.58);
}

.is-inline-editing [data-editable] {
    min-width: 1.4em;
    cursor: text;
    border-radius: 12px;
    box-shadow: 0 0 0 2px rgba(134, 168, 149, 0.34);
    background: rgba(134, 168, 149, 0.1);
    transition: background 160ms ease, box-shadow 160ms ease;
}

.is-inline-editing [data-editable]:focus {
    outline: none;
    background: rgba(240, 230, 212, 0.16);
    box-shadow: 0 0 0 3px rgba(240, 230, 212, 0.28);
}

.is-inline-editing [data-edit-image],
.is-inline-editing [data-edit-video],
.is-inline-editing [data-edit-link] {
    cursor: pointer;
    filter: saturate(1.08) brightness(1.05);
    box-shadow: inset 0 0 0 4px rgba(134, 168, 149, 0.72);
}

.is-inline-editing [data-edit-image]::selection,
.is-inline-editing [data-edit-video]::selection,
.is-inline-editing [data-edit-link]::selection {
    background: transparent;
}

.is-inline-editing [data-edit-link]::after {
    content: "Lien";
    margin-left: 8px;
    padding: 3px 7px;
    color: #101315;
    background: var(--sage);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 850;
}

.is-inline-editing::after {
    content: "Edition directe active";
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 18;
    padding: 8px 12px;
    color: #101315;
    background: var(--sage);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 850;
    box-shadow: var(--soft-shadow);
}

.hero-panel .edit-button,
.stats-band .edit-button,
.service-card .edit-button,
.quote-band .edit-button,
.card-edit {
    position: absolute;
    top: 12px;
    right: 12px;
}

.footer-edit {
    position: absolute;
    top: -18px;
    right: 18px;
}

.quick-delete-form {
    position: absolute;
    z-index: 12;
}

.quick-delete-form .edit-button {
    color: var(--ink);
    background: rgba(120, 28, 28, 0.86);
}

.card-delete,
.service-delete,
.testimonial-delete {
    top: 52px;
    right: 12px;
}

.inline-editor,
.inline-delete-form {
    display: none;
}

.inline-editor[data-edit-panel^="new-"].is-open {
    position: relative;
    z-index: 20;
    grid-column: 1 / -1;
    width: min(980px, 100%);
    margin: 18px auto;
    padding: 22px;
    border: 1px solid rgba(251, 250, 246, 0.18);
    background:
        radial-gradient(circle at 16% 12%, rgba(134, 168, 149, 0.16), transparent 16rem),
        rgba(18, 21, 22, 0.92);
    border-radius: 30px 30px 14px 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.inline-editor.is-open,
.inline-delete-form.is-open {
    display: none !important;
}

.inline-editor[data-edit-panel^="new-"].is-open {
    display: grid !important;
}

.inline-editor-head {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(251, 250, 246, 0.1);
}

.inline-editor-head strong {
    color: var(--sand);
    font-size: 1.06rem;
}

.inline-editor-head button {
    min-height: 34px;
    padding: 0 12px;
    color: var(--ink);
    background: rgba(251, 250, 246, 0.08);
    border: 1px solid rgba(251, 250, 246, 0.12);
    border-radius: 999px;
    cursor: pointer;
}

.inline-mini-form {
    display: grid;
    grid-template-columns: 1fr 1.4fr 90px auto;
    gap: 10px;
    align-items: end;
    grid-column: 1 / -1;
    padding: 12px;
    border: 1px solid rgba(251, 250, 246, 0.1);
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.14);
}

.quote-editor-head {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.quote-add-editor.is-open {
    grid-column: 1 / -1;
}

.service-card,
.quote-band figure {
    position: relative;
}

.brand,
.nav,
.header-cta {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    padding-left: 6px;
    font-weight: 850;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.18),
        0 10px 28px rgba(0, 0, 0, 0.28);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav {
    gap: 4px;
    padding: 4px;
    background: rgba(251, 250, 246, 0.055);
    border-radius: 999px;
}

.nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    color: var(--muted);
    font-size: 0.92rem;
    border-radius: 999px;
    transition: color 170ms ease, background 170ms ease;
}

.nav a:hover,
.nav a.is-active {
    color: var(--ink);
    background: rgba(251, 250, 246, 0.12);
}

.header-cta {
    justify-self: end;
    min-height: 42px;
    padding: 0 18px;
    font-weight: 800;
    background: var(--sand);
    color: var(--charcoal);
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 96vh;
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: 150px clamp(18px, 5vw, 72px) 76px;
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
    object-position: center;
    filter: saturate(0.9) contrast(1.05);
}

.hero-overlay {
    pointer-events: none;
    background:
        radial-gradient(circle at 24% 45%, rgba(134, 168, 149, 0.19), transparent 20rem),
        radial-gradient(circle at 72% 78%, rgba(192, 141, 99, 0.13), transparent 24rem),
        linear-gradient(90deg, rgba(26, 29, 32, 0.97), rgba(26, 29, 32, 0.68) 42%, rgba(26, 29, 32, 0.18)),
        linear-gradient(0deg, rgba(26, 29, 32, 0.96), transparent 42%);
    transition: opacity 180ms ease;
}

.hero.is-inline-editing .hero-overlay {
    opacity: 0.34;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    color: var(--sage);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 22px;
    font-size: clamp(3.5rem, 9vw, 8.8rem);
    line-height: 0.88;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(2.2rem, 4.8vw, 5rem);
    line-height: 0.96;
    letter-spacing: 0;
}

h3 {
    font-size: 1.35rem;
    line-height: 1.12;
}

.lead {
    max-width: 660px;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.42rem);
}

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

.button,
.filter {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    color: var(--ink);
    cursor: pointer;
    border: 1px solid rgba(251, 250, 246, 0.15);
    background: rgba(251, 250, 246, 0.075);
    border-radius: 999px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(14px);
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button::after,
.filter::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.46;
}

.button.primary,
.filter.active {
    color: #101315;
    background: linear-gradient(135deg, var(--sand), var(--sage) 62%, #b7d6ca);
    border-color: rgba(251, 250, 246, 0.28);
}

.button.secondary {
    background: rgba(251, 250, 246, 0.09);
}

.button:hover,
.filter:hover,
.header-cta:hover {
    transform: translateY(-3px);
    border-color: rgba(251, 250, 246, 0.32);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.3);
}

.hero-panel {
    position: absolute;
    z-index: 2;
    right: clamp(18px, 5vw, 72px);
    bottom: 46px;
    width: min(380px, calc(100% - 36px));
    padding: 24px;
    border: 1px solid rgba(251, 250, 246, 0.16);
    background: rgba(18, 21, 22, 0.64);
    border-radius: 34px 34px 34px 12px;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-panel span,
.hero-panel small,
.project-meta,
.case-facts span,
.footer span {
    color: var(--muted);
}

.hero-panel strong {
    display: block;
    margin: 6px 0;
    font-size: 1.4rem;
}

.stats-band {
    width: min(var(--max), calc(100% - 36px));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: -42px auto 0;
    position: relative;
    z-index: 4;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--soft-shadow);
}

.stats-band div {
    min-height: 136px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 24px clamp(18px, 3vw, 34px);
    background:
        linear-gradient(145deg, rgba(251, 250, 246, 0.07), rgba(251, 250, 246, 0.025)),
        rgba(16, 19, 21, 0.9);
}

.stats-band strong {
    font-size: clamp(1.8rem, 4vw, 3.8rem);
    line-height: 1;
}

.stats-band span {
    color: var(--muted);
}

.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(82px, 10vw, 138px) clamp(18px, 4vw, 32px);
}

.split,
.section-heading,
.contact,
.case-study {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.split p,
.section-heading p,
.contact > div p,
.case-copy p {
    color: var(--muted);
    font-size: 1.06rem;
}

.section-heading > p {
    margin-top: calc(1.25rem + 14px);
}

.about-section {
    padding-top: 0;
}

.about-card,
.featured-work,
.contact-card,
.contact-form,
.service-card,
.project-card,
.project-player,
.studio-panel,
.studio-login-card,
.project-editor,
.mini-editor {
    border: 1px solid rgba(251, 250, 246, 0.14);
    background:
        linear-gradient(145deg, rgba(251, 250, 246, 0.09), rgba(251, 250, 246, 0.035)),
        rgba(18, 21, 22, 0.72);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
}

.about-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 18px var(--radius-xl);
}

.about-portrait {
    min-height: 500px;
    background: #101315;
}

.about-portrait img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.about-copy {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: clamp(30px, 6vw, 68px);
    background:
        radial-gradient(circle at 18% 20%, rgba(134, 168, 149, 0.14), transparent 18rem),
        radial-gradient(circle at 80% 80%, rgba(192, 141, 99, 0.1), transparent 18rem);
}

.about-copy h2 {
    margin: 0;
}

.about-copy strong {
    color: var(--sand);
    font-size: 1.18rem;
}

.about-copy p {
    color: var(--muted);
    font-size: 1.05rem;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-tags span,
.contact-details a,
.contact-details span,
.status-pill {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgba(251, 250, 246, 0.13);
    background: rgba(251, 250, 246, 0.065);
    color: var(--sand);
    border-radius: 15px;
}

.featured-work {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    overflow: hidden;
    margin-top: 42px;
    border-radius: 28px 48px 28px 12px;
}

.featured-work-media {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background: #101315;
}

.featured-work-media img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    transition: transform 420ms ease;
}

.featured-work:hover .featured-work-media img {
    transform: scale(1.035);
}

.play-badge {
    position: absolute;
    left: 24px;
    bottom: 24px;
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    color: #101315;
    background: var(--sand);
    font-weight: 900;
    border-radius: 50% 50% 50% 18px;
    box-shadow: var(--soft-shadow);
}

.featured-work-copy {
    display: grid;
    align-content: center;
    gap: 20px;
    padding: clamp(30px, 5vw, 56px);
    background:
        radial-gradient(circle at 100% 20%, rgba(134, 168, 149, 0.16), transparent 16rem),
        rgba(18, 21, 22, 0.6);
}

.featured-work-copy h3 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4.8rem);
    line-height: 0.94;
}

.featured-work-copy p {
    color: var(--muted);
}

.work-facts {
    display: grid;
    gap: 8px;
    margin: 0;
}

.work-facts div {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(251, 250, 246, 0.1);
}

.work-facts dt {
    color: var(--muted);
}

.work-facts dd {
    margin: 0;
}

.reel-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-top: 28px;
    color: var(--muted);
}

.project-tools {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.project-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.project-page-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.project-page-button {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    color: var(--ink);
    background: rgba(251, 250, 246, 0.08);
    border: 1px solid rgba(251, 250, 246, 0.14);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.project-page-button:hover:not(:disabled),
.project-page-button.active {
    color: #101315;
    background: var(--sage);
    border-color: rgba(251, 250, 246, 0.3);
    transform: translateY(-2px);
}

.project-page-button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.project-pagination span {
    color: var(--muted);
    font-size: 0.88rem;
}

.project-search {
    min-width: min(280px, 100%);
}

.project-search span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 34px;
}

.project-card {
    overflow: hidden;
    border-radius: 32px 32px 14px 32px;
    transition: transform 220ms ease, border-color 220ms ease;
}

.project-card.is-hidden {
    display: none;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 250, 246, 0.26);
}

.project-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #101315;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 320ms ease, filter 320ms ease;
}

.project-card:hover img {
    transform: scale(1.045);
    filter: brightness(1.08) saturate(1.08);
}

.project-media span,
.project-media em {
    position: absolute;
    bottom: 14px;
    padding: 6px 10px;
    background: rgba(18, 21, 22, 0.72);
    color: var(--ink);
    font-size: 0.78rem;
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.project-media span {
    right: 14px;
}

.project-media em {
    left: 14px;
    background: rgba(134, 168, 149, 0.8);
    color: #101315;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.project-copy {
    padding: 24px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.project-copy p,
.service-card p,
blockquote {
    color: var(--muted);
}

.project-foot {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(251, 250, 246, 0.11);
}

.project-foot span {
    color: var(--muted);
    font-size: 0.9rem;
}

.project-foot a {
    color: var(--sand);
    font-weight: 850;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.service-card {
    min-height: 290px;
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 28px;
    border-radius: 28px 28px 28px 10px;
}

.service-card:nth-child(2) {
    transform: translateY(22px);
}

.service-number {
    color: var(--sage);
    font-weight: 900;
}

.service-card strong {
    margin-top: auto;
    color: var(--sand);
}

.quote-band {
    width: min(var(--max), calc(100% - 36px));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0 auto;
}

.quote-band figure {
    margin: 0;
    padding: clamp(34px, 6vw, 76px);
    border: 1px solid rgba(251, 250, 246, 0.12);
    background: rgba(18, 21, 22, 0.64);
    border-radius: 36px 14px 36px 36px;
    box-shadow: var(--soft-shadow);
}

blockquote {
    margin: 0 0 18px;
    font-size: clamp(1.35rem, 2.6vw, 2.4rem);
    line-height: 1.16;
}

figcaption {
    color: var(--sand);
}

.contact-polished {
    align-items: stretch;
}

.contact-card,
.contact-form {
    border-radius: 36px 36px 14px 36px;
}

.contact-card {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: clamp(28px, 5vw, 50px);
    background:
        radial-gradient(circle at 18% 18%, rgba(192, 141, 99, 0.18), transparent 16rem),
        rgba(18, 21, 22, 0.72);
}

.contact-card h2 {
    margin: 0;
}

.contact-card p {
    color: var(--muted);
}

.contact-details {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: clamp(22px, 4vw, 34px);
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(251, 250, 246, 0.14);
    background: rgba(9, 11, 12, 0.42);
    color: var(--ink);
    padding: 13px 15px;
    outline: none;
    border-radius: 18px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(134, 168, 149, 0.72);
    background: rgba(9, 11, 12, 0.62);
    box-shadow: 0 0 0 4px rgba(134, 168, 149, 0.16);
}

.wide,
.form-success {
    grid-column: 1 / -1;
}

.form-success,
.form-error {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(251, 250, 246, 0.14);
    border-radius: 18px;
}

.form-success {
    background: rgba(134, 168, 149, 0.22);
}

.form-error {
    background: rgba(120, 28, 28, 0.44);
}

.project-hero {
    position: relative;
    min-height: 74vh;
    display: grid;
    align-items: end;
    padding: 130px clamp(18px, 5vw, 72px) 82px;
    overflow: hidden;
}

.project-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 75% 22%, rgba(134, 168, 149, 0.18), transparent 22rem),
        linear-gradient(0deg, rgba(26, 29, 32, 0.97), rgba(26, 29, 32, 0.24));
    transition: opacity 180ms ease;
}

.project-hero.is-inline-editing::after {
    opacity: 0.34;
}

.project-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero-copy {
    position: relative;
    z-index: 3;
    max-width: 890px;
}

.project-hero-copy p {
    color: var(--muted);
    max-width: 700px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--muted);
}

.project-player-section {
    max-width: 1320px;
    margin: -72px auto 0;
    padding: 0 clamp(18px, 4vw, 32px);
    position: relative;
    z-index: 3;
}

.project-player {
    overflow: hidden;
    border-radius: 38px 38px 16px 38px;
}

.project-player video,
.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.project-player video {
    display: block;
    object-fit: cover;
    background: #000;
}

.video-placeholder {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 420px;
    overflow: hidden;
}

.video-placeholder img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
}

.video-placeholder div {
    position: relative;
    z-index: 1;
    max-width: 680px;
    padding: 28px;
    text-align: center;
}

.video-placeholder h2 {
    margin-bottom: 22px;
}

.case-facts {
    display: grid;
    gap: 10px;
}

.case-facts article {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 20px;
    border: 1px solid rgba(251, 250, 246, 0.12);
    background: rgba(18, 21, 22, 0.62);
    border-radius: 24px;
}

.project-detail-actions {
    position: absolute;
    top: 64px;
    right: 18px;
    z-index: 14;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.case-detail-section {
    position: relative;
}

.detail-delete {
    top: 12px;
    right: 12px;
}

.case-copy h2 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.case-detail-section + .case-detail-section {
    margin-top: 34px;
}

.not-found {
    min-height: 78vh;
    display: grid;
    place-content: center;
    justify-items: start;
    padding: 120px 24px;
}

.not-found h1 {
    max-width: 760px;
    font-size: clamp(2.8rem, 8vw, 7rem);
}

.footer {
    width: min(var(--max), calc(100% - 36px));
    display: flex;
    justify-content: space-between;
    gap: 22px;
    margin: 40px auto 22px;
    padding: 22px 24px;
    border: 1px solid rgba(251, 250, 246, 0.12);
    background: rgba(18, 21, 22, 0.66);
    border-radius: 999px;
}

.footer div {
    display: grid;
    min-width: 0;
}

.footer strong,
.footer span,
.footer a {
    position: relative;
    z-index: 2;
}

.secret-access {
    position: fixed;
    z-index: 68;
    right: 7px;
    bottom: 7px;
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.025);
    opacity: 0.06;
    border-radius: 50%;
    transition: opacity 160ms ease, background 160ms ease, transform 160ms ease;
}

.secret-access:hover,
.secret-access:focus {
    opacity: 0.42;
    background: rgba(134, 168, 149, 0.5);
    transform: scale(1.35);
}

.back-top {
    position: fixed;
    z-index: 66;
    right: 28px;
    bottom: 34px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(251, 250, 246, 0.15);
    background: rgba(18, 21, 22, 0.72);
    border-radius: 50% 50% 50% 14px;
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(14px);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 170ms ease, transform 170ms ease, background 170ms ease;
}

.back-top::before {
    content: "";
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--sand);
    border-left: 2px solid var(--sand);
    transform: translateY(3px) rotate(45deg);
}

.back-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-top:hover {
    background: rgba(134, 168, 149, 0.34);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.studio-login,
.studio-shell {
    min-height: 100vh;
    padding: 132px clamp(18px, 4vw, 48px) 64px;
}

.studio-login {
    display: grid;
    place-items: center;
}

.studio-login-card {
    width: min(480px, 100%);
    display: grid;
    gap: 18px;
    padding: 30px;
    border-radius: 34px;
}

.studio-login-card h1,
.studio-topbar h1 {
    margin: 0;
    font-size: clamp(3rem, 8vw, 6.4rem);
}

.studio-shell {
    max-width: 1280px;
    margin: 0 auto;
}

.studio-topbar,
.studio-actions,
.studio-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.studio-actions {
    flex-wrap: wrap;
}

.studio-panel {
    margin-top: 28px;
    padding: 24px;
    border-radius: 30px;
}

.studio-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.studio-edit-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-editor {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
}

.studio-panel-heading {
    align-items: end;
    margin-bottom: 22px;
}

.studio-panel-heading h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.studio-panel-heading p,
.message-list span,
.studio-row span {
    color: var(--muted);
}

.studio-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.project-editor {
    padding: 24px;
    border-radius: 30px;
}

.check-row {
    grid-template-columns: auto 1fr;
    align-items: center;
    align-content: center;
}

.check-row input {
    width: 18px;
}

.studio-table {
    display: grid;
    gap: 12px;
}

.studio-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(251, 250, 246, 0.12);
    background: rgba(0, 0, 0, 0.18);
    border-radius: 24px;
}

.studio-row img {
    width: 92px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
}

.studio-row div {
    display: grid;
    min-width: 0;
}

.storage-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    padding: 0;
    background: var(--line);
}

.storage-summary div {
    display: grid;
    gap: 4px;
    padding: 24px;
    background: rgba(18, 21, 22, 0.86);
}

.storage-summary span,
.storage-item span,
.storage-item small {
    color: var(--muted);
}

.storage-summary strong {
    color: var(--sand);
    font-size: clamp(1.8rem, 3.8vw, 3.2rem);
    line-height: 1;
}

.storage-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.storage-grid {
    display: grid;
    gap: 12px;
}

.storage-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(251, 250, 246, 0.12);
    background: rgba(0, 0, 0, 0.18);
    border-radius: 24px;
}

.storage-item.is-used {
    opacity: 0.68;
}

.storage-preview {
    position: relative;
    overflow: hidden;
    width: 112px;
    aspect-ratio: 16 / 10;
    background: #101315;
    border-radius: 18px;
}

.storage-preview img,
.storage-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.storage-preview span {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 4px 8px;
    color: var(--ink);
    background: rgba(18, 21, 22, 0.72);
    border-radius: 999px;
    font-size: 0.72rem;
}

.storage-item div:not(.storage-preview) {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.storage-item strong,
.storage-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.storage-check {
    grid-template-columns: auto 1fr;
    align-items: center;
    color: var(--sand);
    font-weight: 800;
}

.storage-check input,
.storage-actions input {
    width: 18px;
}

.status-pill.muted {
    color: var(--muted);
}

.danger {
    border-color: rgba(255, 255, 255, 0.14);
}

.message-list {
    display: grid;
    gap: 12px;
}

.message-list article {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid rgba(251, 250, 246, 0.12);
    background: rgba(0, 0, 0, 0.18);
    border-radius: 24px;
}

.message-list p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: 1fr auto;
        border-radius: 26px;
    }

    .nav {
        grid-column: 1 / -1;
        order: 3;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .hero {
        min-height: 92vh;
        align-items: end;
    }

    .hero-overlay {
        background:
            radial-gradient(circle at 40% 38%, rgba(134, 168, 149, 0.16), transparent 18rem),
            linear-gradient(0deg, rgba(26, 29, 32, 0.98) 8%, rgba(26, 29, 32, 0.5) 72%),
            linear-gradient(90deg, rgba(26, 29, 32, 0.92), rgba(26, 29, 32, 0.28));
    }

    .hero-panel {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 28px;
    }

    .stats-band,
    .project-grid,
    .featured-work,
    .about-card,
    .service-grid,
    .quote-band,
    .split,
    .section-heading,
    .contact,
    .case-study {
        grid-template-columns: 1fr;
    }

    .stats-band {
        margin-top: 0;
    }

    .section-heading > p {
        margin-top: 0;
    }

    .featured-work-media,
    .featured-work-media img,
    .about-portrait,
    .about-portrait img {
        min-height: 330px;
    }

    .service-card:nth-child(2) {
        transform: none;
    }

    .reel-toolbar,
    .studio-topbar,
    .studio-panel-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .project-tools {
        justify-content: flex-start;
    }

    .contact-form,
    .studio-form,
    .studio-row,
    .storage-summary,
    .storage-item,
    .studio-edit-grid,
    .studio-edit-grid.compact,
    .inline-editor[data-edit-panel^="new-"].is-open,
    .inline-mini-form {
        grid-template-columns: 1fr;
    }

    .studio-row img {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .site-header {
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .brand span:last-child {
        display: none;
    }

    h1 {
        font-size: clamp(3.1rem, 18vw, 5.2rem);
    }

    .hero {
        padding-inline: 16px;
    }

    .button,
    .filter,
    .project-search {
        width: 100%;
    }

    .filters,
    .project-tools,
    .project-pagination,
    .project-page-list {
        width: 100%;
    }

    .footer {
        display: grid;
        border-radius: 28px;
    }

    .edit-toolbar {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        flex-wrap: wrap;
        justify-content: center;
        transform: none;
        border-radius: 28px;
    }

    .upload-progress {
        order: -1;
        width: 100%;
    }
}
