/* =========================================================
/* =========================================================
   RM AGENCY — MAIN STYLES
========================================================= */

:root {
    --bg: #f5f5f2;
    --surface: #ffffff;
    --surface-2: #eeeeeb;

    --text: #0a0a0a;
    --text-soft: #555555;
    --text-muted: #858585;

    --border: #ddddda;

    --accent: #9d8d70;

    --black: #080808;
    --white: #ffffff;

    --container: 1240px;

    --transition: 0.35s cubic-bezier(.22, 1, .36, 1);
}

body.dark {
    --bg: #080808;
    --surface: #111111;
    --surface-2: #181818;

    --text: #f5f5f2;
    --text-soft: #a3a3a3;
    --text-muted: #707070;

    --border: #272727;

    --accent: #b8a98a;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);

    font-family: "DM Sans", Arial, sans-serif;

    line-height: 1.5;

    overflow-x: hidden;

    transition:
        background-color .35s ease,
        color .35s ease;
}

body,
button,
input,
textarea,
select {
    font-family: "DM Sans", Arial, sans-serif;
}

html[dir="rtl"] body {
    font-family: "Noto Kufi Arabic", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

img,
video {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
}

.section {
    padding: 140px 0;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    border-bottom: 1px solid transparent;

    transition:
        background-color .35s ease,
        border-color .35s ease,
        backdrop-filter .35s ease;
}

.site-header.scrolled {
    background: color-mix(
        in srgb,
        var(--bg) 82%,
        transparent
    );

    backdrop-filter: blur(18px);

    border-color: var(--border);
}

.nav-container {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    font-weight: 700;

    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border: 1px solid var(--text);

    font-size: 10px;
    letter-spacing: -.04em;

    transition: var(--transition);
}

.brand-name {
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    letter-spacing: -.03em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-link {
    position: relative;

    color: var(--text-soft);

    font-size: 13px;
    font-weight: 500;

    transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: var(--text);

    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-btn,
.theme-btn {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);

    font-size: 11px;

    transition: var(--transition);
}

.language-btn:hover,
.theme-btn:hover {
    border-color: var(--text);
    background: var(--surface-2);
}

.theme-icon {
    font-size: 16px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 11px 17px;

    background: var(--text);
    color: var(--bg);

    font-size: 12px;
    font-weight: 600;

    transition: var(--transition);
}

.nav-cta:hover {
    transform: translateY(-2px);
}

.arrow {
    font-size: 15px;
    line-height: 1;
}

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid var(--border);

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 17px;
    height: 1px;
    background: var(--text);

    transition: var(--transition);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 100svh;

    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;

    padding-top: 100px;
}

.hero-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            to right,
            color-mix(in srgb, var(--text) 5%, transparent) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            color-mix(in srgb, var(--text) 5%, transparent) 1px,
            transparent 1px
        );

    background-size: 80px 80px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 85%
    );

    opacity: .4;
}

.hero-glow {
    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(100px);

    pointer-events: none;

    opacity: .12;
}

.hero-glow-one {
    top: 10%;
    left: -180px;

    background: var(--accent);
}

.hero-glow-two {
    right: -200px;
    bottom: -150px;

    background: #777;
}

.hero-container {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1.05fr .95fr;

    align-items: center;

    gap: 80px;
}

.hero-content {
    max-width: 760px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 28px;

    color: var(--text-soft);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: .14em;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--accent);
}

.hero h1 {
    max-width: 900px;

    font-family: "Manrope", sans-serif;

    font-size: clamp(58px, 8vw, 120px);

    line-height: .92;

    letter-spacing: -.075em;

    font-weight: 700;
}

.hero-title-outline {
    display: block;

    color: transparent;

    -webkit-text-stroke: 1px var(--text);
}

.hero-description {
    max-width: 580px;

    margin-top: 34px;

    color: var(--text-soft);

    font-size: 16px;

    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 38px;
}

.btn {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 0 22px;

    font-size: 12px;
    font-weight: 600;

    transition: var(--transition);
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.btn-secondary {
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-2);
    border-color: var(--text);
}


/* =========================================================
   HERO VISUAL
========================================================= */

.hero-visual {
    position: relative;

    min-height: 560px;

    display: grid;
    place-items: center;
}

.hero-card {
    position: relative;

    width: min(100%, 440px);
    aspect-ratio: 4 / 5;

    border: 1px solid var(--border);

    background:
        radial-gradient(
            circle at 50% 40%,
            color-mix(in srgb, var(--accent) 15%, transparent),
            transparent 42%
        ),
        var(--surface);

    box-shadow:
        0 30px 100px rgba(0, 0, 0, .08);

    overflow: hidden;
}

body.dark .hero-card {
    box-shadow:
        0 30px 100px rgba(0, 0, 0, .4);
}

.hero-card::before {
    content: "";

    position: absolute;
    inset: 12%;

    border: 1px solid var(--border);

    border-radius: 50%;

    animation: rotate 20s linear infinite;
}

.hero-card::after {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            color-mix(in srgb, var(--accent) 35%, transparent),
            transparent 70%
        );

    filter: blur(12px);
}

.hero-card-top,
.hero-card-bottom {
    position: absolute;

    left: 24px;
    right: 24px;

    display: flex;
    justify-content: space-between;

    color: var(--text-muted);

    font-size: 9px;
    letter-spacing: .14em;
}

.hero-card-top {
    top: 22px;
}

.hero-card-bottom {
    bottom: 22px;
}

.hero-card-center {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    z-index: 2;
}

.hero-card-word {
    font-family: "Manrope", sans-serif;

    font-size: clamp(24px, 4vw, 44px);

    font-weight: 700;

    line-height: 1;

    letter-spacing: -.07em;
}

.hero-card-word.muted {
    color: var(--text-muted);
}

.floating-label {
    position: absolute;

    padding: 9px 12px;

    border: 1px solid var(--border);

    background: color-mix(
        in srgb,
        var(--surface) 80%,
        transparent
    );

    backdrop-filter: blur(12px);

    font-size: 9px;
    letter-spacing: .12em;

    z-index: 5;

    animation: floating 5s ease-in-out infinite;
}

.floating-label-one {
    top: 14%;
    right: 4%;
}

.floating-label-two {
    bottom: 20%;
    left: 2%;

    animation-delay: -1.5s;
}

.floating-label-three {
    bottom: 8%;
    right: 10%;

    animation-delay: -3s;
}

.hero-orbit {
    position: absolute;

    border: 1px solid var(--border);

    border-radius: 50%;

    pointer-events: none;
}

.orbit-one {
    width: 520px;
    height: 520px;

    animation: rotate 30s linear infinite;
}

.orbit-two {
    width: 620px;
    height: 300px;

    transform: rotate(-25deg);

    animation: rotateReverse 35s linear infinite;
}


/* =========================================================
   HERO BOTTOM
========================================================= */

.hero-bottom {
    position: absolute;

    bottom: 25px;

    left: 0;

    width: 100%;

    z-index: 5;
}

.hero-bottom-inner {
    display: flex;
    align-items: center;
    gap: 15px;

    color: var(--text-muted);

    font-size: 9px;

    letter-spacing: .12em;
}

.scroll-line {
    width: 70px;
    height: 1px;

    background: var(--border);
}


/* =========================================================
   SECTIONS
========================================================= */

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--text-muted);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: .14em;
    text-transform: uppercase;
}

.section-label span:first-child {
    color: var(--accent);
}


/* =========================================================
   INTRO
========================================================= */

.intro {
    border-top: 1px solid var(--border);
}

.intro-grid {
    display: grid;
    grid-template-columns: .7fr 1.3fr;

    gap: 100px;
}

.intro-content {
    max-width: 850px;
}

.intro-content h2 {
    font-family: "Manrope", sans-serif;

    font-size: clamp(38px, 5vw, 70px);

    line-height: 1.02;

    letter-spacing: -.065em;
}

.intro-content p {
    max-width: 680px;

    margin-top: 32px;

    color: var(--text-soft);

    font-size: 17px;

    line-height: 1.8;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 32px;

    border-bottom: 1px solid var(--border);

    padding-bottom: 8px;

    font-size: 12px;
    font-weight: 600;

    transition: var(--transition);
}

.text-link:hover {
    border-color: var(--text);
    gap: 15px;
}


/* =========================================================
   SERVICES
========================================================= */

.services-preview {
    border-top: 1px solid var(--border);
}

.section-heading {
    margin-bottom: 65px;
}

.section-heading h2 {
    margin-top: 25px;

    font-family: "Manrope", sans-serif;

    font-size: clamp(44px, 6vw, 78px);

    line-height: .95;

    letter-spacing: -.07em;
}

.services-list {
    border-top: 1px solid var(--border);
}

.service-row {
    display: grid;

    grid-template-columns: 70px 1fr 50px;

    align-items: center;

    gap: 30px;

    padding: 34px 0;

    border-bottom: 1px solid var(--border);

    transition: var(--transition);
}

.service-row:hover {
    padding-left: 14px;
    padding-right: 14px;

    background: var(--surface);
}

.service-number {
    color: var(--text-muted);

    font-size: 10px;
}

.service-main {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;

    align-items: center;
}

.service-main h3 {
    font-family: "Manrope", sans-serif;

    font-size: clamp(24px, 3vw, 38px);

    letter-spacing: -.05em;
}

.service-main p {
    max-width: 470px;

    color: var(--text-soft);

    font-size: 13px;

    line-height: 1.7;
}

.service-arrow {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);

    transition: var(--transition);
}

.service-row:hover .service-arrow {
    background: var(--text);
    color: var(--bg);
}


/* =========================================================
   WORK
========================================================= */

.work-preview {
    border-top: 1px solid var(--border);
}

.work-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.work-heading .text-link {
    margin-top: 0;
}

.work-grid {
    display: grid;

    grid-template-columns: 1.2fr .8fr;

    gap: 18px;
}

.work-card {
    position: relative;

    overflow: hidden;
}

.work-card-large {
    grid-row: span 2;
}

.work-image {
    min-height: 320px;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #1a1a1a,
            #4b453c
        );
}

.work-card-large .work-image {
    min-height: 658px;
}

.work-image::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(255,255,255,.15),
            transparent 30%
        );

    transition: transform .8s cubic-bezier(.22,1,.36,1);
}

.work-image-two {
    background:
        linear-gradient(
            135deg,
            #252525,
            #77736b
        );
}

.work-image-three {
    background:
        linear-gradient(
            135deg,
            #111111,
            #303030
        );
}

.work-card:hover .work-image::before {
    transform: scale(1.15);
}

.work-overlay {
    position: absolute;

    inset: auto 24px 24px 24px;

    z-index: 2;

    display: grid;

    grid-template-columns: 1fr auto;

    gap: 5px 20px;

    align-items: end;
}

.work-overlay span:first-child {
    grid-column: 1 / -1;

    color: rgba(255,255,255,.65);

    font-size: 9px;

    letter-spacing: .12em;
}

.work-overlay h3 {
    color: white;

    font-family: "Manrope", sans-serif;

    font-size: 25px;

    letter-spacing: -.04em;
}

.work-arrow {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.4);

    color: white;
}


/* =========================================================
   STATEMENT
========================================================= */

.statement {
    border-top: 1px solid var(--border);
}

.statement-box {
    min-height: 580px;

    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    overflow: hidden;

    border: 1px solid var(--border);

    background:
        radial-gradient(
            circle at 50% 40%,
            color-mix(in srgb, var(--accent) 12%, transparent),
            transparent 45%
        ),
        var(--surface);
}

.statement-box::before,
.statement-box::after {
    content: "";

    position: absolute;

    border: 1px solid var(--border);

    border-radius: 50%;

    pointer-events: none;
}

.statement-box::before {
    width: 500px;
    height: 500px;
}

.statement-box::after {
    width: 750px;
    height: 750px;
}

.statement-small {
    position: relative;
    z-index: 2;

    margin-bottom: 25px;

    color: var(--text-muted);

    font-size: 9px;

    letter-spacing: .16em;
}

.statement-box h2 {
    position: relative;
    z-index: 2;

    font-family: "Manrope", sans-serif;

    font-size: clamp(48px, 8vw, 110px);

    line-height: .9;

    letter-spacing: -.075em;
}

.statement-box .btn {
    position: relative;
    z-index: 2;

    margin-top: 45px;
}



/* =========================================================
   REVEAL ANIMATION
========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity .8s ease,
        transform .8s cubic-bezier(.22,1,.36,1);
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes floating {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateReverse {
    from {
        transform: rotate(-25deg);
    }

    to {
        transform: rotate(335deg);
    }
}


/* =========================================================
   RTL
========================================================= */

html[dir="rtl"] .hero h1,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
    letter-spacing: 0;
}

html[dir="rtl"] .hero-description,
html[dir="rtl"] .intro-content p {
    line-height: 2;
}

html[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .service-row:hover {
    padding-left: 0;
    padding-right: 14px;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

::selection {
    background: var(--text);
    color: var(--bg);
}

:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 4px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   SERVICES PAGE
========================================================= */

.page-hero {
    padding: 170px 0 110px;
    border-bottom: 1px solid var(--border);
}

.page-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 70px;
}

.page-number {
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.page-hero-content {
    max-width: 950px;
}

.page-hero-content h1 {
    margin: 0;
    font-size: clamp(54px, 8vw, 110px);
    line-height: 0.94;
    letter-spacing: -0.055em;
    font-weight: 500;
}

.page-hero-content p {
    max-width: 620px;
    margin: 45px 0 0;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-muted);
}


/* =========================================================
   SERVICES LIST
========================================================= */

.services-list-section {
    padding: 0;
}

.service-detail {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 45px;
    padding: 90px 0;
    border-bottom: 1px solid var(--border);
}

.service-detail-number {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    padding-top: 8px;
}

.service-detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 100px;
}

.service-label {
    display: block;
    margin-bottom: 25px;
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.service-detail-heading h2 {
    margin: 0;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 500;
}

.service-detail-heading p {
    max-width: 570px;
    margin: 30px 0 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted);
}

.service-detail-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 230px;
}

.service-detail-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-detail-content li {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-soft);
}

.service-detail-content li:first-child {
    border-top: 1px solid var(--border);
}


/* IMPORTANT:
   Scoped so Services does not override Home .text-link
========================================================= */

.service-detail .text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    margin-top: 35px;
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.service-detail .text-link:hover {
    gap: 20px;
}


/* =========================================================
   PROCESS
========================================================= */

.process-section {
    padding: 150px 0;
}


/* IMPORTANT:
   Scoped so Process does not override Home .section-heading
========================================================= */

.process-section .section-heading {
    max-width: 850px;
    margin-bottom: 90px;
}

.process-section .section-heading h2 {
    margin: 25px 0 0;
    font-size: clamp(48px, 7vw, 90px);
    line-height: 0.95;
    letter-spacing: -0.055em;
    font-weight: 500;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
}

.process-item {
    min-height: 300px;
    padding: 35px 30px 35px 0;
    border-right: 1px solid var(--border);
}

.process-item:not(:first-child) {
    padding-left: 30px;
}

.process-item:last-child {
    border-right: none;
}

.process-item > span {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.12em;
}

.process-item h3 {
    margin: 65px 0 20px;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.process-item p {
    max-width: 230px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 14px;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    padding: 0 0 150px;
}

.cta-box {
    position: relative;
    overflow: hidden;
    padding: 100px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.cta-box::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -250px;
    top: -250px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(184, 169, 138, 0.13),
        transparent 65%
    );
    pointer-events: none;
}

.cta-box h2 {
    position: relative;
    z-index: 1;
    margin: 25px 0 45px;
    font-size: clamp(52px, 7vw, 95px);
    line-height: 0.93;
    letter-spacing: -0.055em;
    font-weight: 500;
}

.cta-box .btn {
    position: relative;
    z-index: 1;
}


/* =========================================================
   RTL SERVICES
========================================================= */

html[dir="rtl"] .service-detail-content li {
    text-align: right;
}

html[dir="rtl"] .service-detail {
    direction: rtl;
}

html[dir="rtl"] .service-detail-number {
    text-align: right;
}

html[dir="rtl"] .page-hero-top {
    direction: rtl;
}

html[dir="rtl"] .process-grid {
    direction: rtl;
}

html[dir="rtl"] .cta-box {
    direction: rtl;
}
/* =========================================================
   RM AGENCY — ABOUT PAGE
========================================================= */


/* =========================================================
   ABOUT INTRO
========================================================= */

.about-intro {
    padding: 140px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.35fr 1fr;
    gap: 100px;
}

.about-label {
    padding-top: 8px;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.about-content {
    max-width: 850px;
}

.about-content h2 {
    margin: 0 0 35px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1;
    letter-spacing: -0.055em;
    font-weight: 500;
}

.about-content p {
    max-width: 720px;
    margin: 0 0 22px;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
   ABOUT VALUES
========================================================= */

.about-values {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.about-value {
    min-height: 300px;
    padding: 45px;
    background: var(--bg);
    transition: transform 0.35s ease;
}

.about-value:hover {
    transform: translateY(-5px);
}

.about-value > span {
    display: block;
    margin-bottom: 65px;
    color: var(--text-soft);
    font-size: 11px;
    letter-spacing: 0.12em;
}

.about-value h3 {
    margin: 0 0 18px;
    font-family: "Manrope", sans-serif;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 500;
}

.about-value p {
    max-width: 360px;
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 14px;
}


/* =========================================================
   ABOUT STATEMENT
========================================================= */

.about-statement {
    padding: 100px 0 140px;
}

.about-statement-box {
    position: relative;
    overflow: hidden;
    padding: 90px 8%;
    border: 1px solid var(--border);
    text-align: center;
}

.about-statement-box::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.06),
        transparent 70%
    );
    pointer-events: none;
}

.about-statement-box span,
.about-statement-box h2 {
    position: relative;
    z-index: 1;
}

.about-statement-box span {
    display: block;
    margin-bottom: 30px;
    color: var(--text-soft);
    font-size: 11px;
    letter-spacing: 0.18em;
    font-weight: 600;
}

.about-statement-box h2 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(48px, 8vw, 100px);
    line-height: 0.95;
    letter-spacing: -0.07em;
    font-weight: 500;
}


/* =========================================================
   ABOUT DARK MODE
========================================================= */

body.dark .about-value {
    background: var(--bg);
}

body.dark .about-statement-box::before {
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.035),
        transparent 70%
    );
}


/* =========================================================
   ABOUT RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .about-intro {
        padding: 100px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content h2 {
        font-size: clamp(38px, 9vw, 58px);
    }

    .about-values {
        padding: 100px 0;
    }

    .about-values-grid {
        grid-template-columns: 1fr;
    }

    .about-value {
        min-height: auto;
    }

    .about-value > span {
        margin-bottom: 45px;
    }

    .about-statement {
        padding: 70px 0 100px;
    }

    .about-statement-box {
        padding: 70px 25px;
    }

}


@media (max-width: 480px) {

    .about-intro {
        padding: 80px 0;
    }

    .about-content h2 {
        font-size: 40px;
    }

    .about-content p {
        font-size: 15px;
    }

    .about-values {
        padding: 80px 0;
    }

    .about-value {
        padding: 32px;
    }

    .about-value > span {
        margin-bottom: 40px;
    }

    .about-value h3 {
        font-size: 25px;
    }

    .about-statement {
        padding: 50px 0 80px;
    }

    .about-statement-box {
        padding: 55px 20px;
    }

    .about-statement-box h2 {
        font-size: 48px;
    }

}.work-project-card {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.work-project-card.filter-hidden {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}
/* =========================================================
   RM AGENCY — WORK PAGE
========================================================= */


/* =========================================================
   WORK HERO
========================================================= */

.work-hero {
    padding-bottom: 110px;
}

.work-hero .page-hero-content {
    max-width: 1000px;
}

.work-hero .page-hero-content p {
    max-width: 650px;
}


/* =========================================================
   WORK FILTERS
========================================================= */

.work-filters-section {
    padding: 0 0 70px;
}

.work-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.work-filter {
    appearance: none;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-soft);
    padding: 11px 18px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.work-filter:hover {
    color: var(--text);
    border-color: var(--text);
    transform: translateY(-2px);
}

.work-filter.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}


/* =========================================================
   PROJECT GRID
========================================================= */

.work-projects-section {
    padding: 0 0 130px;
}

.work-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 70px 28px;
}


/* =========================================================
   PROJECT CARD
========================================================= */

.work-project-card {
    min-width: 0;
}

.work-project-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.work-project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
}

.work-project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(255, 255, 255, 0.08),
            transparent 45%
        ),
        var(--surface);
    transition:
        transform 0.6s cubic-bezier(.2,.65,.2,1),
        background 0.4s ease;
}

.work-project-placeholder::before {
    content: "";
    position: absolute;
    width: 45%;
    height: 45%;
    border: 1px solid var(--border);
    border-radius: 50%;
    opacity: 0.5;
    transition:
        transform 0.7s ease,
        opacity 0.4s ease;
}

.work-project-placeholder span {
    position: relative;
    z-index: 1;
    font-family: "Manrope", sans-serif;
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--text);
    opacity: 0.85;
}

.work-project-link:hover .work-project-placeholder {
    transform: scale(1.025);
}

.work-project-link:hover .work-project-placeholder::before {
    transform: scale(1.35);
    opacity: 0.9;
}


/* =========================================================
   PROJECT INFO
========================================================= */

.work-project-info {
    position: relative;
    padding: 24px 4px 0;
}

.work-project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.work-project-info h2 {
    margin: 0;
    padding-right: 45px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1;
    letter-spacing: -0.055em;
    font-weight: 500;
}

.work-project-info p {
    max-width: 520px;
    margin: 15px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
}

.work-project-arrow {
    position: absolute;
    top: 25px;
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 15px;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.work-project-link:hover .work-project-arrow {
    transform: translate(3px, -3px);
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}


/* =========================================================
   CTA — WORK PAGE
========================================================= */

.work-projects-section + .cta-section {
    padding-top: 0;
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark .work-project-placeholder {
    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(255, 255, 255, 0.045),
            transparent 45%
        ),
        var(--surface);
}


/* =========================================================
   WORK PAGE — TABLET
========================================================= */

@media (max-width: 800px) {

    .work-hero {
        padding-bottom: 80px;
    }

    .work-filters-section {
        padding-bottom: 55px;
    }

    .work-filters {
        gap: 8px;
    }

    .work-filter {
        padding: 10px 14px;
        font-size: 11px;
    }

    .work-projects-section {
        padding-bottom: 90px;
    }

    .work-projects-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

}


/* =========================================================
   WORK PAGE — MOBILE
========================================================= */

@media (max-width: 480px) {

    .work-hero {
        padding-bottom: 65px;
    }

    .work-filters-section {
        padding-bottom: 45px;
    }

    .work-filters {
        gap: 7px;
    }

    .work-filter {
        padding: 9px 12px;
        font-size: 10px;
    }

    .work-projects-section {
        padding-bottom: 70px;
    }

    .work-projects-grid {
        gap: 45px;
    }

    .work-project-info {
        padding-top: 19px;
    }

    .work-project-meta {
        font-size: 9px;
    }

    .work-project-info h2 {
        font-size: 27px;
    }

    .work-project-info p {
        font-size: 13px;
    }

    .work-project-arrow {
        width: 30px;
        height: 30px;
        top: 20px;
    }

}
/* =========================================================
   RM AGENCY — CONTACT PAGE
========================================================= */


/* =========================================================
   CONTACT HERO
========================================================= */

.contact-hero {
    padding-bottom: 110px;
}


/* =========================================================
   CONTACT SECTION
========================================================= */

.contact-section {
    padding: 130px 0 150px;
    border-top: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 120px;
    align-items: start;
}


/* =========================================================
   CONTACT INFO
========================================================= */

.contact-info {
    max-width: 520px;
}

.contact-label {
    display: block;
    margin-bottom: 28px;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-info h2 {
    margin: 0 0 28px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 500;
}

.contact-info > p {
    max-width: 500px;
    margin: 0;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   CONTACT LINKS
========================================================= */

.contact-links {
    display: flex;
    flex-direction: column;
    margin-top: 55px;
    border-top: 1px solid var(--border);
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
    transition:
        padding 0.3s ease,
        color 0.3s ease;
}

.contact-link .arrow {
    transition: transform 0.3s ease;
}

.contact-link:hover {
    padding-left: 8px;
}

.contact-link:hover .arrow {
    transform: translate(4px, -4px);
}


/* =========================================================
   CONTACT FORM
========================================================= */

.contact-form {
    width: 100%;
    max-width: 760px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
}

.form-group label {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    transition:
        border-color 0.3s ease,
        background 0.3s ease;
}

.form-group input,
.form-group select {
    min-height: 58px;
    padding: 0 18px;
}

.form-group textarea {
    min-height: 180px;
    padding: 18px;
    resize: vertical;
    line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-soft);
    opacity: 0.7;
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--text);
}

.form-group select option {
    background: var(--bg);
    color: var(--text);
}


/* =========================================================
   FORM SUBMIT
========================================================= */

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 58px;
    padding: 0 30px;
    border: 1px solid var(--text);
    background: var(--text);
    color: var(--bg);
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        gap 0.3s ease;
}

.form-submit:hover {
    gap: 20px;
    background: transparent;
    color: var(--text);
}

.form-submit .arrow {
    font-size: 16px;
}


/* =========================================================
   CONTACT DARK MODE
========================================================= */

body.dark .form-group input,
body.dark .form-group select,
body.dark .form-group textarea {
    background: transparent;
}

body.dark .form-group select option {
    background: var(--bg);
    color: var(--text);
}


/* =========================================================
   CONTACT RTL
========================================================= */

body.rtl .contact-link:hover {
    padding-left: 0;
    padding-right: 8px;
}

body.rtl .contact-link:hover .arrow {
    transform: translate(-4px, -4px);
}


/* =========================================================
   CONTACT RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .contact-info {
        max-width: 700px;
    }

    .contact-form {
        max-width: 100%;
    }

}


@media (max-width: 800px) {

    .contact-hero {
        padding-bottom: 80px;
    }

    .contact-section {
        padding: 100px 0 110px;
    }

    .contact-grid {
        gap: 65px;
    }

    .contact-info h2 {
        font-size: clamp(40px, 9vw, 58px);
    }

}


@media (max-width: 600px) {

    .contact-section {
        padding: 80px 0 90px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-info h2 {
        font-size: 42px;
    }

    .contact-info > p {
        font-size: 15px;
    }

    .contact-links {
        margin-top: 40px;
    }

    .form-group {
        margin-bottom: 24px;
    }

    .form-group input,
    .form-group select {
        min-height: 54px;
    }

    .form-group textarea {
        min-height: 150px;
    }

    .form-submit {
        width: 100%;
    }

}


@media (max-width: 480px) {

    .contact-section {
        padding: 70px 0 80px;
    }

    .contact-info h2 {
        font-size: 38px;
    }

    .contact-link {
        font-size: 13px;
    }

    .form-submit {
        min-height: 56px;
        padding: 0 22px;
    }
    }
    
/* =========================================================
   WORK DETAIL PAGE
========================================================= */

[hidden] {
    display: none !important;
}

/* Hide the page until Supabase content is ready (no flash of placeholder text) */

main {
    transition: opacity 0.4s ease;
}

main.is-loading {
    opacity: 0;
}

.work-detail-hero {
    padding: 150px 0 120px;
    border-bottom: 1px solid var(--border);
}

.work-detail-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 100px;
}

.work-detail-number,
.work-detail-category,
.work-detail-label,
.work-detail-cta-eyebrow {
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.work-detail-hero-content {
    max-width: 1100px;
}

.work-detail-hero-content h1 {
    margin: 0 0 35px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(58px, 11vw, 145px);
    line-height: 0.88;
    letter-spacing: -0.08em;
    font-weight: 500;
}

.work-detail-description {
    max-width: 720px;
    margin: 0;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.75;
}


/* =========================================================
   COVER
========================================================= */

.work-detail-cover {
    padding: 80px 0 140px;
    border-bottom: 1px solid var(--border);
}

.work-detail-cover-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--surface);
}

.work-detail-cover-media img,
.work-detail-cover-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   EMPTY / ERROR STATES
========================================================= */

.work-detail-media-empty,
.work-detail-gallery-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 160px;
    padding: 40px 20px;
    border: 1px dashed var(--border);
    color: var(--text-soft);
    font-size: 13px;
    text-align: center;
}

.work-detail-gallery-empty {
    grid-column: 1 / -1;
}

.work-detail-not-found {
    min-height: 70vh;
    padding: 200px 0 120px;
}

.work-detail-not-found h1 {
    margin: 20px 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(48px, 8vw, 100px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    font-weight: 500;
}

.work-detail-not-found p {
    max-width: 560px;
    margin: 0 0 30px;
    color: var(--text-soft);
    line-height: 1.7;
}

.work-detail-not-found a {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}


/* =========================================================
   INFORMATION
========================================================= */

.work-detail-info-section {
    padding: 140px 0;
    border-bottom: 1px solid var(--border);
}

.work-detail-info-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 100px;
}

.work-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.work-detail-meta-item {
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.work-detail-meta-item span {
    display: block;
    margin-bottom: 10px;
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.work-detail-meta-item strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.work-detail-overview {
    max-width: 850px;
}

.work-detail-label {
    display: block;
    margin-bottom: 25px;
}

.work-detail-overview h2 {
    margin: 0 0 30px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.065em;
    font-weight: 500;
}

.work-detail-overview-text {
    max-width: 700px;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.85;
}

.work-detail-overview-text p {
    margin: 0 0 20px;
}

.work-detail-overview-text p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   GALLERY
========================================================= */

.work-detail-gallery-section {
    padding: 140px 0;
    border-bottom: 1px solid var(--border);
}

.work-detail-section-heading {
    max-width: 900px;
    margin-bottom: 75px;
}

.work-detail-section-heading h2 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.065em;
    font-weight: 500;
}

/* Gallery layout */
.work-detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;

    width: 100%;
    max-width: 900px;
    margin: 0 auto;

    align-items: start;
}

/* Each image card */
.work-detail-gallery-item {
    position: relative;

    width: 100%;
    min-width: 0;
    margin: 0;

    padding: 1px;

    background: #464D56;

    border: 1px solid rgba(0, 0, 0, 0.12);

    box-sizing: border-box;

    overflow: hidden;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

/* Image / video */
.work-detail-gallery-item img,
.work-detail-gallery-item video {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;

    aspect-ratio: auto;

    object-fit: contain;

    background: var(--surface);

    transition: transform 0.5s ease;
}

/* Hover */
.work-detail-gallery-item:hover {
    border-color: rgba(0, 0, 0, 0.22);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.07);

    transform: translateY(-2px);
}

.work-detail-gallery-item:hover img {
    transform: scale(1.015);
}

/* Neutralize old JS size classes */
.work-detail-gallery-item.gallery-large,
.work-detail-gallery-item.gallery-wide,
.work-detail-gallery-item.gallery-small,
.work-detail-gallery-item.large {
    grid-column: auto;
}

/* Empty gallery */
.work-detail-gallery-empty {
    grid-column: 1 / -1;
}


/* =========================================================
   MOBILE GALLERY
========================================================= */

@media (max-width: 700px) {

    .work-detail-gallery-section {
        padding: 80px 0;
    }

    .work-detail-gallery {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 100%;
    }

    .work-detail-gallery-item {
        width: 100%;
        padding: 6px;
    }

    .work-detail-gallery-item img,
    .work-detail-gallery-item video {
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        object-fit: contain;
    }
}
   
/* =========================================================
   DETAILS
========================================================= */

.work-detail-details-section {
    padding: 140px 0;
    border-bottom: 1px solid var(--border);
}

.work-detail-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px;
}

.work-detail-detail {
    max-width: 650px;
}

.work-detail-detail h3 {
    margin: 0 0 25px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1;
    letter-spacing: -0.055em;
    font-weight: 500;
}

.work-detail-detail > div {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.85;
}

.work-detail-detail > div p {
    margin: 0 0 18px;
}

.work-detail-detail > div p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   BACK TO WORK
========================================================= */

.work-detail-navigation {
    padding: 55px 0;
    border-bottom: 1px solid var(--border);
}

.work-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.work-detail-back:hover {
    gap: 18px;
}


/* =========================================================
   CTA
========================================================= */

.work-detail-cta {
    padding: 100px 0 140px;
}

.work-detail-cta-box {
    position: relative;
    overflow: hidden;
    padding: 110px 8%;
    border: 1px solid var(--border);
    text-align: center;
}

.work-detail-cta-box::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 520px;
    height: 520px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.055),
        transparent 70%
    );
    pointer-events: none;
}

.work-detail-cta-eyebrow,
.work-detail-cta-box h2,
.work-detail-cta-button {
    position: relative;
    z-index: 1;
}

.work-detail-cta-eyebrow {
    display: block;
    margin-bottom: 30px;
}

.work-detail-cta-box h2 {
    max-width: 950px;
    margin: 0 auto;
    font-family: "Manrope", sans-serif;
    font-size: clamp(48px, 8vw, 100px);
    line-height: 0.92;
    letter-spacing: -0.07em;
    font-weight: 500;
}

.work-detail-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 58px;
    margin-top: 45px;
    padding: 0 30px;
    border: 1px solid var(--text);
    background: var(--text);
    color: var(--bg);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition:
        gap 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease;
}

.work-detail-cta-button:hover {
    gap: 20px;
    background: transparent;
    color: var(--text);
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark .work-detail-cta-box::before {
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.035),
        transparent 70%
    );
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .work-detail-hero {
        padding: 120px 0 90px;
    }

    .work-detail-top {
        margin-bottom: 75px;
    }

    .work-detail-cover {
        padding: 60px 0 100px;
    }

    .work-detail-info-section,
    .work-detail-gallery-section,
    .work-detail-details-section {
        padding: 100px 0;
    }

    .work-detail-info-grid {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .work-detail-details-grid {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .work-detail-cta {
        padding: 80px 0 100px;
    }

}


@media (max-width: 700px) {

    .work-detail-hero {
        padding: 100px 0 80px;
    }

    .work-detail-top {
        margin-bottom: 60px;
    }

    .work-detail-hero-content h1 {
        font-size: clamp(52px, 14vw, 82px);
    }

    .work-detail-description {
        font-size: 16px;
    }

    .work-detail-cover {
        padding: 45px 0 80px;
    }

    .work-detail-info-section,
    .work-detail-gallery-section,
    .work-detail-details-section {
        padding: 80px 0;
    }

    .work-detail-overview h2,
    .work-detail-section-heading h2 {
        font-size: clamp(40px, 11vw, 58px);
    }

    
    }

    .work-detail-details-grid {
        gap: 60px;
    }

    .work-detail-detail h3 {
        font-size: 34px;
    }

    .work-detail-cta {
        padding: 60px 0 80px;
    }

    .work-detail-cta-box {
        padding: 75px 25px;
    }

    .work-detail-cta-box h2 {
        font-size: clamp(46px, 13vw, 64px);
    }




@media (max-width: 480px) {

    .work-detail-hero {
        padding: 85px 0 70px;
    }

    .work-detail-top {
        margin-bottom: 50px;
    }

    .work-detail-hero-content h1 {
        font-size: 50px;
    }

    .work-detail-description {
        font-size: 15px;
        line-height: 1.7;
    }

    .work-detail-cover {
        padding: 35px 0 65px;
    }

    .work-detail-info-section,
    .work-detail-gallery-section,
    .work-detail-details-section {
        padding: 65px 0;
    }

    .work-detail-meta {
        gap: 25px;
    }

    .work-detail-overview h2,
    .work-detail-section-heading h2 {
        font-size: 40px;
    }

    .work-detail-detail h3 {
        font-size: 30px;
    }

    .work-detail-cta-box {
        padding: 55px 20px;
    }

    .work-detail-cta-box h2 {
        font-size: 46px;
    }

    .work-detail-cta-button {
        width: 100%;
    }

}
/* Logo from Supabase (navbar + footer) */
.brand .brand-mark {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}

.brand .brand-mark img {
    display: block !important;
    width: auto !important;
    height: 60px !important;
    max-width: 160px !important;
    object-fit: contain !important;
}
/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 80px 0 30px;

    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;

    grid-template-columns: 1fr 1.4fr;

    gap: 100px;

    padding-bottom: 70px;
}

.footer-brand p {
    max-width: 330px;

    margin-top: 22px;

    color: var(--text-soft);

    font-size: 13px;

    line-height: 1.7;
}

.footer-links {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 50px;
}

.footer-column {
    display: flex;
    flex-direction: column;

    gap: 13px;

    min-width: 0;
}

.footer-title {
    margin-bottom: 12px;

    color: var(--text-muted);

    font-size: 9px;

    letter-spacing: .14em;

    text-transform: uppercase;
}

.footer-column a {
    width: fit-content;

    max-width: 100%;

    overflow-wrap: anywhere;

    font-size: 12px;

    transition: color var(--transition);
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 14px;

    padding-top: 25px;

    border-top: 1px solid var(--border);

    color: var(--text-muted);

    font-size: 10px;
}

.footer-bottom div {
    display: flex;
    gap: 20px;
}

.footer-bottom a:hover {
    color: var(--text);
}


/* ---------- Footer: tablet ---------- */

@media (max-width: 900px) {

    .footer-top {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-brand p {
        max-width: 420px;
    }

}


/* ---------- Footer: mobile ---------- */

@media (max-width: 600px) {

    .site-footer {
        padding: 60px 0 25px;
    }

    .footer-top {
        gap: 45px;

        padding-bottom: 50px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;

        gap: 40px 30px;
    }

    /* Explore takes the full row, Contact and Social sit side by side */
    .footer-links .footer-column:first-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

}


/* ---------- Footer: RTL ---------- */

html[dir="rtl"] .footer-title {
    letter-spacing: 0;
}

html[dir="rtl"] .footer-brand p {
    line-height: 2;
}
/* =========================================================
   WORK PAGE — MASONRY (cards follow media size)
========================================================= */

.work-projects-grid.is-masonry {
    grid-auto-rows: 8px;
    row-gap: 0;
    align-items: start;
}

.work-projects-grid.is-masonry .work-project-card {
    padding-bottom: 70px;
}

@media (max-width: 800px) {
    .work-projects-grid.is-masonry .work-project-card {
        padding-bottom: 55px;
    }
}

@media (max-width: 480px) {
    .work-projects-grid.is-masonry .work-project-card {
        padding-bottom: 45px;
    }
}/* =========================================================
   HOME — WORK CARDS: MASONRY (cards follow media size)
========================================================= */

.work-grid.is-masonry {
    grid-auto-rows: 8px;
    row-gap: 0;
    align-items: start;
}

/* The card height now comes from the media ratio, not a fixed min-height */
.work-grid.is-masonry .work-card-large {
    grid-row: auto;
}

.work-grid.is-masonry .work-image,
.work-grid.is-masonry .work-card-large .work-image {
    min-height: 0;
    aspect-ratio: 16 / 10;   /* default until the real size is known */
}

.work-grid.is-masonry .work-card-large .work-image {
    aspect-ratio: 5 / 4;
}.page-hero-top {
    justify-content: flex-start;
    gap: 16px;
}

.page-hero-label,
.section-eyebrow,
.contact-label,
.cta-eyebrow {
    text-align: start;   /* يسار في EN/FR، يمين في AR تلقائيًا */
}

.section-heading {
    align-items: flex-start;
    text-align: start;
}