/* October client review: warm ivory, charcoal, and a quiet bronze accent. */
:root{--ground:#f4f1ea;--ink:#282c2d;--muted:#686a67;--line:#282c2d29;--green:#282c2d;--deep:#282c2d;--hero-transition-color:#f4f1ea;--bronze:#91745a}
body{background:var(--ground);color:var(--ink)}
.header,.header.is-scrolled{height:82px}.header.is-scrolled,.header.menu-open{background:var(--ground);color:var(--ink)}
.intro-backdrop{background:var(--ground)}
.hero-transition-mask{background:var(--ground);mask:none!important;-webkit-mask:none!important;opacity:0;pointer-events:none;will-change:opacity}
.menu{background:var(--ground);color:var(--ink)}
.compact-intro{padding:76px 0 82px}.compact-intro>.wrap{display:grid;grid-template-columns:1.05fr 1fr;gap:10%;align-items:center}
.intro-heading .section-label{font-size:11px;letter-spacing:.12em;text-transform:uppercase;margin-bottom:25px;color:var(--muted)}
.intro-heading h2{font:400 clamp(40px,4.4vw,70px)/1.08 var(--display);letter-spacing:-.045em;margin:0}
.intro-copy>p{font-size:15px;line-height:1.8;margin:0 0 22px;max-width:57ch;color:var(--muted)}
.intro-copy .text-action{font-size:12px}
.direction-gallery{background:var(--ink)}.direction-inner{position:relative;min-height:700px;width:100%;height:100%;isolation:isolate;display:grid;place-items:center}
.direction-scrim,[dir=rtl] .direction-scrim{background:linear-gradient(0deg,#171b21a6,#171b2145 48%,#171b2160)}
.direction-image img{object-position:center;transform:none!important}
.direction-copy,.has-motion .direction-copy{max-width:100%;text-align:center;padding:80px 8% 110px;margin:auto;position:relative}
.direction-eyebrow{font-size:11px;letter-spacing:.14em;text-transform:uppercase;margin-bottom:24px}
.direction-copy h2{font-size:clamp(72px,10vw,160px);line-height:1;margin-bottom:30px;font-weight:400}
.direction-body{font-size:clamp(19px,2vw,30px);line-height:1.5;max-width:43ch;margin:0 auto;letter-spacing:-.015em;text-wrap:pretty}
.has-motion .direction-gallery{height:260svh}.has-motion .direction-stage{height:calc(100svh - 82px);min-height:0;top:82px}
.has-motion .direction-slide{display:block;will-change:transform;backface-visibility:hidden}.has-motion .direction-inner{position:absolute;inset:0;min-height:0;will-change:transform;backface-visibility:hidden}
.has-motion .direction-slide-1{transform:translate3d(0,100%,0)}.has-motion .direction-slide-1 .direction-inner{transform:translate3d(0,-100%,0)}
.has-motion .direction-slide-1 .direction-image,.has-motion .direction-slide-1 .direction-scrim{mask:none;-webkit-mask:none}
.direction-footer{font-size:12px}.direction-image-note{font-size:10px}.portfolio{background:var(--ground)}
.partner-note{background:#282c2df5}.people{background:#e8e4dc}.person-image{background:#dedbd3}
footer{background:var(--ink);color:var(--ground)}.footer-bottom{border-color:#f4f1ea33}
.inquiry-section{padding:90px 0 110px;background:#e8e4dc}.inquiry-layout{display:grid;grid-template-columns:1fr 1.15fr;gap:10%}.inquiry-intro h2{font:400 clamp(48px,5.5vw,88px)/1.02 var(--display);letter-spacing:-.04em;max-width:9ch;margin:25px 0}.inquiry-intro>p:last-child{font-size:14px;line-height:1.8;color:var(--muted);max-width:35ch}
.inquiry-form{display:grid;grid-template-columns:1fr 1fr;gap:26px 24px}.inquiry-field{display:flex;flex-direction:column;gap:10px;font-size:12px}.inquiry-wide{grid-column:1/-1}.inquiry-field input,.inquiry-field select,.inquiry-field textarea{width:100%;border:0;border-bottom:1px solid #282c2d55;background:transparent;padding:12px 0;color:var(--ink);border-radius:0;font:inherit;font-size:15px;min-height:48px}.inquiry-field textarea{resize:vertical;min-height:104px}.inquiry-field :focus{outline:2px solid var(--bronze);outline-offset:5px}.inquiry-submit{display:flex;justify-content:space-between;align-items:center;gap:24px;grid-column:1/-1}.inquiry-submit p{font-size:11px;line-height:1.6;color:var(--muted);max-width:31ch}.inquiry-submit button{padding:17px 24px;background:var(--ink);color:var(--ground);font-size:12px;display:flex;gap:25px;white-space:nowrap;transition:background .3s}.inquiry-submit button:hover{background:#68584a}.inquiry-status{grid-column:1/-1;font-size:12px;line-height:1.6;margin:0}
#page-dissolve{position:fixed;inset:0;z-index:10000;background:#f4f1ea;pointer-events:none;display:none;will-change:mask-image}.page-arriving #page-dissolve{display:block}.page-arriving #brand-intro{display:none!important}.page-arriving .brand,.page-arriving .header-wordmark{opacity:1!important}
[dir=rtl] .intro-heading h2,[dir=rtl] .inquiry-intro h2{font-family:RealityArabic,sans-serif;letter-spacing:0;line-height:1.4}
@media(max-width:760px){.header,.header.is-scrolled{height:72px}.compact-intro{padding:44px 0 50px}.compact-intro>.wrap{grid-template-columns:1fr;gap:24px}.intro-heading .section-label{margin-bottom:18px;font-size:10px}.intro-heading h2{font-size:43px}.intro-copy>p{font-size:13px;line-height:1.75;margin-bottom:18px}.has-motion .direction-stage{height:calc(100svh - 72px);min-height:0;top:72px}.has-motion .direction-gallery{height:250svh}.direction-inner{min-height:600px}.direction-copy,.has-motion .direction-copy{padding:60px 25px 110px}.direction-copy h2{font-size:70px;margin-bottom:25px}.direction-eyebrow{font-size:9px;letter-spacing:.1em;margin-bottom:23px}.direction-body{font-size:21px;line-height:1.5;max-width:29ch}.direction-footer{bottom:23px}.direction-image-note{font-size:9px;top:22px}.inquiry-section{padding:60px 0 70px}.inquiry-layout{grid-template-columns:1fr;gap:40px}.inquiry-intro h2{font-size:56px;max-width:none}.inquiry-intro>p:last-child{max-width:none}.inquiry-form{gap:24px 18px}.inquiry-submit{align-items:flex-start;flex-direction:column;gap:15px}.inquiry-submit p{max-width:none}.inquiry-submit button{width:100%;justify-content:space-between}}
@media(max-width:760px) and (max-height:680px){.direction-copy h2{font-size:54px;margin-bottom:18px}.direction-body{font-size:18px}.direction-eyebrow{margin-bottom:14px}.direction-copy,.has-motion .direction-copy{padding:54px 25px 92px}}
@media(prefers-reduced-motion:reduce){.direction-slide,.direction-inner{transform:none!important}.direction-copy{padding:100px 7%}.direction-inner{min-height:0}.hero-transition-mask,#page-dissolve{display:none!important}}
.inquiry-result-actions{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:20px}.inquiry-result[hidden]{display:none}.inquiry-result textarea{font-size:13px;line-height:1.6;min-height:200px}
.intro-heading h2 em{font-weight:400}.menu p{color:var(--muted)}.reading-progress span{background:var(--bronze)}::selection{background:#c7b49f;color:#282c2d}.header-map{border-color:#ffffff70}.header.menu-open .header-map{border-color:var(--line)}.nav-link:hover{translate:none}
@media(max-height:520px) and (prefers-reduced-motion:no-preference){.direction-copy,.has-motion .direction-copy{padding:30px 8% 80px}.direction-eyebrow{display:none}.direction-copy h2,[dir=rtl] .direction-copy h2{font-size:46px;line-height:1.1;margin-bottom:15px}.direction-body,[dir=rtl] .direction-body{font-size:17px;line-height:1.45;max-width:50ch}.direction-image-note{top:14px;font-size:8px}.direction-footer{bottom:15px}}
.gallery-photo-overlay{background:linear-gradient(180deg,#282c2d10 10%,#282c2d50 40%,#282c2df2)}
@media(max-width:760px){.sticky-project-mobile .gallery-photo-overlay{background:#282c2d}.portfolio-heading>p>.text-action{display:flex;width:max-content;margin-top:18px}}
html{scroll-padding-top:82px}.header{top:0}@media(max-width:760px){html{scroll-padding-top:72px}}

/* Keep the same header visible throughout the document handoff. */
#page-dissolve{top:82px;contain:paint}
.page-leaving .header,.page-arriving .header{background:var(--ground);color:var(--ink)}
.page-leaving .header-map,.page-arriving .header-map{border-color:var(--line)}
.page-leaving .header-wordmark,.page-leaving .brand{opacity:1!important}
@media(max-width:760px){#page-dissolve{top:72px}}

/* Loading feedback persists throughout the cross-origin map handoff. */
.transition-loader{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}.map-loading-logo{display:block;width:196px;height:196px;overflow:visible}.map-loading-part{opacity:0;animation:reality-logo-loading 3.2s cubic-bezier(.785,.135,.15,.86) infinite;will-change:transform,opacity}.transition-loader-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@keyframes reality-logo-loading{0%,8%{opacity:0;transform:translateY(var(--part-offset))}34%,62%{opacity:1;transform:translateY(0)}86%,100%{opacity:0;transform:translateY(var(--part-offset))}}@media(max-width:760px){.map-loading-logo{width:152px;height:152px}}@media(prefers-reduced-motion:reduce){.map-loading-part{animation:none;opacity:1;transform:none;will-change:auto}}

/* Original photo colors softened into the beige palette, with dark typography. */
.direction-scrim,[dir=rtl] .direction-scrim{background:rgba(244,241,234,.78)}
.direction-image img{filter:none}
.direction-copy,.direction-copy h2,.direction-body,.direction-eyebrow,.direction-footer,.direction-image-note{color:#171918}
.direction-copy h2,.direction-body{text-shadow:none}
.direction-eyebrow,.direction-image-note{opacity:.85}
.direction-controls button{color:inherit}

/* Feathered translucent beige brush behind the message, without a solid panel. */
.direction-copy{isolation:isolate}
.direction-copy::before{content:'';position:absolute;inset:9% -2% 14%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 49% 46%,rgba(244,241,234,.64) 0%,rgba(244,241,234,.48) 38%,rgba(244,241,234,.22) 58%,rgba(244,241,234,0) 76%);filter:blur(14px)}
@media(max-width:760px){.direction-copy::before{inset:9% -8% 13%;filter:blur(10px)}}

.direction-gallery[data-transition-mode=text] .direction-slide-1 .direction-image,.direction-gallery[data-transition-mode=text] .direction-slide-1 .direction-scrim{visibility:hidden}
.has-motion .direction-gallery[data-transition-mode=text] .direction-copy{will-change:transform,opacity}
/* Static/reduced-motion chapters share the first photograph too. */
body:not(.has-motion) .direction-gallery[data-transition-mode=text] .direction-slide-1 .direction-image{visibility:visible;background-image:url('/assets/madini-updated-04-v35.webp');background-size:cover;background-position:center}
body:not(.has-motion) .direction-gallery[data-transition-mode=text] .direction-slide-1 .direction-image img{visibility:hidden}
body:not(.has-motion) .direction-gallery[data-transition-mode=text] .direction-slide-1 .direction-scrim{visibility:visible}


/* Compact text-only company introduction. */
.about-showcase{min-height:0;padding:clamp(64px,7vw,110px) 0;position:relative;overflow:hidden}
.about-showcase-layout{width:90%;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(40px,7vw,112px);align-items:center;min-height:0}
.about-showcase h2{font:400 clamp(72px,7.2vw,128px)/.9 var(--display);letter-spacing:-.055em;margin:0}
.about-showcase h2 em{font-weight:400;color:#07866f}
.about-showcase-copy{width:100%;max-width:680px}
.about-showcase-copy>p{font-size:clamp(17px,1.45vw,22px);line-height:1.65;letter-spacing:-.015em;margin:0 0 26px;color:var(--muted);text-wrap:pretty}
.about-showcase .text-action{font-size:14px}
[dir=rtl] .about-showcase h2{font-family:RealityArabic,sans-serif;letter-spacing:0;line-height:1.1}
@media(max-width:760px){.about-showcase{padding:52px 0 58px}.about-showcase-layout{width:calc(100% - 44px);grid-template-columns:1fr;gap:30px}.about-showcase h2{font-size:clamp(72px,18vw,110px);line-height:.92}.about-showcase-copy>p{font-size:16px;line-height:1.65;margin-bottom:22px}.about-showcase .text-action{font-size:12px}}

/* Leave room inside the reveal mask for italic overshoots and the y descender. */
.about-showcase .about-reveal-mask{padding:.12em .08em .26em;margin:-.12em -.08em -.26em}

/* The former map preview's metallic animated button, at the existing hero dimensions. */
.hero-map-button{position:relative;isolation:isolate;color:#f7f2e6;background:linear-gradient(110deg,#c8bea54a,#68675280 45%,#292e28ad);backdrop-filter:blur(15px);box-shadow:inset 0 0 0 1px #e6cf9eb3,inset 0 1px 2px #fff5,inset 0 -5px 15px #1115,0 0 23px #e6bf6e29,0 10px 35px #0005;transition:box-shadow .5s,color .5s}
.hero-map-button>span{position:relative;z-index:1}
.hero-map-button:before{content:'';position:absolute;inset:0;border-radius:inherit;background:linear-gradient(110deg,rgba(225,195,132,.32),rgba(236,218,175,.18));clip-path:inset(0 100% 0 0);transition:clip-path .85s cubic-bezier(.65,0,.35,1);pointer-events:none}
.hero-map-button:after{content:'';position:absolute;inset:-5px;border:1px solid #d6bd7c63;border-radius:inherit;box-shadow:0 0 4px #efcc8c4d,0 0 18px #dab36d33;pointer-events:none}
.hero-map-button:hover,.hero-map-button:focus-visible{color:#f7f2e6;background:linear-gradient(110deg,#c8bea54a,#68675280 45%,#292e28ad);box-shadow:inset 0 0 0 1px #e6cf9eb3,inset 0 1px 2px #fff6,0 0 30px #e8c57645,0 12px 38px #0006}
.hero-map-button:hover:before,.hero-map-button:focus-visible:before{clip-path:inset(0 0 0 0)}
.hero-map-button:focus-visible{outline:2px solid #f4d89d;outline-offset:9px}
.hero-map-button .hero-map-arrow,.hero-map-button:hover .hero-map-arrow,.hero-map-button:focus-visible .hero-map-arrow{color:#493a22;background:radial-gradient(circle at 32% 22%,#f5e4b8,#bea578 60%,#8d734d);box-shadow:inset 0 0 0 1px #f7e5b3a6,inset 0 1px 2px #fff8,0 0 17px #e8ca805c}
.hero-map-rim{position:absolute;inset:-2px;width:calc(100% + 4px);height:calc(100% + 4px);overflow:visible;pointer-events:none;z-index:1;border-radius:inherit}
.hero-map-rim rect{fill:none;vector-effect:non-scaling-stroke}.hero-map-rim-track{stroke:#ebd29e5c;stroke-width:1}.hero-map-rim-runner{stroke:#fff0bf;stroke-width:2;stroke-linecap:round;stroke-dasharray:12 88;filter:drop-shadow(0 0 4px #eacb89) drop-shadow(0 0 8px #d4af66);animation:hero-rim-orbit 4.8s linear infinite}
@keyframes hero-rim-orbit{from{stroke-dashoffset:0}to{stroke-dashoffset:-100}}
[dir=rtl] .hero-map-button:before{clip-path:inset(0 0 0 100%)}[dir=rtl] .hero-map-button:hover:before,[dir=rtl] .hero-map-button:focus-visible:before{clip-path:inset(0 0 0 0)}
@media(prefers-reduced-motion:reduce){.hero-map-rim-runner{animation:none;stroke-dasharray:none;opacity:.7}.hero-map-button,.hero-map-button:before{transition:none}}

/* Centered editorial About composition from the approved alignment reference. */
.about-showcase{padding:clamp(74px,7vw,118px) 0}
.about-showcase-layout{width:78%;max-width:1320px;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:clamp(36px,4vw,68px);align-items:start}
.about-showcase h2{text-align:center;font-size:clamp(88px,9.4vw,160px)}
.about-showcase-copy{border-inline-start:1px solid #9d998c80;padding-inline-start:clamp(34px,4vw,68px);max-width:none}
.about-showcase-copy>p{font-size:clamp(18px,1.55vw,26px);line-height:1.5;color:var(--ink)}


@media(max-width:1000px) and (min-width:761px){.about-showcase-layout{width:88%;gap:28px}.about-showcase-copy{padding-inline-start:28px}.about-showcase h2{font-size:9vw}}
@media(max-width:760px){.about-showcase{padding:56px 0 62px}.about-showcase-layout{width:calc(100% - 44px);grid-template-columns:1fr;gap:38px}.about-showcase h2{font-size:clamp(78px,20vw,110px)}.about-showcase-copy{border-inline-start:0;border-top:1px solid #9d998c80;padding-inline-start:0;padding-top:28px}.about-showcase-copy>p{font-size:16px;line-height:1.65}}

/* A quiet gallery link: slightly more definition than the original underline. */
.portfolio-heading .project-map-button{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;min-height:44px;margin-top:20px;padding:10px 17px;border:1px solid #07866f66;border-radius:3px;color:#205b4d;background:#07866f12;font:500 14px/1.4 var(--sans);letter-spacing:0;white-space:nowrap;text-decoration:none;transition:border-color .55s ease,background-color .55s ease}
.project-map-arrow{font-size:18px;line-height:1;color:#07866f;transition:transform .55s cubic-bezier(.22,1,.36,1)}
.portfolio-heading .project-map-button:hover,.portfolio-heading .project-map-button:focus-visible{background:#07866f20;border-color:#07866fa6}
.project-map-button:hover .project-map-arrow,.project-map-button:focus-visible .project-map-arrow{transform:translate(2px,-2px)}
.project-map-button:focus-visible{outline:2px solid #07866f;outline-offset:4px}
@media(prefers-reduced-motion:reduce){.portfolio-heading .project-map-button,.project-map-arrow{transition:none}.project-map-button:hover .project-map-arrow,.project-map-button:focus-visible .project-map-arrow{transform:none}}
